Today We are Going To Solve Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so in Java. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so Error?
- How to Fix Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so Error?
To Fix Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so Error just For ubuntu users. If you are using ubuntu then run the given below command to solve your error.
sudo apt install openjdk-11-jdk
- Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
To Fix Exception java.lang.UnsatisfiedLinkError: Can’t load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so Error just For windows users. If you are using windows then just install OpenJDK 11 manually.
$ ldd /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
Solution 1 : For ubuntu users
If you are using ubuntu then run the given below command to solve your error.
sudo apt install openjdk-11-jdk
Solution 2 : For windows users
If you are using windows then just install OpenJDK 11 manually.
$ ldd /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read This Solutions
- java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment
- Defaulting to user installation because normal site-packages is not writeable Python
- This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead
- Error: JavaFX runtime components are missing, and are required to run this application
- ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly