Skip to content
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

Disable JNLPSecurityManager #596

Open
WeierE1 opened this issue Aug 15, 2024 · 1 comment
Open

Disable JNLPSecurityManager #596

WeierE1 opened this issue Aug 15, 2024 · 1 comment

Comments

@WeierE1
Copy link

WeierE1 commented Aug 15, 2024

Dear OpenWebStart support team,

is it possible to deactivte via a setting the JNLPSecurityManager

I found out that it is possible to do that with writing
javaws.exe -nosecurity my.jnlp

but here i added the -nosecurity parameter manual to the command.
Is there a way to do this via a property.

My Main Problem is, that when the JNLPSecurityManager is enabled i got a lot of AccessControlException: Access Denied exeptions. The most of them in the ForkJoinPool. For example when using a CompletableFuture.

CompletableFuture.runAsync(() -> { //do something }

AccessControlException: Access Denied - java.lang.reflect.ReflectPermission

@janakmulani
Copy link
Contributor

-nosecuirty is a commandline argument in icedtea-web. For Access Denied Exception you could add required permissions to the java.policy file of the JVM that is used to run the application specified in the Jnlp file. Alternatively you can have a bat file that invokes javaws such as "javaws.exe -nosecurity %1" and you can make a file association for .jnlp to this bat file.

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

No branches or pull requests

2 participants