Guia java
7DEOH RI &RQWHQWV
&RS\ULJKW 'HLWHO 6HULHV 3DJH 3UHIDFH %HIRUH Control Panel > Sytem to display the System Properties dialog (Fig. 6). [Note: Your System Properties dialog may appear different than the one shown in Fig. 6, depending on your version of
Fig. 6 |
System Properties dialog.
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ %\ + 0 'HLWHO 'HLWHO $VVRFLDWHV ,QF 3 - 3UHSDUHG IRU 3HWHU 'LVQH\ 6DIDUL ,' SHWHUZDOWG#ZRNHKFRP 'HLWHO 'HLWHO$VVRFLDWHV ,QF ,6%1 3XEOLVKHU 3UHQWLFH +DOO /LFHQVHG E\ 3HWHU 'LVQH\ 3ULQW 3XEOLFDWLRQ 'DWH 8VHU QXPEHU 6DIDUL %RRNV 2QOLQH //& 7KLV 3') LV PDGH DYDLODEOH IRU SHUVRQDO XVH RQO\ GXULQJ WKH UHOHYDQW VXEVFULSWLRQ WHUP VXEMHFW WR WKH 6DIDUL 7HUPV RI 6HUYLFH $Q\ RWKHU XVH UHTXLUHV SULRU ZULWWHQ FRQVHQW IURP WKH FRS\ULJKW RZQHU 8QDXWKRUL]HG XVHUHSURGXFWLRQ DQGRU GLVWULEXWLRQ DUH VWULFWO\ SURKLELWHG DQG YLRODWH DSSOLFDEOH ODZV $OO ULJKWV UHVHUYHG
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ
3DJH
5HWXUQ WR 7DEOH RI &RQWHQWV
Setting the PATH Environment Variable
xliii
Microsoft Windows. This particular dialog is from a computer running Microsoft Windows XP. Your dialog might includedifferent information.] 2. Opening the Environment Variables dialog. Select the Advanced tab at the top of the System Properties dialog (Fig. 7). Click the Environment Variables button to display the Environment Variables dialog (Fig. 8). 3. Editing the PATH variable. Scroll down inside the System variables box to select the PATH variable. Click the Edit button. This will cause the Edit System Variabledialog to appear (Fig. 9).
Select the
Advanced tab
Click the Environment Variables button
Fig. 7 |
Advanced tab of System Properties dialog.
Fig. 8 |
Environment Variables dialog.
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ %\ + 0 'HLWHO 'HLWHO $VVRFLDWHV ,QF 3 - 3UHSDUHG IRU 3HWHU 'LVQH\ 6DIDUL ,' SHWHUZDOWG#ZRNHKFRP 'HLWHO 'HLWHO $VVRFLDWHV ,QF ,6%1 3XEOLVKHU 3UHQWLFH +DOO /LFHQVHG E\ 3HWHU 'LVQH\ 3ULQW 3XEOLFDWLRQ 'DWH 8VHU QXPEHU 6DIDUL %RRNV 2QOLQH //& 7KLV 3') LV PDGH DYDLODEOH IRU SHUVRQDO XVH RQO\ GXULQJ WKH UHOHYDQW VXEVFULSWLRQ WHUP VXEMHFW WR WKH 6DIDUL 7HUPV RI 6HUYLFH $Q\ RWKHU XVH UHTXLUHV SULRU ZULWWHQ FRQVHQW IURP WKH FRS\ULJKW RZQHU 8QDXWKRUL]HG XVH UHSURGXFWLRQ DQGRU GLVWULEXWLRQ DUHVWULFWO\ SURKLELWHG DQG YLRODWH DSSOLFDEOH ODZV $OO ULJKWV UHVHUYHG
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ
-DYD +RZ WR 3URJUDP 6HYHQWK (GLWLRQ
3DJH
5HWXUQ WR 7DEOH RI &RQWHQWV
xliv
Before You Begin 4. Changing the PATH. Place the cursor inside the Variable Value field. Use the leftarrow key to move the cursor to the beginning of the list. At the beginning of the list, type thename of the directory in which you placed the JDK followed by \bin; (Fig. 10). Add C:\Program Files\Java\jdk1.6.0\bin; to the PATH variable, if you chose the default installation directory. Do not place any spaces before or after what you type. Spaces are not allowed before or after each value in an environment variable. Click the OK button to apply your changes to the PATH variable.
Fig. 9 |Edit System Variable dialog.
Fig. 10 | Editing the PATH variable.
If you do not set the PATH variable correctly, when you use the JDK’s tools, you will receive a message like:
'java' is not recognized as an internal or external command, operable program or batch file.
In this case, go back to the beginning of this section and recheck your steps. If you’ve downloaded a newer version of the...
Regístrate para leer el documento completo.