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

Vaijayanthi Mala Suresh <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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<[email protected]> 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.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.