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

Application cannot be started with JDK 13 - AWTSecurityManager was removed #437

Closed
schelldorfer opened this issue Sep 20, 2019 · 4 comments
Labels
bug Something isn't working
Projects
Milestone

Comments

@schelldorfer
Copy link
Contributor

Application cannot be started with JDK 13.

It throws exception:

Exception in thread "main" java.lang.NoClassDefFoundError: sun/awt/AWTSecurityManager
    at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:268)
    at net.sourceforge.jnlp.runtime.Boot.init(Boot.java:376)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:292)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:76)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:233)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:118)

AWTSecurityManager was removed in 13, but is used in JNLPSecurityManager.

1. extend JNLPSecurityManager from SecurityManager instead of AWTSecurityManager
2. remove method getAppContext() from JNLPSecurityManager

more info:
http://openjdk.5641.n7.nabble.com/OpenJDK13-deprecation-issue-AWTSecurityManager-was-removed-in-13-tt367345.html#none

@karianna karianna added this to To do in icedtea-web via automation Sep 20, 2019
@karianna karianna added the bug Something isn't working label Sep 20, 2019
@karianna karianna added this to the 2.0.x milestone Sep 20, 2019
sclassen added a commit that referenced this issue Sep 23, 2019
 #437 Application cannot be started with JDK 13 - AWTSecurityManager was removed
icedtea-web automation moved this from To do to Done Sep 23, 2019
@bourgesl
Copy link

bourgesl commented Apr 8, 2021

Hi,
Today I patched my icedtea-web 1.8 branch (up-to-date) with the assocated patch #438 to get rid of the AWTSecurityManager class use.

It makes ITW 1.8 work on OpenJDK 13 to 17, tested on 15, 16, 17 EA.

I wonder if this fix could be backported to the iced-tea-web 1.8 branch to make it available in the coming 1.8.x release (for most linux users) as 2.0.x is still not publicly released.

Thanks,
Laurent

@sclassen
Copy link
Contributor

sclassen commented Apr 8, 2021

feel free to open a PR against the 1.8 branch

@bourgesl
Copy link

bourgesl commented Apr 9, 2021

@sclassen see the pull request #792
It is the same patch as #438

@egorsmkv
Copy link

egorsmkv commented May 4, 2021

If someone still has this issue I recommend to look on my workaround described here - https://github.com/egorsmkv/kvm-over-ip-cn8000a-jnlp-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
icedtea-web
  
Done
Development

No branches or pull requests

5 participants