The WebLogic Server cannot open the print window in the program

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 file:

add to:

JAVA_ OPTIONS=”${JAVA_OPTIONS} -Djava.awt.headless=true”


Just restart the service

Similar Posts: