Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

I am having jvm.dll error when i try to run my java code from commond-line.What can be reasons?

OpenStudy (anonymous):

can you post full report? did it work sometime ago? is it something with java or something with your code?

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

idk, are you sure there is that file in directory? maybe try reinstalling JAVA

OpenStudy (anonymous):

here it is

OpenStudy (anonymous):

also the path

OpenStudy (anonymous):

have you tried just cd C:\Program Files\Java\jdk1.5.0_09\bin ? and is there jvm.dll in bin folder?

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

ok it doesn't matter make cd with (x86)

OpenStudy (anonymous):

So?

OpenStudy (anonymous):

I do use Java and jdk with eclipse nicely but i wanna try it from commond-line.

OpenStudy (anonymous):

make C:\Program Files (x86)\Java\jdk1.5.0_09\bin

OpenStudy (anonymous):

then put your .java file inside that folder bin

OpenStudy (anonymous):

and then javac HelloWorld.java

OpenStudy (anonymous):

here we go

OpenStudy (anonymous):

you haven't done like i said, but idk maybe it's same thing, idk how path works

OpenStudy (anonymous):

ok thx anyway=)

OpenStudy (farmdawgnation):

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

OpenStudy (anonymous):

like I told to reinstall it :P

OpenStudy (farmdawgnation):

Hahaha. Well, I had sources with the fancy Java logo on them. :P

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!