Solved

How to upgrade to JRE ( Java Runtime Environment ) 5 Upd 8 in Solaris

Posted on 2009-04-06
4
1,134 Views
Last Modified: 2013-11-23
Hi,

I uploaded into my Solaris 10's server to /var/tmp/jre  the file
jre-1_5_0_18-solaris-sparc.sh

& run the above using root (ie ./jre..sh ) and this generates an
entire folder under /var/tmp/jre/jre1.5.0_18 ...

I think the steps given below are not complete :
http://java.sun.com/j2se/1.5.0/jre/install-solaris.html

Q1:
Do we need to move the files in /var/tmp/jre/jre1.5.0_18
to /usr/j2se  (there's currently a directory /usr/j2se/jre
there which holds an older version of jre)

Q2:
what about the binaries in /usr/bin/*  (ie java, javaws)

Q3:
what about /usr/java/bin

Q4:
any other things that I need to do for new java to take effect?
I've moved from /var/tmp/jre/jre...  to above directories & rebooted
the server but when I login as root & issue "java -version" it's still
showing the old Update 12 version

0
Comment
Question by:sunhux
  • 2
  • 2
4 Comments
 

Author Comment

by:sunhux
Comment Utility

Just realized that the soft link is still pointing to Update 12 :

# cd /usr
# ls -ld jav*
lrwxrwxrwx   1 root     other         15 Apr 25  2008 java -> jdk/jdk1.5.0_12

What's the difference JDK and JRE.

I've just downloaded jdk-1_5_0_18-nb-6_5_1-solaris-sparc-ml.sh

So does this jdk package cover what's in the jre package I downloaded earlier?
Or I need to download/install both?
0
 
LVL 12

Expert Comment

by:basav_com
Comment Utility
jdk includes 'jre' + extra tools. You don't need to install again.

http://www.java-tips.org/java-se-tips/java.lang/what-is-the-difference-between-jdk-and-jre.html
0
 
LVL 12

Accepted Solution

by:
basav_com earned 500 total points
Comment Utility
Set your JAVA_HOME variable to point to the new location. Check your PATH varible, and update it accordingly.
i.e. PATH should have..   PATH=$JAVA_HOME/bin:$PATH so it will point to the new java.
0
 

Author Comment

by:sunhux
Comment Utility

At the java download site, there's  JDK   &    JDK+Java Beans.

Can I say the latter is the superset of the former?  Or I should not
install JDK+Java Beans if what's currently existing in my system
is JDK only
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now