You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (Jira)" <ji...@apache.org> on 2021/03/24 18:48:00 UTC
[jira] [Commented] (NETBEANS-5491) UnsupportedClassVersionError -
If I set the NetBeans Runtime to Java 16, I cannot run a project created in
Java 15.
[ https://issues.apache.org/jira/browse/NETBEANS-5491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308111#comment-17308111 ]
Geertjan Wielenga commented on NETBEANS-5491:
---------------------------------------------
NetBeans doesn't support JDK 16.
> UnsupportedClassVersionError - If I set the NetBeans Runtime to Java 16, I cannot run a project created in Java 15.
> -------------------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-5491
> URL: https://issues.apache.org/jira/browse/NETBEANS-5491
> Project: NetBeans
> Issue Type: Bug
> Components: java - Platform, java - Project, java - Source
> Affects Versions: 12.3
> Environment: Windows 10, Apache NetBeans 12.3, Java 16
> Reporter: Michal Rama
> Priority: Blocker
> Labels: java, platform, project, runtime, version
> Attachments: obr�zek02.png, obr�zek41.png
>
>
> Hello,
> I installed Java 16 and set it in the etc\netbeans.conf file
> *netbeans_jdkhome="C:\Program Files\Java\jdk-16"*
> However, upon startup, all projects reported an error. NetBeans automatically set the *Java Platform* to *JDK 16* for them, but the *Source / Binary Format* was still *JDK 15*.
> !obr�zek41.png!
> !obr�zek02.png!
> So it was enough to change it to JDK 16, except for one project that still can't be run and I didn't figure out why.
> To run this project I need to close NetBeans and run it again in Java 15.
> Creating a new project in Java 16 would probably solve the problem, but why should I do it when there was no problem with all the other projects.
> Please help.
> Thank you
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists