Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All,
I installed JDK1.5_15 on my Ubuntu 7.04.When Iam executing "java -version"
the old gcj version 1.4.2 is reported .I added the path in .bashrc
When I executed the "which java" command its searching in /usr/bin/java.
Iam new to java and Linux.Can any one tell me where I went wrong.
Right I recommend removing that POS (Piece of Sh*t) called GCJ? I only keep it around for some basic Java-to-native-binary compiling, but for the most part, GCJ just confuses Java programmers to no end due to the fact that if you've never programmed and compiled C or C++ programs in Linux (or UNIX), half of the necessary flags you need to pass to the compiler make no sense.
Simply, uninstall GCJ and cross your fingers in hoping it's not tied into the GCC package (which, I don't believe it is).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
It is easier to do the install with 'sudo apt-get install sun-java5-jre'
(or use synaptic)
Then all links to 'gcj-4.2' will change. So when typing 'java -version'
in a terminal, the answer should be:
"java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing)"
Rgds
Edit: Sorry, indienick, I didn't see your answer while typing the above lines.
P.S.: Synaptic : Removing 'gcj-4.2' will install 'sun-java6-jre'
Last edited by knudfl; 05-26-2008 at 12:00 PM.
Reason: PS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.