Add new comment

Submitted by harlequin (registered user) on Wed, 2008-03-05 11:01.

The path /usr/java/latest/bin/java should actually point to where java was extracted. So, if you extract java to: /usr/jre<version>, then that command should be:

/usr/sbin/alternatives --install /usr/bin/java java /usr/jre<version>/bin/java 2

If you simply copy and paste what's existing, then you'll get problems when you go:

which java

It'll complain that it can't find java in the path, like so:

[root@localhost ~]# java -version
-bash: /usr/bin/java: No such file or directory

And:

[root@localhost ~]# which java
/usr/bin/which: no java in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.