apache / netbeans

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

Unix launcher java identification issue #4874

Open trkatsarski opened 2 years ago

trkatsarski commented 2 years ago

Apache NetBeans version

Apache NetBeans 15

What happened

Tried this on Ubuntu Linux 20.04 and 18.04. When the used Java version is a whole number (e.g. 19, instead of 19.0.1), the launcher cannot identify it. I found the problem in the launcher shell script and will commit my proposed fix. I didn't have the opportunity to check if this occurs on Windows as well.

How to reproduce

No response

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu Linux 20.04 x64

JDK

Java 19

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

BradWalker commented 2 years ago

When you submit a pull request, flag me. Then I work on getting it fixed.