JRE
Janne Jokitalo
janne.jokitalo at dnainternet.net
Fri Feb 16 08:36:18 UTC 2007
John Dangler wrote:
Hello again!
> Sorry, I did mean 1.5 . But I don't see 1.5 in any of the responses you
> listed...
You probably haven't enabled multiverse component:
$ apt-cache policy sun-java5-bin
sun-java5-bin:
Installed: (none)
Candidate: 1.5.0-08-0ubuntu1
Version table:
1.5.0-08-0ubuntu1 0
500 http://se.archive.ubuntu.com edgy/multiverse Packages
> So, why, if I have the java 5 jre and the java 5 plugin installed, does
> the java --version report 1.4.2 ?
When you type `java --version', the comp is executing actually:
$ which java
/usr/bin/java
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2005-10-14 17:21 /usr/bin/java ->
/etc/alternatives/java
And now you get to alternatives, which you can set by ussuing:
$ sudo update-alternatives --all
...and choosing the correct answers from the lists that it gives you.
Somewhere in there you should see different java versions.
--
Jaska
More information about the ubuntu-users
mailing list