I already added the path of my installed java, but the problem is I cannot compile my codes.

here is my path. .

%SystemRoot%\system32;%SystemRoot%;C:\Program Files\Java\jdk1.6.0_10

and then this is what happens when I compile. .


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Carlo>e:

E:\>cd nerd's java files

E:\Nerd's java files>cd activity

E:\Nerd's java files\Activity>dir
Volume in drive E is nerd
Volume Serial Number is 107F-E0EB

Directory of E:\Nerd's java files\Activity

12/10/2008 07:26 PM <DIR> .
12/10/2008 07:26 PM <DIR> ..
12/10/2008 07:26 PM 2,287 Decision_Constructs.java
12/10/2008 01:45 PM 1,621 MonthDays.java
12/09/2008 08:39 AM 24,576 Prelim_exercises.doc
3 File(s) 28,484 bytes
2 Dir(s) 223,447,609,344 bytes free

E:\Nerd's java files\Activity>javac Decision_Constructs.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

the path should inclulde the bin directory too. so just include C:\Program Files\Java\jdk1.6.0_10\bin instead of what you have now.

This question has already been answered. Start a new discussion instead.