LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Clbembry on February 22, 2011, 19:15:33

Title: I can't compile without getting errors.
Post by: Clbembry on February 22, 2011, 19:15:33
I've followed to installation guide for setting up LWJGL with NetBean. I've done exactly what it says but whenever I try to run the example code I get this error:

java.lang.NoClassDefFoundError: Djava/library/Path=C:\Users\Clinton\Documents\LWJGL\lwjgl-2/7/1\native\windows
Caused by: java.lang.ClassNotFoundException: Djava.library.Path=C:\Users\Clinton\Documents\LWJGL\lwjgl-2.7.1\native\windows
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: Djava.library.Path=C:\Users\Clinton\Documents\LWJGL\lwjgl-2.7.1\native\windows.  Program will exit.
Exception in thread "main" Java Result: 1


Title: Re: I can't compile without getting errors.
Post by: BatKid on February 22, 2011, 19:20:51
Did you put a "-" in front of your command line argument?
Title: Re: I can't compile without getting errors.
Post by: Clbembry on February 22, 2011, 20:25:20
Umm... What?
Title: Re: I can't compile without getting errors.
Post by: Matthias on February 22, 2011, 21:04:14
-Djava.library.path=....
not
Djava.library.path=....
Title: Re: I can't compile without getting errors.
Post by: Clbembry on February 22, 2011, 21:48:08
Oh ok thanks, that fixed 1 problem, but there is still another one  >:(
Title: Re: I can't compile without getting errors.
Post by: Clbembry on February 22, 2011, 22:51:06
My bad, I restored it to the original question. And no need to be a little bitch about it
Title: Re: I can't compile without getting errors.
Post by: CodeBunny on March 22, 2011, 01:07:19
Did you really just insult people who are trying to help you?  ???
Title: Re: I can't compile without getting errors.
Post by: Fool Running on March 22, 2011, 12:30:47
Quote from: CodeBunny on March 22, 2011, 01:07:19
Did you really just insult people who are trying to help you?  ???
I think that's why no one has posted in this thread for a month. ;D
Title: Re: I can't compile without getting errors.
Post by: CodeBunny on March 22, 2011, 13:43:24
Ah, I haven't been on in a while and didn't see the dates.