Eclipse Neon with JDK 7 or below

前端 未结 3 1855
粉色の甜心
粉色の甜心 2020-12-17 03:20

When I compile / run the build on ant with eclipse neon on JDK 7 and below I got error message saying Unsupported must run on 1.8 or higher. If I changed my ant

相关标签:
3条回答
  • 2020-12-17 03:58

    Eclipse Neon itself must be run using Java 8.

    You can still use older Java versions to run your programs. Configure the available JRE/JDKs in the Preferences in 'Java > Installed JREs'. Then configure your project or Run Configuration to choose the version you want to use.

    0 讨论(0)
  • 2020-12-17 04:00

    You can edit like this following(make sure with your installation path),

    -vm
    /usr/lib/jvm/java-7-openjdk-amd64/jre/bin 
    -vmargs
    -Dosgi.requiredJavaVersion=1.7
    -XX:+UseG1GC
    -XX:+UseStringDeduplication
    -Dosgi.requiredJavaVersion=1.7
    -Xms256m
    -Xmx1024m
    -Declipse.p2.max.threads=10
    -Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
    -Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
    
    0 讨论(0)
  • 2020-12-17 04:04

    Ideally Neon should be run on java 1.8 but you can run neon on java 1.7

    just change the java version in eclipse.ini file. Dosgi.requiredJavaVersion=1.7

    0 讨论(0)
提交回复
热议问题