Re: [javaCompiler-users] cannot compile specific jars
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2006-10-31 11:27:56
|
praveen bharath wrote: > Hi, > > I am trying to create a swing application that uses > commons-logging.jar. This is failing and when I tried > to create a jar object for this commons-logging.jar I > am getting the following error. I am new to GCJ and > JavaCompiler and greatly appreciate your help in this > regard. > > creating Copy of commons-logging-win.jar.o > - Java 1.5 preprocessing: Copy of commons-logging.jar > [RetroWeaver] Processing 17 classe(s) > Exception in thread "main" > com.rc.retroweaver.RetroWeaverException: Weaving > failed > at 0x5dd538(Unknown Source) > at 0x47104e(Unknown Source) > at 0x475aae(Unknown Source) > at 0x475ad5(Unknown Source) > at 0x475c2b(Unknown Source) > at 0x475c5b(Unknown Source) > at 0x4158b1(Unknown Source) > at 0x41986b(Unknown Source) > at 0x66692c(Unknown Source) > at 0x543337(Unknown Source) > at 0x560ae0(Unknown Source) > at 0x46fa00(Unknown Source) > at 0x46fb62(Unknown Source) > at 0x46fb97(Unknown Source) > at 0x401308(Unknown Source) > at 0x401233(Unknown Source) > at 0x401284(Unknown Source) > at 0x7c816fd3(Unknown Source) > Caused by: java.util.zip.ZipException: compressed > size was 1280, but I expected 2816 > at 0x5dd538(Unknown Source) > at 0x47104e(Unknown Source) > at 0x475aae(Unknown Source) > at 0x476354(Unknown Source) > at 0x4a1884(Unknown Source) > at 0x512364(Unknown Source) > at 0x512dad(Unknown Source) > at 0x512fc0(Unknown Source) > at 0x5198c4(Unknown Source) > at 0x411979(Unknown Source) > at 0x4197b4(Unknown Source) > ...10 more > > failed... Ok, multiple things: - Which version of JavaCompiler are you using? Please update... - I don't think you have to preprocess commons-logging.jar. - Swing will most probably not work - logging is already in GCJ. I don't know if it is in a javaCompiler release or if it was imported later. Just mentioning it because you might run into "multiple definitions of ..." problems. Marco |