LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Buggy on October 30, 2008, 00:21:30

Title: Windows/Eclipse Installation Troubleshooting
Post by: Buggy on October 30, 2008, 00:21:30
As can be guessed from the topic title, I've been having some trouble installing LWJGL.  The screenshots from the installation page are somewhat outdated for Eclipse, and on the very last step, my VM argument doesn't seem to work.  I always get this error in the console:

java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
   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)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"

What exactly am I supposed to put into the VM argument?  Nothing seems to work.
Title: Re: Windows/Eclipse Installation Troubleshooting
Post by: Matzon on October 30, 2008, 06:07:40
I'll update the wiki soon'ish.

Your problem is a classpath issue (NoClassDefFoundError) - and not a VM argument issue.
The 'and' gives you a clue that you have multiple commands on the command line. Wrap your Documents and Settings in quotes - or the whole command line so it doesn't get executed as several commands.
Title: Re: Windows/Eclipse Installation Troubleshooting
Post by: Buggy on November 12, 2008, 22:16:21
Thanks a lot; works great now.