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
java -version
so i guess it is always better to check
java -version javac classpath before approaching any forums for help
because problem like this will be 95% solved just looking at this 3 things
hope this helps