Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

OTHER TIPS, TRICKS AND TUTORIALS

How to Install Java in Fedora Core 6

- Java Runtime Environment

By: Marius Nestor, Linux Editor

By default, Fedora Core 6 systems come with an old Java software installed, so you need to install a newer version of Java Runtime Environment to enjoy all the Java applications out there. In this quick guide, I will teach you how to update/install your Java Environment.

Let's begin by downloading the latest version of JRE (Java Runtime Environment) from here. Just click on the Download link where it says Java Runtime Environment (JRE) 5.0 Update, then you’ll need to accept the license and download the Linux self-extracting file.

WARNING: Please remember to always replace the xx from the jre-1_5_0_xx-linux-i586.bin file with the latest version. At the moment of this guide’s writing, the latest version was 09, so the file should look like this: jre-1_5_0_09-linux-i586.bin

After you have finished downloading the file, you need to move it into the /opt folder. Open a console and type:

mv jre-1_5_0_xx-linux-i586.bin /opt

Now, you will need to make this file executable so you can extract it. Follow the commands below:

cd /opt - so you can go into the /opt directory
chmod +x jre-1_5_0_xx-linux-i586.bin

And now, let's run the executable file with the following command:

./jre-1_5_0_xx-linux-i586.bin

You'll be prompted with the License Agreement, hit space until you are asked if you agree or not. Type Yes and the extraction process will begin. After the extraction process is finished, just remove the binary file with the following command:

rm -rf jre-1_5_0_xx-linux-i586.bin

Now, let's put the Java plugin into your browser's plugin folder. Konqueror, Firefox and Mozilla browsers will all look into the same folder, for plugins. So type the following command:

ln -s /opt/jre1.5.0_xx/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

Well, now you need to make the Java executable available for the whole system, so you can run all the Java applications you encounter. Create the following file with your preferred text editor:

kwrite /etc/profile.d/java.sh

Now paste the following options into the file, remember to enter a carriage return after these lines, then save it. Remember to replace the xx with the latest version you have downloaded:

export J2RE_HOME=/opt/jre1.5.0_xx
export PATH=$J2RE_HOME/bin:$PATH


Now, type the following command to make that file available:

source /etc/profile.d/java.sh

Then type this command to see if the path is correct:

which java

You will see something like this: /opt/jre1.5.0_09/bin/java

Then type these commands:

/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_xx/bin/java 2
/usr/sbin/alternatives --config java

After you have entered the last command, you'll be asked to choose which Java software you want for your system. Just press 2 key and hit enter.

And finally, just type this command to see if everything looks good and your system has a new Java Environment:

/usr/sbin/alternatives --display java

And you can also type this command to see the version of your Java Runtime Environment:

java -version

Mine looks like this:

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)


You should now be able to run most of the Java applications out there, with the commands like:

java -jar application.jar

or

javaws application.jnlp

Enjoy!

MORE RELATED ARTICLES: How to Install XGL on Fedora Core Fedora Desktop Customization Debian Installation Guide Installing A Linux Distro to An USB Drive Flash Player for Linux Configuring the Ethernet Interface from The Command Line How-to Use Your Partitions in Linux
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:

9th November 2006, 09:09 GMT | Copyright (c) 2006 Softpedia | Contact:
Read by 49,204 user(s) | Rating: | 16 vote(s) so far | Cast your vote:
How to Install Java in Fedora Core 6 - USER OPINIONS

Comment #1 by iggy8n on 2006-11-16, 18:25 GMT reply to this comment 
I got stuck at the last two lines where one must choose between the old Java and the new one - where the word 'alternative' appears. I don't have the choice to pick the new one. It refers to jre1.5.0_xx. I can't change it to the correct version. Is there a place to discuss this with other users? I'm glad you're putting out this type of article. I suppose scripts will written to fix all this. But, for now, you're my only hope to get this OS up and running. Thanks for being there.

Reply #1.1 by TheMatrix on 2006-11-17, 02:09 GMT
You have copy/paste the commands, but you should have replaced the xx with 09 on every command that has the name of the file. REPLACE xx WITH 09 on the commands!

So here it is again without xx:

mv jre-1_5_0_09-linux-i586.bin /opt

cd /opt

chmod +x jre-1_5_0_09-linux-i586.bin

./jre-1_5_0_09-linux-i586.bin

rm -rf jre-1_5_0_09-linux-i586.bin

ln -s /opt/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

kwrite /etc/profile.d/java.sh

export J2RE_HOME=/opt/jre1.5.0_09

export PATH=$J2RE_HOME/bin:$PATH

source /etc/profile.d/java.sh

which java

install /usr/bin/java java /opt/jre1.5.0_09/bin/java 2

/usr/sbin/alternatives --config java

Follow this commands and everything will be fine :) I've put xx and not 09 because when the Java version will be updated, people will copy/paste with 09 version.

Comment #2 by darkjamzi on 2006-11-18, 10:58 GMT reply to this comment 
i tried the whole thing and everything seems alright, but still my browser doesn't want to play runescape. :S

Reply #2.1 by TheMatrix on 2006-12-11, 13:53 GMT
RuneScape runs perfect for me, with Java 1.5.0_09 and the brand new 1.6.0 version that was launched today :)

Reply #2.2 by msowden on 2007-01-17, 06:10 GMT
I tried it in FC 5 but I had to get a few symbolic links sorted out manually.

The bin auto-extracted itself to /usr/java/jre1.6.0 not to /opt/jre1.6.0

Running "which java" was pointing to older files. Had to delete a lot of existing old symbolic links and replaced them with the new ones. Had to do quiet a bit of looking to find all the old links but after that it worked fine.

Comment #3 by juan on 2008-01-23, 06:45 GMT reply to this comment 
Very good and helpful article. Next edit it might be helpful to mention that the install directory can default to /usr/java/... instead of /opt/...

Thanks
Juan


Comment #4 by Hassan Michael on 2008-04-03, 17:49 GMT reply to this comment 
I've been looking for fc6 java cure, but found nothing until I met you. Where have you been all my life. You are a genius. Work perfectly!

Comment #5 by maxwell adams on 2008-05-05, 03:24 GMT reply to this comment 
i did everything as is above.
do get to the which java stage , and the correct reply.
but Firefox still not java enabled .

Any help
Max


go to top


SHARE YOUR OPINION ABOUT How to Install Java in Fedora Core 6

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive