This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Getting started with GCJ
- To: Brad Cox <bcox at virtualschool dot edu>
- Subject: Re: Getting started with GCJ
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Thu, 08 Nov 2001 10:39:07 +1300
- CC: Michael J McGonagle <fndsnd at earthlink dot net>, java at gcc dot gnu dot org
- References: <1756D1E1-D383-11D5-8FC0-0005022D9F0A@virtualschool.edu>
Brad Cox wrote:
> I've just been thru this with some (partial) success. First step is to
> install the latest release (CVS) in /usr/local so that its available
> as an ALTERNATIVE to your trusted compiler. Write your Makefiles to
> use the version you'll install into /usr/local/bin.
I reccomend installing into something like /usr/local/gcc or
/home/bryce/gcc, that way you can wipe out the whole installed GCC tree
easily if you ever want to uninstall it, and switch between different
versions easily using a symlink.
I just set PATH to /usr/local/gcc/bin ahead of /usr/bin, and
LD_LIBRARY_PATH to /usr/local/gcc/lib in ~/.bash_profile. If I need to
switch back to the default GCC compiler for some reason, I do "export
PATH=/usr/bin:$PATH".
> CP=classes:... snip ...:rt.jar
Generally you should avoid having Sun's rt.jar on the classpath.
regards
Bryce.