Hey, I'm kinda new to OSX, and I was trying to install lwjgl. I downloaded the current version, and checked if the files were all there. So far so good right? However, once I enter the command it says on the main page to test the setup, I get the following message:
$ java -cp .:res;jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_devil.jar:jar/jinput.jar: -Djava.library.path=native org.lwfgl.test.WindowCreationTest
HotSpot not at correct virtual address. Sharing disabled.
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-jvm is a synonym for the "client" VM [deprecated]
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-bash: jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_devil.jar:jar/jinput.jar:: No such file or directory
Any Help would be greatly appreciated. Also, which IDE would you recommend for Mac OSX.
i don't know if it's typo or not,
but you have ";" after ".:res", which should be ":".
hope that solves the issue.
i like Eclipse, but i use normal text editor with ant :)
With replacing the ; with the :, I'm now getting that the WindowCreationTest has no Class definition, exception in main.
$ java -cp .:res:jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_devil.jar:jar/jinput.jar: -Djava.library.path=native org.lwfgl.test.WindowCreationTest
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwfgl/test/WindowCreationTest
Any help would be very appreciated.
I've just bought an iMac! w00t etc.
Let me suggest that you go download Eclipse 3.2M1 from www.eclipse.org and use that as your IDE, and forget all that commandline shit. I got Eclipse, installed, and within 10 minutes I was running Ultratron in the IDE.
Cas :)
you need to execute the command line in the root directory of the lwjgl directory.
say you downloaded "lwjgl-macosx-0.98-1.zip". Unzip it and then there will be a directory called "lwjgl-macosx-0.98-1" created. cd (command to change current working directory) to that directory and now execute the command line you have been trying.