My system is in CentOS4.3 and JDK1.4.2 is installed directly when the system is installed. Now I want to install JDK1.5, when executing rpm-ql jdk, rpm-qa java, and rpm-qa j2sdk, the system prompts that the installation package is not found. However, when java-version is executed, the version is JDK1.4.2.
Run the command first;
# Alternatives -- remove java/usr/shares/java/libgcj-java-placeholder.sh
# Alternatives -- remove javac/usr/share/java/libgcj-javac-placeholder.sh
# Alternatives -- remove jar/usr/bin/fastjar
# Alternatives -- remove jar.1.gz/usr/share/man/man1/fastjar.1.gz
Delete original link
Then create a new link/usr/java/jdk/which is the JDK version installed by yourself.
# Ln-s/usr/java/jdk/bin/java/usr/bin/java
# Ln-s/usr/java/jdk/bin/javac/usr/bin/javac
# Ln-s/usr/netbeans-4.0beta2/bin/netbeans/usr/bin/netbeans
You can create other links on your own.