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: Getting started with GCJ


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.



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