Nice answer Mihai. Thanks for sharing the knowledge. I wasn't aware
about this either.
Interestingly,(just fyi) Using jvm to set your classpath is not a bad idea.
Regards,
jd
On 9/19/10, Mihai DINCA wrote:
> Hi Arun
>
> The question was about a "javac file not found" error. There is no need
>
Hi Arun
The question was about a "javac file not found" error. There is no need
to know anything about classpath to avoid this error.
The PATH system variable normally contains a list of directories where
the operating system (OS) looks for files when the explicit path is not
specified. For
Hi Sathvavathi,
Please specify what are you trying to do? Are you trying to compile a .java
file? Please paste the exact error what you are having. Javac is command
and not a file. If this is the case you should get command not recognized
(or something like this).
Hitesh
On Mon, Sep 13, 2010
Hi Sathvavathi,
If you use some integrated programming environment like Eclipse or
NetBeans, it takes care about the location of the *javac* compiler. But
if you try to executed it by hand, be sure it is in the PATH.
For e.g., under Windows, if your JDK is installed in "*C:\Program
Files\my
Hi,
you have to check if the java variable enviroment is set-up correctly. You
can do it through the next command: path in windows or you should find the
file “.bashrc” and then set the path of the variable in linux.
I hope you understood me very well.
Ignacio.
2010/9/13 Sathyavathi Sekar
>
Hi you installed the jdk or not.If not install then indtall jdk first
then set classpath setting
by following command in file i.e. bach file (filename.bat)
1.open batch file in notepad and run command
*
set java_home=C:/jdk1.6 (where jdk is installed)
set classpath=.;%java_home%\l