I can't compile without getting errors.

Started by Clbembry, February 22, 2011, 19:15:33

Previous topic - Next topic

Clbembry

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



BatKid

Did you put a "-" in front of your command line argument?
Projects: 
   Env3D (http://env3d.org): Learn Java in 3D
   WhaleChat (http://whalechat.com): A 3D social programming experiment


Matthias

-Djava.library.path=....
not
Djava.library.path=....

Clbembry

Oh ok thanks, that fixed 1 problem, but there is still another one  >:(

Clbembry

My bad, I restored it to the original question. And no need to be a little bitch about it

CodeBunny

Did you really just insult people who are trying to help you?  ???

Fool Running

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
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

CodeBunny

Ah, I haven't been on in a while and didn't see the dates.