Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\shr3dd3r>cd my documents\javastuff
C:\Documents and Settings\shr3dd3r\My Documents\javastuff>javac practice.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
Karthikeyan<br />SCJP 1.4, SCWCD.
Originally posted by Paul Knox:
Then depending on your operating system you need to set a system environment variable to the following
set PATH=%PATH%;c:\[your java install directory]\bin
If you look in this directory eg c:\[your java install directory]\bin you will see the javac.exe compiler, you must set the path environment variable to this directory.
Originally posted by Carlos Montes:
The Javac.exe compiler is here C:\j2sdk1.4.2\bin
My javastuff folder is here:
C:\Documents and Settings\shr3dd3r\My Documents\javastuff
the first file that ive coded has this path:
C:\Documents and Settings\shr3dd3r\My Documents\javastuff\practice.java
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Carlos Montes:
I don't get this? My install Directory?
Ive downloaded all that stuff you told me to and it is as follows:
C:\j2sdk1.4.2
The Javac.exe compiler is here C:\j2sdk1.4.2\bin
My javastuff folder is here:
C:\Documents and Settings\shr3dd3r\My Documents\javastuff
the first file that ive coded has this path:
C:\Documents and Settings\shr3dd3r\My Documents\javastuff\practice.java
Karthikeyan<br />SCJP 1.4, SCWCD.
Originally posted by Karthikeyan Rajendraprasad:
type the following in your prompt
set path=%path%;C:\j2sdk1.4.2\bin;
set classpath=%classpath%;.;
it will be like
C:\Documents and Settings\shr3dd3r\My Documents\javastuff>set path=%path%;C:\j2sdk1.4.2\bin;
C:\Documents and Settings\shr3dd3r\My Documents\javastuff>set classpath=%classpath%;.;
C:\Documents and Settings\shr3dd3r\My Documents\javastuff>javac practice.java
C:\Documents and Settings\shr3dd3r\My Documents\javastuff>java practice
now you can compile and run your code
![]()
[ August 05, 2003: Message edited by: Karthikeyan Rajendraprasad ]
Karthikeyan<br />SCJP 1.4, SCWCD.
Skool. Stay in. Smartness. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|