Very confused as to what version of Java is in Feisty;(
ghodmode at ghodmode.com
Wed May 2 12:38:18 UTC 2007
On 5/2/07, Ben Edwards <funkytwig at gmail.com> wrote:
> I am trying to run something that needs JDK 1.5 and it wnt work. I
> cant work out what version Feisty has. dpkg-l says its 1.5 but if I
> ask vava it says its 1.4.2. Who should I believe (output from
> commands below).
> root at chomsky:~/sqldeveloper# dpkg -l | grep jdk
> ii sun-java5-jdk 1.5.0-11-1ubuntu2
> Sun Java(TM) Development Kit (JDK) 5.0
> root at chomsky:~/sqldeveloper# java --version
> java version "1.4.2"
> gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> Ben Edwards - Bristol, UK
> If you have a problem emailing me use
> (email address this email is sent from may be defunct)
This is just a guess, but maybe you have both. Maybe the Java
executable in your path points to an old one, but you actually have
1.5installed. Try finding the java binary that is part of the package
--listfiles sun-java5-jdk. You'll get a long file listing, but you're
looking for the binary java executable.
After you find that binary, try executing java -version using the full path
from the package.
When you have found the right one, just make sure it's the first one
available in your path. I think you'll find that the one in the path is a
symbolic link. So, you just need to change where that symbolic link points
Mine is /usr/bin/java, but I installed Java directly from Sun and didn't use
the package. It's a symbolic link that goes two levels deep before it
points to the actual binary file. Check this out:
vince at home:/hdb/video/vince$ ls -l `which java`
lrwxrwxrwx 1 root root 22 2007-03-07 06:37 /usr/bin/java ->
vince at home:/hdb/video/vince$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 36 2007-03-06 17:29 /etc/alternatives/java ->
vince at home:/hdb/video/vince$ ls -l /usr/lib/jvm/java-6-sun/jre/bin/java
-rwxr-xr-x 1 root root 47116 2006-11-29 22:49
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users