After the program is deployed, the program has the print function, but the print window cannot be opened when clicking the print function. Solution:
Error reported: caused by: java.lang.noclassdeffounderror: could not initialize class sun.awt.x11graphicsenvironment
Solution: enter Weblogic Directory:/home/Weblogic/APP/Oracle/Middleware/user_ projects/domains/base_ domain/bin/
Modify the setdomainenv.sh file:
add to:
JAVA_ OPTIONS=”${JAVA_OPTIONS} -Djava.awt.headless=true”
export JAVA_ OPTIONS
Just restart the service
Similar Posts:
- [Solved] Weblogic error: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11G
- [Solved] Abnormal build process termination IDEA Start Error
- Unrecognized option of Weblogic startup error: – JRockit
- Java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment [Solved]
- Exception in thread “AWT-EventQueue-0” java.awt.HeadlessException:
- How to find Oracle EBS Weblogic Server Admin Port and URL
- error – canvas- Failed to execute ‘toBlob’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported.
- Web service, download the file linked with HTTPS, and prompt javax.net.ssl.sslkeyexception: RSA premaster secret error
- Weblogic “ThreadPool has stuck threads” [How to Solve]
- Vue + Django Project-Browser cross-domain error: Access-Control-Allow-Origin