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 setdomainenv.sh file:

add to:

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

export JAVA_ OPTIONS

Just restart the service

Similar Posts: