unsupported major .minor version 51.0

Posted by ERJAN on Stack Overflow See other posts from Stack Overflow or by ERJAN
Published on 2012-04-30T11:28:24Z Indexed on 2012/06/05 16:40 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I am trying to use notepad++ as my all-in-one tool edit, run, compile etc.

I have jre installed, i have setup my path variable to .../bin directory.

When I run my "Hello world" in notepad++ , I get this message:

java.lang.UnsupportedClassVersionError: test_hello_world :
 Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
       ......................................... 

I think the problem here is about versions, some version of java may be old or too new.

  1. how do i fix it?

  2. should i install jdk , and setup my path variable to JDK instead of jre?

  3. difference between PATH variable in jre or jdk?

© Stack Overflow or respective owner

Related posts about jvm

Related posts about notepad++