Hussein Baghdadi wrote:I think it is better to tell how it is solved, so it will help others in the future.
actually the problem was the laptop was of my friend and he has 2 account one admin and one non admin
he told me to work on non admin area
but the java was available in admin area fine you can compile code and see a long list when You type javac but
you will notice the strange message of JVM.cfg or whatever when you run
so i guess it is always better to check
before approaching any forums for help
because problem like this will be 95% solved just looking at this 3 things
hope this helps
I had the same problem: I have a 64 bit Windows and when I typed "java -version" in CMD-Console i received the same Error message.
Try to start a 64bit-cmd(C:\Windows\SysWOW64\cmd.exe) and you will see, it works there ;)