Can't run j2sdk on Fedora Core 3

I'm a beginner in Linux, anybody can help to install Sun's j2sdk on Fedora Core 3? After download and install Sun's j2sdk, and try to run. The following message shown. How can I fix it? - beginning of message - # java libgcj-java-placeholder.

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar08.webp

1 Posts
Location -
Joined 2004-07-27
I'm a beginner in Linux, anybody can help to install Sun's j2sdk on Fedora Core 3?
 
After download and install Sun's j2sdk, and try to run. The following message shown. How can I fix it?
 
--- beginning of message -----------------------------------
[root@localhost ~]# java
libgcj-java-placeholder.sh
 
This script is a placeholder for the /usr/bin/java
master link 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.
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
--- end of message ------------------------------------------
 
I try to modify /etc/profile to include Java Path as following, but still can't solve.
--- start of profile ----------------------------------------
# /etc/profile
 
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
 
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
 
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
 
pathmunge /usr/X11R6/bin after
 
 
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
 
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
 
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
 
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
 
# Java Path
export JAVA_HOME=/usr/java/j2sdk1.4.2_06
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
 
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
 
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
 
unset i
unset pathmunge
 
--- end of /etc/profile -------------------------------------
 
How can I fix it?
 
thx.
 
 
 

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic