I am having jvm.dll error when i try to run my java code from commond-line.What can be reasons?
can you post full report? did it work sometime ago? is it something with java or something with your code?
set path=%path%;C:\Program Files\Java\jdk1.5.0_09\bin I set the path like that by changing Program Files to Program Files(x86) (that's where jdk is) and updating the jdk version numbers. But it gives this error when i tried javac HelloWorld.java I think the problem is related with path or smt else.The code is simple Hello code.
idk, are you sure there is that file in directory? maybe try reinstalling JAVA
here it is
also the path
have you tried just cd C:\Program Files\Java\jdk1.5.0_09\bin ? and is there jvm.dll in bin folder?
there is no Java inside Program Files . It is in Program Files(x86). And there is a bin folder inside jdk1.6.0_23 folder.
ok it doesn't matter make cd with (x86)
So?
I do use Java and jdk with eclipse nicely but i wanna try it from commond-line.
make C:\Program Files (x86)\Java\jdk1.5.0_09\bin
then put your .java file inside that folder bin
and then javac HelloWorld.java
here we go
you haven't done like i said, but idk maybe it's same thing, idk how path works
ok thx anyway=)
Looks like your Java Installation is corrupted. Uninstall the JRE and JDK and reinstall it all from scratch. Source: http://www.java.com/en/download/help/error_mainclass.xml
like I told to reinstall it :P
Hahaha. Well, I had sources with the fancy Java logo on them. :P
Join our real-time social learning platform and learn together with your friends!