-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netbeans 24 will not start on java 24-ea due to security manager permanently disabled. #8008
Comments
A patch.This might work. It is a hack. Disable the setting of the System.setSecurityManager in TopSecrurityManager, while leaving the remainder of the utility in the TopSecurityManager in tact. But one should prepare for final removal of said TopSecurityManager. It appears to work in 2 patches:
Patch for nbexec
Patch for the TopSecurityManager:
|
This is a known issue that needs to be resolved for NetBeans 25. See #3386 and #7928 for options under consideration. NetBeans 24 will not support running on JDK 24. You might be able to remove the option in the launcher and just pass the system property to disable the security manager - shouldn't need to recompile, for Linux and macOS at least. |
Issue no longer relevant.Recent pull of NetBeans sources and subsequent build no longer has the issue. |
Apache NetBeans version
Apache NetBeans 24 release candidate
What happened
Setting JAVA_HOME to java 24 (ea-25) make the netbeans startup (using the commandline) exit prematurely with the following message
Language / Project Type / NetBeans Component
netbeans startup
How to reproduce
Freshly install netbeans 24 rc 4 from zip to a dir,
/usr/local/netbeans-24-rc4
in my case.On linux then do :
export JAVA_HOME=/usr/lib/jvm/jdk-24; /usr/local/netbeans-24-rc4/bin/netbeans
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux Ubuntu 24.04 LTS
JDK
OpenJDK 64-Bit Server VM (build 24-ea+25-3155, mixed mode, sharing)
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
always on java 24
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: