?? 軟件安裝說明.txt
字號:
===========================================
== Java安裝說明 ==
===========================================
(一)系統要求
Windows 98,Windows 2000 Professional
Pentium 166MHz以上 64兆內存(以上)
硬盤:70MB for java系統 120MB for java文檔
(二)Java系統安裝步驟
1.下載安裝程序j2sdk-1_3_1_01-win.exe
2.運行安裝程序j2sdk-1_3_1_01-win.exe
假定安裝在C盤根目錄下,安裝后目錄結構如下:
c:\jdk1.3.1_01
____________________|___________________
| | | | | | | | | |
| | | | bin lib | | demo |
| | | LICENSE | | | | jre
| | COPYRIGHT | | __|__
| README | include | |
README.html include-old bin lib
3.刪除安裝程序j2sdk-1_3_1_01-win.exe(可選,主要
是為了節省空間)
4.更新PATH環境變量
為了能在任何目錄下都能執行java命令(如javac、java、
等),需要將java的bin目錄放入PATH環境變量中。
對于Windows95/98, 打開“開始”菜單、選擇“運行”、
輸入命令sysedit(調用系統配置編輯程序),在
C:\AUTOEXEC.BAT窗口中找到PATH設置并追加一項(
c:\jdk1.3.1_01\bin)
對于Windows NT and Windows 2000 ,進入“開始”菜單
,選擇“設置/控制面板/系統”。對于Windows NT,選擇“環
境”頁,對于Windows 2000,選擇“高級”頁,在環境變量設置中的
用戶變量欄中增加(如果原來沒有PATH)或修改PATH環境變量,使其
包含c:\jdk1.3.1_01\bin路徑。
5.更新CLASSPATH環境變量
為了使系統能找到用戶定義的類,需要將用戶類所在的目
錄(通常是當前目錄)放入CLASSPATH變量中。
具體更改方法同PATH修改過程,只是要找到 CLASSPATH環
境變量進行修改。
有的系統(如windows2000可以不設置該環境變量)
6.確認系統安裝
在DOS提示符下,輸入set命令可以查看PATH和CLASSPATH的
設置。下面是set命令的輸出樣例(注意最后一項):
D:\ > set
...
PATH=c:\windows\command;c:\jdk1.3.1_01\bin
CLASSPATH=c:\program\borland\vbroker\lib\vbcpp.jar;.
(三)Java文檔安裝步驟
1.下載j2sdk-1_3_1-doc.zip壓縮文件。
2.選擇文檔安裝目錄解壓縮。
文檔目錄結構如下:
docs
____________________|___________________
| | | | | |
api guide images relnotes tooldocs index
| | | | |
index是文檔的主頁
====================================================
== 參考資料 ==
====================================================
1.Thinking in java (下載壓縮文件)
=============================================
== Update the PATH variable ==
=============================================
You can run the Java 2 SDK without setting the PATH
variable, or you can optionally set it as a convenience.
Should I set the PATH variable?
Set the PATH variable if you want to be able to conveniently
run the Java 2 SDK executables (javac.exe, java.exe,
javadoc.exe, etc.) from any directory without having to
type the full path of the command. If you don't set the
PATH variable, you need to specify the full path to the
executable every time you run it, such as:
C:> \jdk1.3.1_<version number>\bin\javac MyClass.java
It's useful to set the PATH permanently so it will persist
after rebooting.
How do I set the PATH permanently?
To set the PATH permanently, add the full path of the
jdk1.3.1_<version number>\bin directory to the PATH variable.
Typically this full path looks something like
C:\jdk1.3.1_<version number>\bin. Set the PATH as follows,
according to whether you are on Windows NT or Windows
95/98/2000/ME.
Windows NT and Windows 2000 - To set the PATH permanently:
Choose Settings, Control Panel, and select System. On Windows
NT, select the Environment tab; on Windows 2000 select the
Advanced tab. Look for "Path" in the User Variables and System
Variables. If you're not sure where to add the path, add it to
the right end of the "Path" in the User Variables. A
typicalvalue for PATH is:
C:\jdk1.3.1_<version number>\bin
Capitalization doesn't matter. Click "Set", "OK" or "Apply".
The PATH can be a series of directories separated by
semi-colons (;). Microsoft Windows looks for programs in the
PATH directories in order, from left to right. You should only
have one bin directory for a Java SDK in the path at a time
(those following the first are ignored), so if one is already
present, you can update it to jdk1.3.1_<version number>.
The new path takes effect in each new Command Prompt window
you open after setting the PATH variable.
Windows 98, Windows 95 - To set the PATH permanently, open the
AUTOEXEC.BAT file and add or change the PATH statement as
follows:
Start the system editor. Choose "Start", "Run" and enter
sysedit, then click OK. The system editor starts up with
several windows showing. Go to the window that is displaying
AUTOEXEC.BAT.
Look for the PATH statement. (If you don't have one, add one.)
If you're not sure where to add the path, add it to the right
end of the PATH. For example, in the following PATH statement,
we have added the bin directory at the right end:
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3.1_01\BIN
Capitalization doesn't matter. The PATH can be a series of
directories separated by semi-colons (;). Microsoft Windows
searches for programs in the PATH directories in order, from
left to right. You should only have one bin directory for a
Java SDK in the path at a time (those following the first are
ignored), so if one is already present, you can update it to
jdk1.3.1_<version number>.
To make the path take effect in the current Command Prompt
window, execute the following:
C:> c:\autoexec.bat
To find out the current value of your PATH, to see if it took
effect, at the command prompt, type:
C:> path
Windows ME - To set the PATH permanently:
From the start menu, choose programs, accessories, system
tools, and system information. This brings up a window titled
"Microsoft Help and Support". From here, choose the tools
menu, then select the system configuration utility. Click the
environment tab, select PATH and press the edit button. Now
add the SDK to your path as described in step b above. After
you've added the location of the SDK to your PATH, save the
changes and reboot your machine when prompted.
=============================================
== Check the CLASSPATH variable ==
=============================================
The CLASSPATH variable is one way to tell applications written
in the Java programming language (including the Java 2 SDK
utilities) where to look for user classes (classes that you
develop). (The -classpath command-line switch is the preferred
way.) If your machine does not have the CLASSPATH variable
set, you can ignore the rest of this step. To check this, run
the set command from the DOS prompt:
C:> set
If CLASSPATH does not appear in the list of settings, it is
not set. If your CLASSPATH variable is set to some value, you
may want to clean up your CLASSPATH settings, so read on.
Should I modify the CLASSPATH variable?
the Java 2 SDK will work fine even if CLASSPATH is set for an
earlier version of the SDK software, as long as it contains
the current directory ".". However, if your CLASSPATH contains
classes.zip (which was only in JDK 1.0.x and JDK 1.1.x), and
you don't plan to continue using those earlier versions, you
can remove that setting from the CLASSPATH now. In any case,
if CLASSPATH is set, it should include the current directory
-- this makes it possible to compile and then run classes in
the current directory.
How do I modify the CLASSPATH?
Use the same procedure you used for the PATH variable in the
previous step and either:
Remove the CLASSPATH environment variable entirely.
With Java 2 SDK, the default value is ".", the current
directory. To include any user classes, use the -classpath
command line switch instead with java, javac, javadoc and
other tools. This is the recommended approach because it
doesn't force one CLASSPATH for all applications.
-OR-
If you have applications that require CLASSPATH be set, keep
those required user classes in CLASSPATH and include the
current directory "." If you're no longer using JDK 1.1.x,
remove classes.zip.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -