"javac" is a compiler - it compiles your code to byte code.
"java" is the interpreter - it runs your application by converting byte code produced by "javac" into machine code.
Your error is because your CLASSPATH environment variable is not set.
i work on windows 2000, i just installed java j2re1.4.1_01
so i have this problem.
i saved my class hello in examples file.
C:\java\bin\examples>java hello
Error: could not open `C:\Program Files\Java\j2re1.4.1_01\lib\i386\jvm.cfg'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.