Patch to allow Ada to work with tree-ssa
Ranjit Mathew
rmathew@gmail.com
Wed Jun 23 06:19:00 GMT 2004
Richard Kenner wrote:
> >I don't know how to run Java code, though. Can you tell me the
> >command-line options I need with the file you provided to see the problem?
>> gcj err6.java --main=err6
>> This will work if done from the build directory? Will it properly find
> the library? Remember that I haven't done a "make install" ...
What I use is:
export MYGCJ="$BUILD/gcc/gcj -B$BUILD/gcc/ -B$BUILD/i686-pc-linux-gnu/libjava/ -I$BUILD/i686-pc-linux-gnu/libjava/libgcj-3.5.0.jar -L$BUILD/i686-pc-linux-gnu/libjava/.libs/"
alias mygcj="$MYGCJ"
mygcj --main=HelloWorld HelloWorld.java
LD_LIBRARY_PATH=$BUILD/i686-pc-linux-gnu/libjava/.libs ./a.out
($BUILD is set to the path to the folder where you're building GCC.)
I have to define the MYGCJ variable (and not just the alias) as
it is useful with Alexandre Oliva's "debugx" scripts to debug
the Java front end like so:
debugx jc1 $MYGCJ <whatever>
Hope this helps,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
More information about the Java
mailing list