Author Topic: Question from a Noob Starting Out  (Read 2409 times)

Offline aoen

  • byte
  • *
  • Posts: 2
    • View Profile
Question from a Noob Starting Out
« on: April 04, 2010, 08:18:07 am »
Hi I'm trying to get this set up on Windows 7 on eclipse and I'm having some problems.

What I did:
1. I created a project called MyTest
2. I added jpct.jar, lwjgl_util.jar, lwjgl.jar to the libraries of the project
3. I copied and pasted the 3 java files in the example code HellowWorldAWTGL.java, etc. into the source file
4. I set the VM arguments in the run configuration to be: -Djava.library.path=C:\Java3D\jpct\lib\lwjgl-2.0\native\windowsf MyTest

If I remove the VM arguments it works up until the .dlls are needed (it prints a bunch of stuff out), however if I include the VM Arguments I get the following:

java.lang.NoClassDefFoundError: MyTest
Caused by: java.lang.ClassNotFoundException: MyTest
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"


I'd really appreciate help on this, I've been experimenting with a bunch of different libraries (i.e. Controller Input), and I really want to add 3D to my repetoire.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Question from a Noob Starting Out
« Reply #1 on: April 04, 2010, 01:00:21 pm »
Just remove the MyTest-part from the vm arguments. You only have to specify the java.library.path, not the class to execute. Eclipse will do this for you anyway.

Offline aoen

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Question from a Noob Starting Out
« Reply #2 on: April 04, 2010, 10:55:49 pm »
Wow thanks it works!