• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java version Upgrade in Linux  RSS feed

 
Gangireddy Danam
Ranch Hand
Posts: 32
Java Redhat
  • Mark post as helpful
  • send pies
  • 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 ?


 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!