xbl12
Programmer
- Dec 12, 2006
- 66
Hello;
I just downloaded a jdk-6-windows-i586.exe, and i set a PATH for it is C:\Program Files\Java\jdk1.6.0_<version>\bin, But when i run my application, it tell me that the 'javac' is not recognized. Could anyone tell me why, thanks.
I just download the jdk-1_5_0_11-windows-i586-p.exe last night, and it was not problem for compile and run my application.
Because i want to be familiar with JDK, so i downloaded another JDK6 and delete the old one, and play around with them.
The following are the job i have done:
compile my application
E:\Java>echo %PATH%
C:\j2sdk1.4.2_10\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Commo
n Files\Adobe\AGL;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
E:\Java>javac HelloWorldSwing.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
/////////////////////////////////////////////////////////
check my jdk directory
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java
03/02/2007 04:54 PM <DIR> .
03/02/2007 04:54 PM <DIR> ..
01/02/2007 10:54 PM <DIR> j2re1.4.2_13
03/02/2007 04:54 PM <DIR> jdk1.6.0
01/02/2007 10:02 PM <DIR> jre1.5.0_06
03/02/2007 04:55 PM <DIR> jre1.6.0
0 File(s) 0 bytes
6 Dir(s) 5,771,837,440 bytes free
C:\Program Files\Java>cd jdk1.6.0
C:\Program Files\Java\jdk1.6.0>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java\jdk1.6.0
03/02/2007 04:54 PM <DIR> .
03/02/2007 04:54 PM <DIR> ..
03/02/2007 04:53 PM <DIR> bin
29/11/2006 03:47 AM 2,539 COPYRIGHT
03/02/2007 04:53 PM <DIR> db
03/02/2007 04:54 PM <DIR> demo
03/02/2007 04:53 PM <DIR> include
03/02/2007 04:53 PM <DIR> jre
03/02/2007 04:53 PM <DIR> lib
03/02/2007 04:53 PM 13,471 LICENSE
03/02/2007 04:53 PM 19,780 LICENSE.rtf
03/02/2007 04:53 PM 26,022 README.html
03/02/2007 04:53 PM 20,640 README_ja.html
03/02/2007 04:53 PM 15,523 README_zh_CN.html
03/02/2007 04:54 PM <DIR> sample
29/11/2006 03:48 AM 19,248,578 src.zip
03/02/2007 04:53 PM 177,928 THIRDPARTYLICENSEREADME.txt
8 File(s) 19,524,481 bytes
9 Dir(s) 5,771,837,440 bytes free
C:\Program Files\Java\jdk1.6.0>cd bin
C:\Program Files\Java\jdk1.6.0\bin>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java\jdk1.6.0\bin
03/02/2007 04:53 PM <DIR> .
03/02/2007 04:53 PM <DIR> ..
03/02/2007 04:53 PM 25,600 appletviewer.exe
03/02/2007 04:53 PM 25,600 apt.exe
03/02/2007 04:53 PM 29,184 beanreg.dll
03/02/2007 04:53 PM 25,600 extcheck.exe
03/02/2007 04:53 PM 45,056 HtmlConverter.exe
03/02/2007 04:53 PM 25,600 idlj.exe
03/02/2007 04:53 PM 25,600 jar.exe
03/02/2007 04:53 PM 25,600 jarsigner.exe
03/02/2007 04:53 PM 25,088 java-rmi.exe
03/02/2007 04:53 PM 135,168 java.exe
03/02/2007 04:53 PM 25,600 javac.exe
03/02/2007 04:53 PM 25,600 javadoc.exe
03/02/2007 04:53 PM 25,600 javah.exe
03/02/2007 04:53 PM 25,600 javap.exe
03/02/2007 04:53 PM 135,168 javaw.exe
03/02/2007 04:53 PM 139,264 javaws.exe
03/02/2007 04:53 PM 26,112 jconsole.exe
03/02/2007 04:53 PM 25,600 jdb.exe
03/02/2007 04:53 PM 25,600 jhat.exe
03/02/2007 04:53 PM 25,600 jinfo.exe
03/02/2007 04:53 PM 77,824 jli.dll
03/02/2007 04:53 PM 25,600 jmap.exe
03/02/2007 04:53 PM 25,600 jps.exe
03/02/2007 04:53 PM 25,600 jrunscript.exe
03/02/2007 04:53 PM 25,600 jstack.exe
03/02/2007 04:53 PM 25,600 jstat.exe
03/02/2007 04:53 PM 25,600 jstatd.exe
03/02/2007 04:53 PM 25,600 keytool.exe
03/02/2007 04:53 PM 25,600 kinit.exe
03/02/2007 04:53 PM 25,600 klist.exe
03/02/2007 04:53 PM 25,600 ktab.exe
29/11/2006 03:41 AM 348,160 msvcr71.dll
03/02/2007 04:53 PM 25,600 native2ascii.exe
03/02/2007 04:53 PM 25,600 orbd.exe
03/02/2007 04:53 PM 25,600 pack200.exe
03/02/2007 04:53 PM 73,728 packager.exe
03/02/2007 04:53 PM 25,600 policytool.exe
03/02/2007 04:53 PM 25,600 rmic.exe
03/02/2007 04:53 PM 25,600 rmid.exe
03/02/2007 04:53 PM 25,600 rmiregistry.exe
03/02/2007 04:53 PM 25,600 schemagen.exe
03/02/2007 04:53 PM 25,600 serialver.exe
03/02/2007 04:53 PM 25,600 servertool.exe
03/02/2007 04:53 PM 26,112 tnameserv.exe
03/02/2007 04:53 PM 122,880 unpack200.exe
03/02/2007 04:53 PM 25,600 wsgen.exe
03/02/2007 04:53 PM 25,600 wsimport.exe
03/02/2007 04:53 PM 25,600 xjc.exe
48 File(s) 2,105,344 bytes
2 Dir(s) 5,771,837,440 bytes free
I just downloaded a jdk-6-windows-i586.exe, and i set a PATH for it is C:\Program Files\Java\jdk1.6.0_<version>\bin, But when i run my application, it tell me that the 'javac' is not recognized. Could anyone tell me why, thanks.
I just download the jdk-1_5_0_11-windows-i586-p.exe last night, and it was not problem for compile and run my application.
Because i want to be familiar with JDK, so i downloaded another JDK6 and delete the old one, and play around with them.
The following are the job i have done:
compile my application
E:\Java>echo %PATH%
C:\j2sdk1.4.2_10\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Commo
n Files\Adobe\AGL;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
E:\Java>javac HelloWorldSwing.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
/////////////////////////////////////////////////////////
check my jdk directory
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java
03/02/2007 04:54 PM <DIR> .
03/02/2007 04:54 PM <DIR> ..
01/02/2007 10:54 PM <DIR> j2re1.4.2_13
03/02/2007 04:54 PM <DIR> jdk1.6.0
01/02/2007 10:02 PM <DIR> jre1.5.0_06
03/02/2007 04:55 PM <DIR> jre1.6.0
0 File(s) 0 bytes
6 Dir(s) 5,771,837,440 bytes free
C:\Program Files\Java>cd jdk1.6.0
C:\Program Files\Java\jdk1.6.0>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java\jdk1.6.0
03/02/2007 04:54 PM <DIR> .
03/02/2007 04:54 PM <DIR> ..
03/02/2007 04:53 PM <DIR> bin
29/11/2006 03:47 AM 2,539 COPYRIGHT
03/02/2007 04:53 PM <DIR> db
03/02/2007 04:54 PM <DIR> demo
03/02/2007 04:53 PM <DIR> include
03/02/2007 04:53 PM <DIR> jre
03/02/2007 04:53 PM <DIR> lib
03/02/2007 04:53 PM 13,471 LICENSE
03/02/2007 04:53 PM 19,780 LICENSE.rtf
03/02/2007 04:53 PM 26,022 README.html
03/02/2007 04:53 PM 20,640 README_ja.html
03/02/2007 04:53 PM 15,523 README_zh_CN.html
03/02/2007 04:54 PM <DIR> sample
29/11/2006 03:48 AM 19,248,578 src.zip
03/02/2007 04:53 PM 177,928 THIRDPARTYLICENSEREADME.txt
8 File(s) 19,524,481 bytes
9 Dir(s) 5,771,837,440 bytes free
C:\Program Files\Java\jdk1.6.0>cd bin
C:\Program Files\Java\jdk1.6.0\bin>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java\jdk1.6.0\bin
03/02/2007 04:53 PM <DIR> .
03/02/2007 04:53 PM <DIR> ..
03/02/2007 04:53 PM 25,600 appletviewer.exe
03/02/2007 04:53 PM 25,600 apt.exe
03/02/2007 04:53 PM 29,184 beanreg.dll
03/02/2007 04:53 PM 25,600 extcheck.exe
03/02/2007 04:53 PM 45,056 HtmlConverter.exe
03/02/2007 04:53 PM 25,600 idlj.exe
03/02/2007 04:53 PM 25,600 jar.exe
03/02/2007 04:53 PM 25,600 jarsigner.exe
03/02/2007 04:53 PM 25,088 java-rmi.exe
03/02/2007 04:53 PM 135,168 java.exe
03/02/2007 04:53 PM 25,600 javac.exe
03/02/2007 04:53 PM 25,600 javadoc.exe
03/02/2007 04:53 PM 25,600 javah.exe
03/02/2007 04:53 PM 25,600 javap.exe
03/02/2007 04:53 PM 135,168 javaw.exe
03/02/2007 04:53 PM 139,264 javaws.exe
03/02/2007 04:53 PM 26,112 jconsole.exe
03/02/2007 04:53 PM 25,600 jdb.exe
03/02/2007 04:53 PM 25,600 jhat.exe
03/02/2007 04:53 PM 25,600 jinfo.exe
03/02/2007 04:53 PM 77,824 jli.dll
03/02/2007 04:53 PM 25,600 jmap.exe
03/02/2007 04:53 PM 25,600 jps.exe
03/02/2007 04:53 PM 25,600 jrunscript.exe
03/02/2007 04:53 PM 25,600 jstack.exe
03/02/2007 04:53 PM 25,600 jstat.exe
03/02/2007 04:53 PM 25,600 jstatd.exe
03/02/2007 04:53 PM 25,600 keytool.exe
03/02/2007 04:53 PM 25,600 kinit.exe
03/02/2007 04:53 PM 25,600 klist.exe
03/02/2007 04:53 PM 25,600 ktab.exe
29/11/2006 03:41 AM 348,160 msvcr71.dll
03/02/2007 04:53 PM 25,600 native2ascii.exe
03/02/2007 04:53 PM 25,600 orbd.exe
03/02/2007 04:53 PM 25,600 pack200.exe
03/02/2007 04:53 PM 73,728 packager.exe
03/02/2007 04:53 PM 25,600 policytool.exe
03/02/2007 04:53 PM 25,600 rmic.exe
03/02/2007 04:53 PM 25,600 rmid.exe
03/02/2007 04:53 PM 25,600 rmiregistry.exe
03/02/2007 04:53 PM 25,600 schemagen.exe
03/02/2007 04:53 PM 25,600 serialver.exe
03/02/2007 04:53 PM 25,600 servertool.exe
03/02/2007 04:53 PM 26,112 tnameserv.exe
03/02/2007 04:53 PM 122,880 unpack200.exe
03/02/2007 04:53 PM 25,600 wsgen.exe
03/02/2007 04:53 PM 25,600 wsimport.exe
03/02/2007 04:53 PM 25,600 xjc.exe
48 File(s) 2,105,344 bytes
2 Dir(s) 5,771,837,440 bytes free