- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- How to know, which java version is the default
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 08:32 AM
тАО08-21-2003 08:32 AM
I have java118 and java122 installed on Tru Unix 5.1A. How can I check, what is the default and how can I change it?
thanks for any insight
Michael
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 09:15 AM
тАО08-21-2003 09:15 AM
SolutionTo check it use.
# java -version
To change the default use.
Assuming 1.1.8 is the default currently.
This will first unset the current default of 1.1.8.
# /usr/opt/java118/bin/unset_java_default.sh
Now set 1.2.2 as the default use.
# /usr/opt/java122/bin/set_java_default.sh
Then recheck it.
# java -version
There is a unset_java_default.sh and a set_java_default.sh for versions 1.1.8 and higher under the /usr/opt/javaNNN/bin directory, where NNN is the major release number, i.e. 118, 122, 131. The scripts just change a symbolic link for /usr/bin/java .
FYI, this is documented in the release notes.
Hope this helps.
Dave Bechtold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 09:55 AM
тАО08-21-2003 09:55 AM
Re: How to know, which java version is the default
this is a precise and clear answer.
ehem, I somewhat have an allergy against documentaion. ;-))
One thing though, 118 and 122 are installed.
Why is 118 the default and not the 122?
Usually you take the newest, right?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 09:58 AM
тАО08-21-2003 09:58 AM
Re: How to know, which java version is the default
forget my last question. I found the release notes. ;-)
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2003 10:56 PM
тАО08-21-2003 10:56 PM
Re: How to know, which java version is the default
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2003 06:54 AM
тАО08-22-2003 06:54 AM
Re: How to know, which java version is the default
Unfortunately I have read often docs in search for and answer to a question and I found none, that I developped a dislike for it. :-(
So I try, whenever possible to go without.
best regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2003 09:43 AM
тАО08-25-2003 09:43 AM
Re: How to know, which java version is the default
As of V5.1b, V1.3.1 (fastvm) is the default jvm and the OS utilities that require V1.1.8 have been modified.
hth,
// Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2003 03:31 AM
тАО09-24-2003 03:31 AM
Re: How to know, which java version is the default
However java -version doesnot give information about service release .
How to get info about service release
Best Regards
abhijeet