Ireport plus JASPER issues and solutions

xiaoxiao2021-03-06  39

When you encounter java.lang.internalerror: can't connect to x11 window server using ': 0.0' as the value of the display variable error message

At this time, a solution is to log in to a CDE. Open Console under CDE, find the environment variable Display as follows: [root @ isoft / root] # set | grep display display = 10.67.85.7: 0.0 10.67.85.7 Represents the client's IP, 0.0 Indicates the first CDE in which it is entered. With this X client, you can use these graphics related packages in other clients connected to this server. If you use the way, you specify a Display: [root @ iSoft / root] # Display = 10.67.85.7: 0.0 [root @ iSoft / root] # Export Display This time the compile error may occur at this time as follows: java.lang.noclassdeffounderror: Sun / AWT / X11GRAPHICSENVIRONMENT AT java.lang.class.Forname0 (Native Method) at java.lang .Class.forName0 (Compiled Code) at java.lang.Class.forName (Compiled Code) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (GraphicsEnvironment.java:63) at TestServlet.service (TestServlet.java:16) Unfortunately, this error . message is somewhat misleading This message does not actually reflect a class loading problem the error can be avoiding by setting the DISPLAY environment variable in the appropriate configuration file when you want to modify the application server startup parameters to resin, for example:.. vi $ RESIN_HOME /BINHTTPD.SH, find the row, modification, args = -djava.awt.headless = true, restarting RESIN OK

转载请注明原文地址:https://www.9cbs.com/read-68955.html

New Post(0)