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

Solve issue with loading jvm when using AdoptJDK or Adoptium #3

Conversation

frankdekker
Copy link

I ran into the issue below when starting the adoptium temurin jre 8.0.312 with Janel.exe. For some reason a few random Windows machines wouldn't be able to locate the dlls awt.dll required.

java.lang.UnsatisfiedLinkError: jre\jre-temurin-8.0.312\bin\awt.dll: Can't find dependent libraries
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
	at java.lang.Runtime.loadLibrary0(Runtime.java:871)
	at java.lang.System.loadLibrary(System.java:1124)
	at java.awt.Toolkit$3.run(Toolkit.java:1636)
	at java.awt.Toolkit$3.run(Toolkit.java:1634)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
	at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
	at java.awt.Component.<clinit>(Component.java:593)
	at javax.swing.ImageIcon$2.run(ImageIcon.java:130)
	at javax.swing.ImageIcon$2.run(ImageIcon.java:128)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.swing.ImageIcon.createNoPermsComponent(ImageIcon.java:127)
	at javax.swing.ImageIcon.access$000(ImageIcon.java:69)
	at javax.swing.ImageIcon$1.run(ImageIcon.java:103)
	at javax.swing.ImageIcon$1.run(ImageIcon.java:100)
	at java.security.AccessController.doPrivileged(Native Method)

With some Googling I found this thread adoptium/adoptium-support#135 and with some trial and error this PR solves the issue.

I tried a few oracle JRE's aswell and this change doesn't seem to break anything.

@michaelknigge michaelknigge merged commit aba27a3 into michaelknigge:enhanced Jun 8, 2022
@michaelknigge
Copy link
Owner

Thank you very much for your contribution... and sorry that I saw your PR so late....

@frankdekker
Copy link
Author

No problem, thanks for the merge :)

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.

None yet

2 participants