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: Patch to allow Ada to work with tree-ssa


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/


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