Jump to content
xisto Community
Sign in to follow this  
jedipi

Install Jdk1.5.0 Under Fedora Core 4 Share my experience

Recommended Posts

Install jdk1.5.0 under Fedora core 4

I used to use JDK1.4.2.
However JDK 1.5.0 was released long time ago.
Today, I got it updated.

Here are the steps for newbies:

1. Download Jdk1.5.0. This is a must :). Everone know where to get it.
anyway, here is the address:
http://www.oracle.com/technetwork/java/index.html
The newest version is JDK 5.0 Update 4.
you can choose Linux self-extracting file or Linux RPM in self-extracting file.
For me, I use Linux self-extracting file (jdk-1_5_0_04-linux-i586.bin)

2. Change the directory to where you save the .bin file.
then run/execute it.

CONSOLE

./jdk-1_5_0-linux-i586.bin

A directory jdk1.5.0_04 will be extracted automatically.
After that, move the directory jdk1.5.0_04 to /usr/local/. Easy!!??

3.Setup evironment variable.
For normal user, you need to edit your user profile
it locates in your home directory, ~/.bashrc
use you favorite text editor to open it, and add the follow content into it.
JAVA_HOME=/usr/local/jddk1.5.0_04PATH=$PATH:$JAVA_HOME/binCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport JAVA_HOME PATH CLASSPATH

4.install java plugin for firefox
CONSOLE
ln -s /usr/local/dk1.5.0_04/jre/plugin/i386/ns7/libjavaplugin_oji.so /root/.mozilla/plugins/

Share this post


Link to post
Share on other sites

Well it doesn't look too hard to do, but what advatages does 1.5.0 bring that aren't present in 1.4.x ? Is there anything that is so urgent that we can't wait for pre packaged RPMs.

Share this post


Link to post
Share on other sites

only redhat based package managed distro's can properly use RPM's. that is one reason.anouther is that version 1.5 has a 64bit version available.

Share this post


Link to post
Share on other sites

Well it doesn't look too hard to do, but what advatages does 1.5.0 bring that aren't present in 1.4.x ? Is there anything that is so urgent that we can't wait for pre packaged RPMs.

<{POST_SNAPBACK}>


Well JDK 1.5 has a thing called generaic which is similar to STL. Also the JRE has improved UI and Performance ..especially the JNLP aka Java Web Start.

 

It has its advantages ..but I think Java 1.4 will stick around for another year or so in both JDK and JRE ..

 

What do you people think..

Share this post


Link to post
Share on other sites

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Is it ok to set classpath like that? I've seen many people set it this way:
CLASSPATH=.:$JAVA_HOME/jre/lib

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.