Solved

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

Posted on 2009-04-06
4
1,191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:sunhux
ID: 24076848

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
ID: 24079658
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
ID: 24079676
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
ID: 24226258

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

756 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