[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: j2skd1.4.0beta-i386.rpm to deb; will it work ?



----- Original Message -----
From: Colin Watson <cjwatson@debian.org>
To: <debian-user@lists.debian.org>
Sent: Monday, August 19, 2002 3:49 PM
Subject: Re: j2skd1.4.0beta-i386.rpm to deb; will it work ?


> On Mon, Aug 19, 2002 at 03:07:39PM +0530, Dr. Sachin Kale wrote:
> > But still I am not able to run the javac command from other
> > directories. & even in the bin directory of the compiler I have to
> > type ./javac ( just javac is not enough ) to do anything.
>
> The current directory should never ever be in your path, so I'm not
too
> surprised.
>
> > export
> > CLASSPATH=.:/usr/java/j2sdk1.4.0/lib:/usr/java/j2sdk1.4.0/jre/lib
> > export JAVA_HOME=/usr/java/j2sdk1.4.0
> > export PATH=$JAVA_HOME/bin:$PATH
> >
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/po
> > stgresql/bin:/usr/java/j2sdk1.4.0/bin"
>
> So what is $PATH really? You set it twice here. Try 'echo $PATH'
from a
> shell. Is /usr/java/j2sdk1.4.0/bin/javac definitely the thing you're
> trying to execute?
>

Well I commented out the line -

#export PATH=$JAVA_HOME/bin:$PATH

Still I get echo $PATH as

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/
X11

But in etc/profile I have set it as -

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/po
stgresql/bin:/usr/java/j2sdk1.4.0/bin"

Why this difference ?

Pls tell me in simple terms what is wrong :(

Sachin





Reply to: