I have just installed JDK on Windows Vista. After that I set proper values for the 4 environment variables: classpath, include, lib, path. After that I was able to compile my HelloWorld-program (I got a *.class file). But when I try to execute the compiled program (I type java HelloWorldApp) it does not work. The Java write a lot of stuff and in the end it is written that it “could not find the main class: HelloWorldApp”. Can anybody, pleas, help me with this problem?
Share
HelloWorld.java;HelloWorld.java:javac HelloWorld.javain the same folder as HelloWorld.java is in;java -cp . HelloWorldin the same folder as HelloWorld.java is in.How the classpath works, can be read here: http://en.wikipedia.org/wiki/Classpath_%28Java%29