Java on 64 bit Ubuntu
I am running a 64 bit version of Ubuntu on my amd-64 machine (athlon)
I have gij alrady installed through syanptic. I recently downloaded 64bitversion of jdk1.5 from the sun site, and installed it. I set the path and classpath variables.
Now, when i type java on the shell, it invoked gij and not the java from jdk1.5
Can someone help me out, I do not want to uninstall gij, since, openoffice depends on it.
When you say "gij" do you really mean gcj? To the best of my knowledge, the Sun JDK does not redirect your /bin/java or /usr/bin/java links when it installs, so although it probably did install correctly, if you want a program to use the Sun JVM you'll need to do one of two things:
1. Change the link for your /bin/java or /usr/bin/java to point to the java executable provided by Sun (not recommended).
2. Give a command-line option to the programs that need the Sun Java VM to show them where it is. I don't know specifically how to do this in OpenOffice, but I know it works on programs I use such as Eclipse.
techimoe solution works, but the Debian/Ubuntu way of doing this would be through the "alternatives" configuration.
Make a proper symlink for
and the likes.
Anyway Sun Java's should set up the alternatives automatically if you installed it the "proper" way.
See my post here:
Thanks, antidrugue. That's much more elegant. ;)