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: Need your help about GCJ


sundy wrote:
> Dear,
>   Are u all right? I sorry to trouble you. I have a code writen by java.
> Now, i need to compile it into share object used in Linux (My system is
> Redhat 9.0).but i don't know how to do it. Need your help hurryly. Thank
> you.

Read the GCC manuals:

  http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

It can be as simple as:

  gcj -fPIC -shared Foo.java Bar.java -o snafu.so

See also "How to BC compile with GCJ" (needs GCJ 4.0.0 or better):

  http://gcc.gnu.org/wiki/How%20to%20BC%20compile%20with%20GCJ

HTH,
Ranjit.

-- 
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://ranjitmathew.hostingzero.com/


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