This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: generating shared libs




On Friday, December 22, 2000 11:23 PM, Tom Tromey [SMTP:tromey@redhat.com] 
wrote:
> I think you can compile jar files directly.  However, I've never done
> it (and to me it seems a bit amazing :-).  Maybe something like this
> would work?
>
>     gcc -fPIC -shared -o libmystuff.so mystuff.jar

Only if it is uncompressed.  gcj can find class files and refer to them in 
compressed jar files, but it cannot compile compressed jar files directly.  The 
fix is pretty straight forward, but it means rewriting several chunks of jc1 
related to zip archive directories and such.

I suggest extracting the class files from the jar and compiling them 
individually.

AG


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]