Jump to content
Changes to the Jaspersoft community edition download ×

NoClassDefFoundError - X11GraphicsEnvironment


2004 IR Help

Recommended Posts

By: Victor Mazurenko - victor_m

NoClassDefFoundError - X11GraphicsEnvironment

2005-01-21 12:03

Hi, after testing my jasper app on Windows, I failed porting to Linux - got an X11 error.

 

Can somebody proficient in Linux/Unix tell me what direction to take now? Thanks!

 

The error print stack is attached.

 

Victor

 

 

[servlet Error]-[sun/awt/X11GraphicsEnvironment]: java.lang.NoClassDefFoundError: sun/awt/X11Grap

hicsEnvironment

at java.lang.Class.forName1(Native Method)

at java.lang.Class.forName(Class.java(Compiled Code))

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi

ronment.java:90)

at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGrap

hEnv(JRGraphEnvInitializer.java:102)

at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.jav

a:224)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi

ller.java:126)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi

 

 

 

 

By: David Lim - aberrant80

RE: NoClassDefFoundError - X11GraphicsEnviron

2005-01-24 01:43

the jasper engine makes use of awt classes which by default will attempt to run the platform's graphics library. for non-graphical environments, u need to set a system property:

 

System.setProperty("java.awt.headless", "true");

 

 

 

 

By: neptune22 - neptune22

RE: NoClassDefFoundError - X11GraphicsEnviron

2005-05-06 00:09

Hello, I have read that these feature

 

System.setProperty("java.awt.headless", "true");

 

is only available to jdk 1.4 up.. do you have any suggestion on how to solve this with jdk 1.3?

 

 

 

 

By: Nikhil Deshpande - ndeshpande

RE: NoClassDefFoundError - X11GraphicsEnviron

2005-08-03 22:25

Where do you set System.setProperty?

 

 

 

 

By: neptune22 - neptune22

RE: NoClassDefFoundError - X11GraphicsEnviron

2005-08-03 22:29

did you add ur application on linux startup? if u did u might need to use Xvfb (just google for the details) and add these lines on your startup script:

 

if [ -f /usr/X11R6/bin/Xvfb ]; then

echo "***Starting up the Virtual Frame Buffer on Screen 1***"

/usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &

fi

export DISPLAY=:1.0

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...