LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-17-2002, 09:39 PM   #1
rhammack
LQ Newbie
 
Registered: Jan 2002
Posts: 1

Rep: Reputation: 0
Java jre-1.3.1_02 can't find libjava.so after install


I just installed the jre-1.3.1_02 from sun using the non-rpm .bin file provided by Sun.
I installed su root, to /usr/java. when I try java -version at a bash shell, I get can't find libjava.so.
I checked my environment and there was no classpath set, so I added a CLASSPATH= pointing to the directory with libjava.so,
tried java -version again, same results, set CLASSPATH= 1 dir level up, repeat, etc. still no joy.
the symlink in /usr/bin does point to the correct java .
can anyone tell me what settings I need? the jre was installed to /usr/java/jre1.3.1_02
here's my environment variables:
BACKSPACE=Delete
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05" [2]="1" [3]="1" [4]="release" [5]="i586-mandrake-linux-gnu")
BASH_VERSION=$'2.05.1(1)-release'
BROWSER=$'kfmclient openProfile webbrowsing'
CATALINA_HOME=/var/tomcat4
CLASS=expert
CLASSPATH=/usr/java/jre1.3.1_02/lib/i386
COLORTERM=
COLUMNS=80
DIRSTACK=()
DISABLE_WINDOWS_KEY=no
DISPLAY=:0.0
EUID=501
GROUPS=()
GTK_RC_FILES=/etc/gtk/gtkrc:/home/robb/.gtkrc
HELP_BROWSER=$'kfmclient openProfile webbrowsing'
HISTFILE=/home/robb/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
HOME=/home/robb
HOSTNAME=rhammack.com
HOSTTYPE=i586
IFS=$' \t\n'
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/java/jdk1.3.1_01
KBCHARSET=iso-8859-1
KDE_MULTIHEAD=false
KEYTABLE=us
LANG=en
LANGUAGE=en_US:en
LC_COLLATE=en_US
LC_CTYPE=en_US
LC_MESSAGES=en_US
LC_MONETARY=en_US
LC_NUMERIC=en_US
LC_TIME=en_US
LESS=-MM
LESSKEY=/etc/.less
LESSOPEN=$'|/usr/bin/lesspipe.sh %s'
LIBSAFE=no
LINES=24
LOGNAME=robb
LS_COLORS=$'no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:m i=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz =01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;3 1:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif= 01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35:'LS_OPTIONS=$'-F --color=auto'
MACHTYPE=i586-mandrake-linux-gnu
MAIL=/var/spool/mail/robb
MAILCHECK=60
META_CLASS=PowerPack
NLSPATH=/usr/share/locale/%l/%N
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/usr/X11R6/bin:/usr/games:/usr/X11R6/bin:/usr/games:.:/usr/X11R6/bin:/usr/games:/usr/X11R6/bin:/usr/games:/home/robb/bin:/home/robb/bin:/usr/java:/usr/java/jre1.3.1_02/lib/i386
PIPESTATUS=([0]="0")
PPID=20204
PROMPT_COMMAND=$'echo -ne "\\033]0;${USER}@${HOSTNAME}: ${PWD}\\007"'
PS1=$'[\\@] [\\w : $(cf) files]\\n\\r[\\u@\\h]'
PS2=$'> '
PS4=$'+ '
PWD=/home/robb
QT_XFT=0
SECURE_LEVEL=3
SECURITY=4
SESSION_MANAGER=local/rhammack.com:/tmp/.ICE-unix/13887
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
SHLVL=4
TERM=xterm
TMP=/home/robb/tmp
TMPDIR=/home/robb/tmp
TOMCAT_HOME=/var/tomcat4
UID=501
USER=robb
XAUTHORITY=/home/robb/.Xauthority
XMODIFIERS=@im=none
_=
i=/etc/profile.d/xhost.sh
langfile=/home/robb/.i18n
sourced=1
mc ()
{
mkdir -p $HOME/.mc/tmp 2>/dev/null;
chmod 700 $HOME/.mc/tmp;
MC=$HOME/.mc/tmp/mc-$$;
/usr/bin/mc -P "$@" >"$MC";
cd "`cat $MC`";
rm -i -f "$MC";
unset MC
}
screen ()
{
if [ -z "$SCREENDIR" ]; then
export SCREENDIR=$HOME/tmp;
fi;
/usr/bin/screen $@
}

Copy of error:
[10:18pm] [~ : 75 files]
[robb@rhammack]java -version
Error: can't find libjava.so.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java SDK & JRE Install Avi Linux - Software 1 10-02-2005 08:32 PM
firefox 1.0.4 / jre 1.4.1_02 undef00 Linux - Software 7 08-11-2005 05:18 PM
Howto install/use java(jre)? eras Linux - Newbie 5 04-12-2005 05:05 PM
Java (jre/sdk) debian install Zaskar Debian 6 04-01-2004 06:32 PM
Trouble Invoking JVM From C: Cannot Find libjava.so. eric.r.turner Programming 0 10-20-2003 10:36 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration