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]

GCJ FAQ correction


Hello,

The GCJ FAQ at http://www.gnu.org/software/gcc/java/faq.html in section "1.7 Can I interface byte-compiled and native java code" is incorrect, or did not appear to work correctly for me.

The FAQ states:

$ gcj -shared -o HelloWorld.so HelloWorld.java
$ gij HelloWorld

However, I had to change it to include a lib- in the output name (Linux x86):

$ gcj -shared -o lib-HelloWorld.so HelloWorld.java
$ gij HelloWorld

Which did indeed work.

Regards,
Brian Sullivan


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