I am running Windows 7 SP 1, 64-bit.
My Java version is 1.7.0_40.
My Ctrl + 1 tool is "Compile Java". This part is working. Under the "Compile Java" tool, I have a Command of:
and Parameters set to:C:\Program Files\Java\jdk1.7.0_40\bin\javac.exe
and Initial folder set to:-classpath "$FileDir;C:\Users\ArtMetzer\Documents\Technical\Java" $File
The following code makes up C:\Users\ArtMetzer\Documents\Technical\Java\HelloWorld.java:$FileDir
Code: Select all
public class HelloWorld {
public static void main( String[] args ) {
System.out.println( "Hello World" );
}
}
However, when I go on to choose the "Run Java Application" external tool, the Tool Output reads:
Here are the values I have specified for the "Run Java Application" tool:Error: Could not find or load main class C:\Users\ArtMetzer\Documents\Technical\Java\HelloWorld.java
Tool completed with exit code 1
Command:
Parameters:C:\Program Files\Java\jdk1.7.0_40\bin\java.exe
Initial folder:-classpath "$FileDir;C:\Users\ArtMetzer\Documents\Technical\Java" $File
What do I need to change, or what do I need to look into, to get my Java program(s) to execute?$FileDir
It seems like the java.exe executable should be executing C:\Users\ArtMetzer\Documents\Technical\Java\HelloWorld, and not C:\Users\ArtMetzer\Documents\Technical\Java\HelloWorld.java?
Thanks,
Art.