Re: Problems using a compiled jar with gcj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, August 10, 2010, Andrew Haley wrote:
> On 08/10/2010 05:51 PM, Lothar Werzinger wrote:
> > I would expect a NoClassDefFoundError for the jython script engine
> > itself, as I did not provide it on the classpath, but
> > ScriptEngineManager is in the shared library compiled from the jar, so
> > why do I get a NoClassDefFoundError?
> 
> You need to compile your main program -fPIC.

Hmm, OK I forgot that, too. Have it in my app, though.
 
> If you really want to know why, I can explain...  :-)
> 
> Andrew.

As my app needs the "Bindings" Class from JSR 223 and the downloaded jar did 
for some reason not contain it I tried extracting javax/scripting from a 
JDK1.6 rt.jar

Now the ominous NoClassDefFoundError is back. Any ideas?

$ ./build.sh 
testgcj
Create JavaVM ...
Create JavaVM done.
Java Exception:
java.lang.NoClassDefFoundError: javax.script.ScriptEngineManager

Lothar

Attachment: gcjtest.tar.bz2
Description: application/bzip-compressed-tar


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux