Operating System - HP-UX
1753518 Members
5049 Online
108795 Solutions
New Discussion юеВ

Re: Could I install java 1.5.0.14 in another path?

 
SOLVED
Go to solution
Carme Torca
Super Advisor

Could I install java 1.5.0.14 in another path?

Hi,

I have one version on java (1.5.0.08) in HP-UX /opt/java1.5.
Could I install this nou version in another path diferent that /opt/java1.5?

Thanks a lot of!
Carmen.
Users are not too bad ;-)
10 REPLIES 10
V. Nyga
Honored Contributor

Re: Could I install java 1.5.0.14 in another path?

Hi,

I think the simpliest solution is:
Move the old installation to a new path (java1.5.0.08?) and install java 1.5.0.14 as always.
Then you still can move it around ...

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Carme Torca
Super Advisor

Re: Could I install java 1.5.0.14 in another path?

Hi,

Yes, but is is running and I want not stop.


Users are not too bad ;-)
V. Nyga
Honored Contributor

Re: Could I install java 1.5.0.14 in another path?

... and if you install it at a different ws and copy it to the running one in a new directory?

V.
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Could I install java 1.5.0.14 in another path?

>Volkmar: Then you still can move it around

You can install to an alternate root then move it around.
V. Nyga
Honored Contributor

Re: Could I install java 1.5.0.14 in another path?

@Dennis: that i've read in the manual, but never done myself before, so i hoped somebody else can tell her what's the right syntax?

@Carmen - do you use swinstall in command line or GUI?

In GUI you can change the target from '/' to anything.
Also in command line you can specify an alternate path:
'swinstall .... @ target_selections

DESCRIPTION
The swinstall command installs the software_selections from a software
source to either the local host or to one or more target_selections
(root filesystems). By default, the software is configured for use on
the target after it is installed. (The software is not configured
when installed into an alternate root directory.)

-> 'swconfig' has to be done after installation(?)

V.
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Could I install java 1.5.0.14 in another path?

>Volkmar: so I hoped somebody else can tell her what's the right syntax?
>Also in command line you can specify an alternate path: swinstall ... @ target_selections

Right, that's it.
swinstall -s abs-depot-path products ... @ abs-alternate-root

There is also a ,l=path that could be used if the SD product is set up correctly.

>Volkmar: swconfig has to be done after installation(?)

I think I tried it.  I don't think it can be done with:
swconfig ... @ alternate-root

V. Nyga
Honored Contributor

Re: Could I install java 1.5.0.14 in another path?

P.S.
maybe you would get more answers when you work at your points assignment

You have assigned points to 530 of 986 responses ... don't you want to honour the help you get?

From HP:
http://forums11.itrc.hp.com/service/forums/helptips.do?#28

Keep on foruming
Volkmar

[Moderator edit: The above link is no longer valid.]

*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor
Solution

Re: Could I install java 1.5.0.14 in another path?

@Dennis: 'Oops that should be: I don't think it can be done with:'

From 'man swconfig':
SYNOPSIS
swconfig [-p] [-u] [-v] [-c catalog] [-C session_file] ..... [@ target_selections]

NOTES:

+ You should execute swconfig when an initial configuration by swinstall failed, was deferred, or needs to be changed.

+ swinstall does not perform configuration on multiple versions of software.

+ The swconfig command only operates on software installed to the primary root file system.

+ swinstall and swremove do not run configure or unconfigure scripts when you specify an alternate root directory with those commands.

Seems like you *should* do it ...
V.
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: Could I install java 1.5.0.14 in another path?

Hi again,

about configured products:
'swlist -a state -l fileset | grep installed'

should show nothing - else you have to configure it with swconfig.

V.
*** Say 'Thanks' with Kudos ***