[25940] in Athena Bugs
linux 9.3.11: /usr/bin/java
daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Mon Aug 16 18:01:30 2004
Message-Id: <200408162201.i7GM1PZs022222@opus.mit.edu>
To: bugs@mit.edu
Date: Mon, 16 Aug 2004 18:01:25 -0400
From: "Jacob Morzinski" <jmorzins@mit.edu>
cc: jmorzins@mit.edu
Errors-To: bugs-bounces@mit.edu
System name: opus.mit.edu
Type and version: i686 9.3.11 (with mkserv)
Display type: nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] (rev 15)
Shell: /bin/sh
Window manager: sawfish
What were you trying to do?
Run java
What's wrong:
Typing "java" at the prompt runs a shell script that prints
text to the terminal and takes no other action. It doesn't
run a java interpreter, and because it's early in the path,
it prevents a user from using "add java".
What should have happened:
I'm not sure. Maybe "command not found", so I'd know that
I needed to use the java locker. Or maybe the computer
should have run java from /usr/java/j2re1.4.2_04/bin/java
Please describe any relevant documentation references:
/usr/bin/java is a symlink to /etc/alternatives/java which
is a symlink to /usr/share/java/libgcj-java-placeholder.sh
% rpm -qf /usr/bin/java
file /usr/bin/java is not owned by any package
` % rpm -qf /usr/share/java/libgcj-java-placeholder.sh
libgcj-3.2.3-39
% /usr/bin/java
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.
Thank you,
-Jacob