Ok so I am doing the infamous Hello World App, here is the code:
public class HelloApp
{
public static void main (String[] args)
{
System.out.println("Hello, World!");
}
}
What I have done to my system, in the environment variables under system variables I added:
C:\Program Files (x86)\Java\jdk1.7.0\bin to the Path
From the command prompt I am able to compile the code with no errors (javac HelloApp.java)
I am however not able to execute the code with java HelloApp, I get the following error:
Error: Could not find or load main class HelloApp
I am however able to execute the code by typing: java -cp . HelloApp