This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: How to convert a jar into so file and use it ?


Hi All,

I also have the same requirement. Taking from David's example,  when i
tried to do the following

gcj -O0 -g0  --classpath=./:extern/mytest.jar  -c TestApp.java -o TestApp.o

It gives me the following error

TestApp.java:56: internal compiler error: in make_class_data, at
java/class.c:1600
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Can you please let me know what is the reason for this error.

What am I doing wrong over here?

Thanks
Mala

On Wed, Jun 10, 2009 at 4:36 PM, Andrew Haley<aph@redhat.com> wrote:
> David Michel wrote:
>> Thanks !
>>
>> But I'm a bit puzzled by this
>>
>> ...-L. -lhello --classpath=.:hello/Hello.jar...
>>
>> ?Why does it need both the libhello.so and the Hello.jar file ?
>
> The Hello.jar file is used at compile time to check the names and types
> of all the classes you're going to use. ?It's not used at runtime.
>
> Andrew.
>


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