Compatible Support Forums: Can't run j2sdk on Fedora Core 3

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can't run j2sdk on Fedora Core 3

#1 User is offline   ericinsomewhere 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 27-July 04

Posted 26 November 2004 - 08:21 PM

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.



0

#2 User is offline   blackpage 

  • member
  • Group: Members
  • Posts: 120
  • Joined: 23-March 04

Posted 26 November 2004 - 09:01 PM

'lo there

Midway through this thread ...

Java installation in Fedora/RH

... you will find some convenient tips as to how to get things fixed.

Hope that helps
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users