[HELP] java.lang.UnsupportedClassVersionError

Discussion in 'Plugin Development' started by Themuddfamily, Jun 30, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Themuddfamily

  2. Offline

    MP5K

    Hello Themuddfamily,
    1. Change your Buildpath
      1. Right Click your Project
      2. Properties
      3. Java Build Path
      4. Libraries
      5. Remove JRE System Library [JavaSE-1.*]
      6. Add Library...
      7. JRE System Library >> Next
      8. Tick "Execution environment".
      9. Select "JavaSE-1.6"
      10. Finish
    2. Change Compiler:
      1. Right Click your Project
      2. Proberties
      3. Java Compiler
      4. Tick "Enable Project specific settings"
      5. Tick "Use compliance form execution..."
    3. Click Apply
    4. Click OK
     
  3. Offline

    Lucariatias

    First, go to your plugin's properties:
    [​IMG]
    Then, select "build path":
    [​IMG]
    Next, go to "Add library":
    [​IMG]
    "JRE System Library":
    [​IMG]
    Click "Alternate JRE", followed by "Installed JREs"
    [​IMG]
    In the popup that follows, click "Add"
    [​IMG]
    Then "Standard VM", followed by "Next":
    [​IMG]
    Add the relevant directory for your JDK1.6 install, and "Finish":
    [​IMG]
    Select the old JRE system library for 1.7:
    [​IMG]
    And click "Remove":
    [​IMG]
    There we are, you should now be building against JDK6.
     
Thread Status:
Not open for further replies.

Share This Page