Thread: Installing Java
View Single Post
  #25 (permalink)  
Old March 4th, 2005
Flingus2001 Flingus2001 is offline
Apprentice
 
Join Date: March 1st, 2005
Posts: 5
Flingus2001 is flying high
Default

Ok, it's working now!!!!!!!!!!!!!!!!!!! WOO HOO! Looks like it was already installed. I do have one weird question though.. I made those changes to etc/profile so, I'm guessing that no matter who I log on as in my system should have access to Java. Why then, is the following happening when I try to run Limewire as root? (I did get it to work when I logged in as another user though)

Thanks so much for your help. I really think I need to read more on how Linux works at this point. I don't understand the formatting in profile and how it works exactly. Seems odd to me that I would have to add Java in my path but, I didn't have to add Limewire in my path..

Anyway, the following happends as root...

This is getting really strange.. It's saying Java isn't in my path again and it's not showing up when I type, "echo $PATH". It worked last time but, now it's not taking the change. It's still in my profile too...

Here's my profile..


# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1
PATH=/usr/java/jre1.5.0_01/bin:$PATH
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin:/usr/java/jre1.5.0_01/bin"


fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000

Here's the results of my echo $path ...

echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin


And here's what happends when I try to run LimeWire...

./runLime.sh

************************************************** ****************
Error: Unable to find java.
Please make sure that java is in your PATH.
Visit http://www.java.com/en/download/manual.jsp for more information.
(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)

I was going to reinstall Mandrake just to try to start off with a clean profile but, I can't even figure out how to do that. I've reinstalled twice and it keeps the files instead of overwriting them. :S

What in the world am I doing wrong here? I had no problem at all installing java and LimeWire when I used an earlier version of Mandrake... I am really stumped here....

Flingus

Last edited by Flingus2001; March 4th, 2005 at 07:12 AM.
Reply With Quote