Trying to set up JAVA on Linux
Hi Everyone,
I just freshly built a FC5 box to do java development on. It installed the following packages during installation:
java-1.4.2-gcj-compat-1.4.2.0-40jpp_83rh
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_83rh
java-1.4.2-gcj-compat-src-1.4.2.0-40jpp_83rh
java_cup-0.10-0.k.1jpp_9fc
java_cup-javadoc-0.10-0.k.1jpp_9fc
java_cup-manual-0.10-0.k.1jpp_9fc
This one, java-1.4.2-gcj-compat-devel has the java utilities, javac, java etc etc. However, now i've downloaded jdk-1_5_0_07-linux-i586 from sun.com and it's installed.
Now when I type javac -v it says this:
Eclipse Java Compiler v_585_R31x, 3.1.2 release, Copyright IBM Corp 2000, 2006. All rights reserved.
I think it's running /usr/bin/javac which is part of the java-1.4.2-gcj-compat-devel.
I don't know what version it's using. I tried to remove v 1.4.2, but it says ant relies on it, which is part of apache.
Also, I know my classpath should be ".", do I need to set up any other environment variable.
Can someone who's been through this before please give me some guidance? Thanks :)

