Couldn't install netbeans 11.3 with Java 14 due to Error: “Unsupported JVM version”

前端 未结 1 1245
南方客
南方客 2020-12-06 11:29

I\'m trying to install netbeans with Java 14.

I\'m getting below error -

> sudo ./Apache-NetBeans-11.3-bin-linux-x64.sh --javahome /home/raj/.sdkm         


        
相关标签:
1条回答
  • 2020-12-06 12:20

    Although Apache NetBeans 11.3 fully supports the use of JDK 14, unfortunately its installer does not. From the Apache NetBeans 11.3 download page:

    The installers will not run under JDK 14 because usage is made of the Pack200 Tools and API, for packing and unpacking, which is removed in JDK 14, see JEP 367.

    See JEP 367: Remove the Pack200 Tools and API for full details on why this change was made in JDK 14.

    Your workarounds for this issue are:

    • Instead of using the installer, download and unzip the zip of Apache NetBeans 11.3 (named netbeans-11.3-bin.zip) from the download page. This approach worked for me.
    • Install a version of the JDK < 14, and you can then use the installer to install NetBeans 11.3 with that JDK. Once NetBeans 11.3 is installed you could edit netbeans.conf to make JDK 14 the default Java platform, or simply add it as a second Java platform using Tools > Java Platforms > Add Platform...
    0 讨论(0)
提交回复
热议问题