• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java version Upgrade in Linux

 
Ranch Hand
Posts: 32
Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have Upgraded java version from 1.4 to 1.6 in Linux
Now i am having the output for java -version is java 1.6 version.

When i run the command /usr/sbin/alternatives --display java it is pointing to older version of java instead currently displaying version as follows.


How to make the current versions slaves rmiregistry , jre_exports , jre without null values by overriding older version java properties ?


 
Marshal
Posts: 4499
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not exactly sure what you want to do, but ...

You can view the linkages using ls -ld:

# ls -ld /etc/alternatives/rmiregistry
/etc/alternatives/rmiregistry -> /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry

# ls -ld /etc/alternatives/jre_exports
/etc/alternatives/jre_exports -> /usr/lib/jvm-exports/jre-1.4.2-gcj

# ls -ld /etc/alternatives/jre
ls -ld /etc/alternatives/jre -> /usr/lib/jvm/jre-1.4.2-gcj

If you want to change the links, use ln -s, for example:
ln -s /etc/alternatives/rmiregistry /usr/local/java/jdk1.6.0/jre/bin/rmiregistry

Make a note of the current links before making changes in case you need to put them back.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic