java 2 SDK

2008-03-03 4:58 pm
我剛剛install咗 jdk-6u4-windows-i586-p,
但係我係dos 打javac時,彈左句"javac不是內部或外部命令"之類既野,
我記得要係返pc個環境參數set返d野,but我已經忘記了set咩,因為對上一次用寫java 已經係四年前既事.

希望各位幫忙,thx!

回答 (1)

2008-03-03 5:29 pm
✔ 最佳答案
You're on the right track.

If you are familiar with DOS, you can set with the following command:
PATH=c:\"program files"\java\jdk1.6.xxx\bin;%PATH%
However, you may be better off setting it using Window's environmental variables by:
Start/control panel/System/Advanced/Environmental Variables/
In the System Vairables Window, scroll down to PATH, highlight it and click the button "edit", and add the Java path, usually in the form of:
c:\program files\java\jdk1.6.0_0N\bin
Note that in Windows, the double quotes surrounding "Program Files" are not necessary.

An even better solution is to use a text editor that can compile and execute Java with the control-1/control-2 keys after your editing. One example is the editor called Textpad. They have it in many languages but not Chinese. There are instructions to install the Java options so there is a one-key compile and another for running. Textpad is free for trial, and a minimum for purchace at the following site:
http://www.textpad.com/

Another option is JCreator, which is dedicated to Java. It does a good job of editing, compile and run. The IDE is excellent. The paid version has an option whereby the method parameters are displayed during typing. It is completely free.
http://www.jcreator.com/

If you need more clarifications, PM any time.


收錄日期: 2021-04-13 15:14:38
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080303000051KK00414

檢視 Wayback Machine 備份