install jre in local zone


 
Thread Tools Search this Thread
Operating Systems Solaris install jre in local zone
# 1  
Old 02-09-2011
install jre in local zone

How can I install a new version of jre on a local zone? Since /usr is not writable in a local zone)? pls advise

solaris10 sparc

---------- Post updated at 03:51 PM ---------- Previous update was at 02:34 PM ----------

jdk6 i mean
# 2  
Old 02-09-2011
you need a full root zone for that and you are running on a sparse root zone. check your config and delete the inherit package dirs and reinstall the zone (you will need a lot more space!).
# 3  
Old 02-09-2011
A JRE can be installed anywhere, eg. /opt/jdk. Just set your PATH, JAVA_HOME or whatever your application uses to point to the alternate JRE.
# 4  
Old 02-09-2011
I already installed the JDK 6
Code:
bash-3.00# echo $JAVA_HOME
/opt/jdk1.6.0_23
bash-3.00# java -version
java version "1.5.0_26"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03)
Java HotSpot(TM) Server VM (build 1.5.0_26-b03, mixed mode)

how can I point it to the alternate java? I could not locate the alternatives though. thanks

Last edited by DukeNuke2; 02-09-2011 at 09:27 AM..
# 5  
Old 02-09-2011
Code:
PATH=/opt/jdk1.6.0_23/bin:$PATH

# 6  
Old 02-09-2011
i tried this and it worked. however when I logged in again on another window, i still see the old version. what can I do to take this into effect? thanks

---------- Post updated at 09:43 AM ---------- Previous update was at 09:04 AM ----------

ok no need. i will just change the java version on the global zone Smilie thanks for the help
# 7  
Old 02-10-2011
Quote:
Originally Posted by lhareigh890
i tried this and it worked. however when I logged in again on another window, i still see the old version. what can I do to take this into effect?
One of /etc/default/login or /etc/profile or $HOME/.profile or $HOME/.bash_profile.
Quote:
ok no need. i will just change the java version on the global zone
Sure, that was the idea of sparse zones.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

New ZFS FS not seen on local zone

Hi , I added a new fs to the global zone and also did the zonecfg to add the FS to the zone but finally I do not see the new "FS" on the local zone. Even in th e/etc/zones/zone.xml the fs and the correct directory is mentioned. Any Idea please ? (4 Replies)
Discussion started by: manni2
4 Replies

2. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

3. Solaris

SIGPWR on local zone

Can anyone explain how you can get a SIGPWR signal on a Solaris 10 local zone, but none of the other zones on the frame had a problem. :confused: (1 Reply)
Discussion started by: JerryHone
1 Replies

4. UNIX for Dummies Questions & Answers

Need to find the OS JRE as well as User installed JRE on my UNIX box!

Hi, I want to determine whether my java application is pointing to the OS version of Java or the User installed Java version on my Unix box. I am aware of the "java -version" command, however I am unsure if the version returned is the OS one or the user one. Please help. Ali. (5 Replies)
Discussion started by: ali40
5 Replies

5. Solaris

Covert Global zone to local zone

Dears, I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones. i found a document which seems to be helpful but i'm stuck @ the 1st step. to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
Discussion started by: mduweik
1 Replies

6. SCO

How to install Apache 5.0 and JRE 1.4.0

Hello, I have a problem to run the the Web aplication Cincom Mantis XML on a SCO 6.0 with MP2. My Tomcat is 4.1.31 The Cincom support tell me tha I need the Apache Tomcat 5.5 and Java JRE 1.4.0 Can I install a linux version into SCO 6.0 system ? Thank you for your help. ... (1 Reply)
Discussion started by: hrmaldonado
1 Replies

7. Solaris

Swap in local zone

Hello folks, I have question regarding behavior of local zone which has no dedicated swap configured. Zone has set only capped memory, and my question is if all memory is occupied if this zone will start to use swap from the global zone?? I'm little bit confused from information regarding... (6 Replies)
Discussion started by: brusell
6 Replies

8. Solaris

Global zone name from local zone

How to check the global zone name from local zone. (6 Replies)
Discussion started by: fugitive
6 Replies

9. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( 192.268.35.210) for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210) However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies
Login or Register to Ask a Question