i did this and ran a sample program when i compile by saying javac it gives me the following msg

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac master links required by jpackage.org conventions. libgcj's rmiregistry, rmic and jar tools are now slave symlinks to these masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools installed by previous versions of libgcj conflicted with symlinks installed by jpackage.org JVM packages.

need help thank you

san ch

Ranch Hand

Posts: 68

posted 12 years ago

i beleive there is a another version of jdk which is here and i happend to install 1.4 again may be that is messing uo things here

Layne Lund

Ranch Hand

Posts: 3061

posted 12 years ago

Yes, this means that your system is trying to use a different version of Java than the one you tried to install. You say that you followed the instructions that you quoted, but it seems that something is missing. Can you copy and paste the exact commands you typed as well as the output produced? Also, what operating system are you using?

If you can provide some exact details (i.e. screenshots or copy-and-pasted snippets from your command line terminal), we will be able to help you more accurately.

This script is a placeholder for the /usr/bin/java and /usr/bin/javac master links required by jpackage.org conventions. libgcj's rmiregistry, rmic and jar tools are now slave symlinks to these masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools installed by previous versions of libgcj conflicted with symlinks installed by jpackage.org JVM packages.

iam compiling using javac only

Evgeni Shuster

Greenhorn

Posts: 15

posted 12 years ago

Hello san ch. First, by posting this you helped me to setup my own JDK, thank you. Second, you typed that you used exactly: export JAVA_HOME=/usr/local/sun/jdk1.2.2 If it is so, them you may be need to change it to fit your directory. For example, I installed JDK 1.5.0 and used: export JAVA_HOME=/usr/java/jdk1.5.0_01 Please respond, if this was useful. Good luck.

san ch

Ranch Hand

Posts: 68

posted 12 years ago

Hi evgini

iam happy that you have resolved your jdk thing... iam yet to work on that....thank you for your help ill try that