tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Hall <rfha...@yahoo.com>
Subject Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)
Date Sun, 09 Oct 2005 07:59:42 GMT
Instead of rebuilding FOP, I wrote a simple test class
that attempts to instantiate 'Rectangle'.  It runs
successfully on one system and fails on the other
(the one with the NoClassDefFoundError):

$ java -Djava.awt.headless=true TestRectangle

Exception in thread "main"
java.lang.UnsatisfiedLinkError:
/usr/local/j2sdk1.4.2_08/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such
file or directory

Sure enough, /usr/X11R6/lib/libXp.so.6 exists on one
box, but not the other.  Hopefully, it won't be too
much of an ordeal to get the missing piece(s)
installed.

- Bob

--- Bob Hall <rfhall3@yahoo.com> wrote:

> No joy with "-Djava.awt.headless=true"; looks a
> rebuild of FOP on the target system... though that
> *really* does not make sense.
> 
> - Bob
> 
> --- Bob Hall <rfhall3@yahoo.com> wrote:
> 
> > Thanks, David.  I'll try that.
> > 
> > If that doesn't do the trick I plan to build
> fop.jar
> > from source on the target machine.
> > 
> > - Bob
> > 
> > --- David Delbecq <delbd@oma.be> wrote:
> > 
> > > if it's *java.awt.Rectangle*
> > > and the computer you are trying to run fop on
> does
> > > not have
> > > graphical environment, maybe you should wonsider
> > > using headless java
> > > see
> > >
> >
>
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
> > > 
> > > Bob Hall a écrit :
> > > 
> > > >I'm getting a NoClassDefFoundError in a FOP
> > class,
> > > >PageViewport.  At line 89, the code is
> attempting
> > > to
> > > >do
> > > >'new Rectangle()'.
> > > >
> > > >The same code works fine on 3 other systems (2
> > > >Windows,
> > > >and one Linux).  It does not work on a Linux
> box.
> > > >The two linux boxes have the same version of
> Java
> > > >(1.4.2_08-b03) and the same version of Tomcat
> > > 5.0.28).
> > > >The versions of RedHat *are* different.  I even
> > > >compiled
> > > >the code on the target Linux system.
> > > >
> > > >Any ideas?
> > > >
> > > >- Bob
> > > >
> > > >
> > > >		
> > > >__________________________________ 
> > > >Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > > >http://mail.yahoo.com
> > > >
> > >
> >
>
>---------------------------------------------------------------------
> > > >To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > >For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > > >
> > > >  
> > > >
> > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message