|
|
|
|
![]() ![]() |
Jul 25 2005, 06:59 AM
Post
#1
|
|
|
Premium Member Group: Members Posts: 352 Joined: 2-March 05 From: Australia Member No.: 2,859 |
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 anyway, here is the address: http://java.sun.com/j2se/1.5.0/download.jsp 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. CODE JAVA_HOME=/usr/local/jddk1.5.0_04 PATH=$PATH:$JAVA_HOME/bin CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export 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/ |
|
|
|
Jul 25 2005, 11:13 AM
Post
#2
|
|
|
Advanced Member Group: Members Posts: 196 Joined: 12-April 05 Member No.: 3,899 |
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.
|
|
|
|
Jul 25 2005, 12:58 PM
Post
#3
|
|
|
Way Out Of Control - You need a life :) Group: Members Posts: 1,366 Joined: 14-September 04 From: Nottingham England Member No.: 570 |
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. |
|
|
|
Jul 25 2005, 05:00 PM
Post
#4
|
|
|
Advanced Member Group: Members Posts: 196 Joined: 17-June 05 From: Topi,Swabi,NWFP,Pakistan Member No.: 6,301 |
QUOTE(madcrow @ Jul 25 2005, 04:13 PM) 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. 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.. |
|
|
|
Aug 9 2005, 10:09 AM
Post
#5
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 21 Joined: 2-March 05 From: Auckland, New Zealand Member No.: 2,849 |
QUOTE(jedipi @ Jul 25 2005, 07:59 PM) CODE 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 |
|
|
|
Aug 9 2005, 11:44 PM
Post
#6
|
|
|
Colonel Panic Group: [MODERATOR] Posts: 2,850 Joined: 25-March 05 From: Toronto, Ontario, Canada Member No.: 3,233 myCENTs:98.66 |
I just noticed this but, Jedipi, NEVER EVER RUN ROOT AS YOUR REGULAR DAY USER, IT MAY CAUSE YOUR MACHINE TO PRACTICALLY EXPLODE IF YOU ACCIDENTALLY DELETE SOMETHING!
xboxrulz |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 21st November 2008 - 09:20 PM |