JVM problem: Not able to run the Java Program but it’s getting compiled

30 pts.
Tags:
JAVA jvm
Java programming
JVM
Virtual Machines
i have a problem of running java programs... When i try to run the java programs i get like this Exception in thread "main" java.lang.UnsupportedClassVersionError: H (Unsupported major.minor version 50.0)         at java.lang.ClassLoader.defineClass0(Native Method)         at java.lang.ClassLoader.defineClass(Unknown Source)         at java.security.SecureClassLoader.defineClass(Unknown Source)         at java.net.URLClassLoader.defineClass(Unknown Source)         at java.net.URLClassLoader.access$100(Unknown Source)         at java.net.URLClassLoader$1.run(Unknown Source)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         at java.lang.ClassLoader.loadClassInternal(Unknown Source) I try to find out the solution for this but i didnt succeed UnsupportedClassversionError means that older version of jvm is accessing the higher version of java .i.e., the native method of old JVM is not comaptable with the newer version. In command prompt i had find the version is java version "1.4.2_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) but i have installed JDK 1.6 version I try to find whether the JVM is there or not in my computer by typing the command JVIEW but it is not there by saying not recognised. I updated the Java version with the latest one from java website but still the same above problem persists to me please find out the solutuion to me and reply to my mail bablu08041987@gmail.com

Software/Hardware used:
JAVA

Answer Wiki

Thanks. We'll let you know when a new response is added.

You r running JAVA that’s okay, but on which OS i.e. window or Linux ? U didn’t mention here. though I am providing some solution 4 u.

1. if this is windows, then set the environment variable and must download the latest java sdk standard version.

2. If this is linux, then after 1st install the java is crashed when u r opening firefox. so u have to again reinstall the software with java sdk standard version

the (1) point is the crucial point that u have to concentrate that i was sent mail on this.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NEWJAVA
    [...] JVM problem: Not able to run the Java Program but it’s getting compiled [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following