Login  Register

Re: can't get classpath right after following the wiki

Posted by Wade Walker on Feb 28, 2015; 11:01pm
URL: https://forum.jogamp.org/can-t-get-classpath-right-after-following-the-wiki-tp4034082p4034083.html

When you use the -jar command line switch, java ignores the classpath setting -- you can't use -jar and -classpath together, as shown by the documentation of the -jar option at http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html. Try putting your jar in the classpath, then using your main class name as the last argument to java, as shown on the wiki at https://jogamp.org/wiki/index.php/Setting_up_an_JogAmp_project_in_your_favourite_IDE#Compile_and_run_your_project_from_the_command_line.