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.
Free Guide: Linux from Scratch
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.
Click Here to receive the Linux from Scratch Guide absolutely free.
As you have guised I am a newb to Linux, whenever I stray from the GUI Desktop I feel very afraid.
Anyway, For the past month I have bee trying to install the Java SDK 6 and RTE from the jdk-6-linux-i586 package.
My os is Linux Fedora Core 5.
After numerous attempts, installing and the uninstalling, I am fed up with all of the tutorials and howtos that are outdated and do not work with the jdk 6.
Can anyone give me step by step help on installing the jdk on fc5?
If not, could someone point me in the right direction?
Enter to keep the current selection[+], or type selection number:
Type: <choose 1 or 2>
In the example above java is already configured correctly [*+ 2] to
use Sun's Java, no changes are needed, just press the Enter key here.
If you have been following the instructions then you should have
the same results (version numbers may be sightly different).
Now type; /usr/sbin/alternatives --display java
You should see for example;
java - status is manual.
link currently points to /usr/java/j2re1.5.0_09/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1
/usr/java/jre1.6.0/bin/java - priority 2
Current `best' version is /usr/java/jre1.6.0/bin/java.
Next you might want to create (or edit) /etc/profile.d/java.sh
file, example below;
Modify the commands a bit, it is up to you to make the adjustments needed just change the paths for Sun's Java to reflect the SDK pathing.
I would but as I said I am very new to Linux.
I tried to do that before but just kept getting errors.
Hate to ask this of you but could you maybe run through the tutorial you gave and change the commands to suit my needs?
I would be very greatful
Enter to keep the current selection[+], or type selection number:
Type: <choose 1 or 2>
In the example above java is already configured correctly [*+ 2] to
use Sun's Java, no changes are needed, just press the Enter key here.
If you have been following the instructions then you should have
the same results (version numbers may be sightly different).
Now type; /usr/sbin/alternatives --display java
You should see for example;
java - status is manual.
link currently points to /usr/java/jre1.6.0/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1
/usr/java/jre1.6.0/bin/java - priority 2
Current `best' version is /usr/java/jre1.6.0/bin/java.
Next you might want to create (or edit) /etc/profile.d/java.sh
file, examples below:
Thank you so much Lenard, Eclipse used to run so slow on my computer preventing me from developing anything on fedora using Eclipse, but now that i have followed your steps and switched to SUN's java it runs as it should. Excellent guide.
Thank you, Lenard, at last a good and quick java 6 instalation guide.
Just one thing, in the profile.d/java.sh, I used jdk1.6.0/bin for JAVA_HOME, because jdk1.6.0/jre/bin doesn't have the compiler, and the one I used does have it.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Which exactly what you should do, good for you. This is a guide and adjustments are sometimes needed for things to be right. Glad you found this helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.