pedro-w opened a new issue, #5060:
URL: https://github.com/apache/netbeans/issues/5060

   ### Apache NetBeans version
   
   Apache NetBeans 16 release candidate
   
   ### What happened
   
   I want to install NB16 on Windows 11 from the windows exe installer 
Apache-NetBeans-16-bin-windows-x64.exe
   
   I currently have Java 17 installed, and on the PATH. Also I have a working 
installation of NB15.
   
   Running the installer by double clicking failed to install - it could not 
find any JRE.
   
   
![image](https://user-images.githubusercontent.com/22172519/206422015-d080b7f4-35ab-4a98-abc7-db339fd9c494.png)
   
   
   I re-ran the installed from the command line like this
   
       .\Apache-NetBeans-16-bin-windows-x64.exe --javahome 'C:\Program 
Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot\'
   
   Which gave the message: 
   Java runtime environment (JRE) not found. There is no JRE at the specified 
location C:\Program Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot"
   
   
![image](https://user-images.githubusercontent.com/22172519/206421889-d3f02a7d-ce03-4cd6-8829-73e6a4fda6c2.png)
   
   The correct invocation was 
   
       .\Apache-NetBeans-16-bin-windows-x64.exe --javahome 'C:\Program 
Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot'
   
   which successfully installed NB16.
   
   So I think there may be two bugs
   1. Installer needs to improve the JDK detection
   2. Path processing shouldn't be sensitive to trailing backslash
   
   (also the fonts on the installer dialog are tiny on my screen but that seems 
to be par for the course on windows)
   
   
   
   ### How to reproduce
   
   Attempt to install from the .exe installer as described above.
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 15
   
   ### Operating System
   
   Windows 11 Pro 22H2 (x64)
   
   ### JDK
   
   openjdk version "17.0.3" 2022-04-19 OpenJDK Runtime Environment 
Temurin-17.0.3+7 (build 17.0.3+7) OpenJDK 64-Bit Server VM Temurin-17.0.3+7 
(build 17.0.3+7, mixed mode, sharing)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to