ItsIgnacioPortal opened a new issue, #7343:
URL: https://github.com/apache/netbeans/issues/7343

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   When installing Netbeans from chocolatey, the package for v21 uses the URL 
https://dlcdn.apache.org/netbeans/netbeans-installers/21/Apache-NetBeans-21-bin-windows-x64.exe
 to fetch the installer. That installer runs correctly and installs Netbeans, 
BUT the Windows shortcut it generates on the startup folder has in its `Target` 
value the following string:
   
   ```
   
C:\ProgramData\chocolatey\lib\apache-netbeans.portable\App\netbeans\bin\netbeans64.exe
 --jdkhome "C:\Program Files\Eclipse Adoptium\jdk-17.0.9.9-hotspot\"
   ```
   
   Notice the value that is given for the `--jdkhome` parameter. That folder 
did not exist on my system, which caused Netbeans to always fail to find the 
correct jdk location automatically. If that parameter wasn't there, netbeans 
would've used the JDK_HOME system environment variable to find the jdk 
location, and it would've succeded.
   
   I've verified that its not the chocolatey package the one who adds that line 
to the shortcut, therefor it must the the installer the one who has that string 
hard-coded in. At some point, this hard-coded path is added into the installer. 
I did a github code search and the path wasn't present anywhere in this 
repository, so my best guess is that it's [the Apache Jenkins build 
CD](https://ci-builds.apache.org/job/Netbeans/job/netbeans-windows/) the one 
who's adding the path.
   
   ### Language / Project Type / NetBeans Component
   
   N/A
   
   ### How to reproduce
   
   1. [Install chocolatey](https://chocolatey.org/install)
   2. Run `choco install netbeans` in a powershell window as Administrator.
   3. Open netbeans
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 Version 22H2 (OS auild 19045.4291)
   
   ### JDK
   
   Openjdk 21.0.2
   
   ### Apache NetBeans packaging
   
   Third-party package
   
   ### Anything else
   
   Information about the third-party chocolatey package is available at 
https://community.chocolatey.org/packages/NetBeans/21.0.0
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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