apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.59k stars 834 forks source link

I tried to open Netbeans 22 but it showed a strange message #7485

Open muratia opened 3 weeks ago

muratia commented 3 weeks ago

Apache NetBeans version

Apache NetBeans 22

What happened

Java Version 20

I tried to open Netbeans 22 and it showed a strange message that it cannot run in older java versions than 17 but as you see in the attached screenshot I have Java 20 on my Windows 11 Pro machine and I think thisis a bug because olderversion netbeans 12 opened fine

Language / Project Type / NetBeans Component

PHP

How to reproduce

In Windows 11 Pro installed version of JRE version 20 and JDK 20 Java Version 20

and try to open the Netbeans version 22.

Did this work correctly in an earlier version?

Apache NetBeans 16 or earlier

Operating System

Windows 11 Pro 64 bit

JDK

JDK 20

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

This is first time it happened

Are you willing to submit a pull request?

Yes

junichi11 commented 3 weeks ago

@muratia Please try to the following on your command line(cmd) although I'm not a Windows user:

> java -version
> where java
> echo %JAVA_HOME%

Check Help > About in NetBeans 12: You can confirm your java version

mbien commented 2 weeks ago

The download page links to community installers which package an up to date runtime JDK and latest NB in one installer. The bundle installers are probably one of the easier ways to use NetBeans on windows. The JDK runtime is installed just for NetBeans and the paths are properly set up.