Skip to content

Conversation

@juanotto
Copy link
Contributor

@juanotto juanotto commented Oct 11, 2025

Currently, the creation of a new Netbeans Platform Application project does not build right after being created. The error is'

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Error occurred during initialization of VM
java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.

There work on Netbeans IDE itself to make it work with java 24 after https://openjdk.org/jeps/486 seems finished. Some examples:

The current NB Platform suggested when creating an app is RELEASE270 in NP 27, which works without the security manager. Removing the parameter makes the project compile and run, after creating it with this archetype.

Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this flag won't work anymore on current JDKs. We forgot to remove it from the archetype. Thanks!

@mbien mbien merged commit 713f404 into apache:master Oct 11, 2025
@mbien
Copy link
Member

mbien commented Oct 11, 2025

congrats on your first apache contribution btw!

@juanotto juanotto deleted the remove-security-manager-for-app branch October 11, 2025 04:09
@juanotto
Copy link
Contributor Author

Thank you! I got to this trying change one of the tutorials (images from RELEASE72), you may see my name over there soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants