On 11-Jul-2000 AMIT VERMA wrote:
> then i referred a book java on linux
> and also searched thru ur website for help. i came to
> know i have to set env variables(JAVA_HOME, PATH and
> CLASSPATH)
That's positive, but you'd better also consult a book
on UNIX/Linux...
>
> i used the following commands from my user account
> prompt:
>
> export JAVA_HOME=/java/jdk1.2.2
That's wrong: the path you give is from the root
directory (don't forget that there are no drive
letters on UNIX, fortunately). It should be:
$ export JAVA_HOME=~/java/jdk1.2.2
> export PATH$JAVA_HOME/bin:$PATH
> (i also tried: export PATH=/java/jdk1.2.2/bin:$PATH)
And the same problem here:
$ export PATH=$PATH:~/java/jdk1.2.2/bin
> export CLASSPATH=JAVA_HOME/.
And here you've forgotten the '$' before the shell
variable, and forgotten the file containing the Java
library (add :. if you want to access classes stored
in the current directory).
$ export CLASSPATH=$JAVA_HOME/classes.zip:.
>
> but still when i want to compile a file with javac i
> get the same error..please respond .. i am waiting for
> a reply..
You've got a problem with the UNIX environment. Get a good
book on UNIX (like "The UNIX programming environment" by
Kernighan and Pike, an oldie but goodie!)
Stefaan
--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]