setting environment variable

To run the java, and javac exes in any directory pathI have set the environment varible aspath='c:\jdk1.2.1\bin\'But it is not working why?
[176 byte] By [s_amirtraja] at [2007-10-2 10:43:41]
# 1
What does "not working" mean?How did you set the variable?What's in C:\jdk1.2.1\bin?
jverda at 2007-7-13 2:53:39 > top of Java-index,Java Essentials,Java Programming...
# 2
ie i am not able to run java and javac exes any where in any driveIt just gives an error message that the 'java is not a recognized internal command....'the bin directory contains exe of java and javac
s_amirtraja at 2007-7-13 2:53:39 > top of Java-index,Java Essentials,Java Programming...
# 3
you could try searching google or this forum and get to a useful site like this one ;) http://www.cafeaulait.org/books/jdr/chapters/02.html
Mattsabigmana at 2007-7-13 2:53:39 > top of Java-index,Java Essentials,Java Programming...
# 4
Thank u Mattsabigman.I found that website. I reintalled it and it is working...
s_amirtraja at 2007-7-13 2:53:39 > top of Java-index,Java Essentials,Java Programming...
# 5
Hi Amirtraj,Try this out in the command prompt:For example:E:\>set classpath=%CLASSPATH%;.;c:\jdk1.2.1\bin;andE:\>set path=%PATH%;.;c:\jdk1.2.1\binnow type java or javac, it will work.
nvraman_83a at 2007-7-13 2:53:39 > top of Java-index,Java Essentials,Java Programming...