How to convert a jar into so file and use it ?
Vaijayanthi Mala Suresh
vaijayanthimalas@gmail.com
Wed Jun 10 11:53:00 GMT 2009
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.
>
More information about the Java
mailing list