This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: Help!


> Do things in this order:
> 
> configure egcs
> make
> make install

./configure --prefix=/projects/learning/usr/java/egcs

I installed the egcs and the c++, gcc compiler are both working fine from
here.

> 
> configure libgcj
> make
> make install
> 

I used the same configuration command. That is both libgcj and egcs have
been installed in the same directory.

$(srcdir)/configure --prefix=/projects/learning/usr/java/egcs

Then from the build directory I did make and make install.

The libraries have been installed in 
/projects/learning/usr/java/egcs/sparc-sun-solaris2.6/lib

I named it as LIBDIR.

I have also added LIBDIR to my LD_LIBRARY_PATH. I compile with the
following line
gcj --main=HelloWorld -o HelloWorld -lsocket -L$LIBDIR HelloWorld.java
which seems to work fine. However, while running it just segfaults.

If you need any more information, I will be glad to provide.

Thanks,
Manosiz.


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