I installed JDK7, a simple hello word program gets compile but when I run this I got following exception. I checked java -version on command prompt, it shows Java version 1.4.2_03 but when I tried to install new java version. Can anyone help me with this?