Run Tool not working?
Posted: Thu Sep 17, 2009 11:38 pm
Oddly enough, I have Java SDK 6.* installed yet the tools were not automatically found. I manually added these two tools, seperately, namely used Add > Program and then searched for javac and java and added them.
The Compile tool works, but the Run tool does not. I think I know why but im not 100 percent sure:
Here is the run down:
I get this error and I notice some things:
java.lang.NoClassDefFoundError: C:\Documents and Settings\Chris\Desktop\test/java
Caused by: java.lang.ClassNotFoundException: C:\Documents and Settings\Chris\Desktop\test.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: C:\Documents and Settings\Chris\Desktop\test.java. Program will exit.
Exception in thread "main"
Tool completed with exit code 1
FIRST: its says the tool is looking for test.java. , which is obviously not what it should be looking for; it should be looking for test.class
I think the way to fix this would be to put the correct command in the tool parameters text box, though I dont know what that is:
Currently, under Prefences > Tools > Java Run (what i named it) and in the parameters text box it says $File.
If you have the tools working, could you tell me what command you have in the parameters text box? thanks
The Compile tool works, but the Run tool does not. I think I know why but im not 100 percent sure:
Here is the run down:
I get this error and I notice some things:
java.lang.NoClassDefFoundError: C:\Documents and Settings\Chris\Desktop\test/java
Caused by: java.lang.ClassNotFoundException: C:\Documents and Settings\Chris\Desktop\test.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: C:\Documents and Settings\Chris\Desktop\test.java. Program will exit.
Exception in thread "main"
Tool completed with exit code 1
FIRST: its says the tool is looking for test.java. , which is obviously not what it should be looking for; it should be looking for test.class
I think the way to fix this would be to put the correct command in the tool parameters text box, though I dont know what that is:
Currently, under Prefences > Tools > Java Run (what i named it) and in the parameters text box it says $File.
If you have the tools working, could you tell me what command you have in the parameters text box? thanks