J2SDK 安装配置指南

1.1 J2SDK 安装配置指南
Submitted by jackey on Sun, 12/14/2003 - 04:16.


[b]第一步、到 [url=http://java.sun.com]http://java.sun.com[/url] 上下载下面两个软件包:[/b]
[list=1]
[*]j2sdk-1_4_2-nb-3_5_1-bin-linux.bin (这个集成了netbeans)
[*]j2sdk-1_4_2-doc.zip
[/list]

[b]第二步、安装上面两个软件包:[/b]

j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

[[jackey@MagicLinux java]]$ su
Password:
[[root@MagicLinux java]]# ./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin
InstallShield Wizard
正在初始化 InstallShield Wizard...
正在准备 Java(tm) 虚拟机...
...................................
...................................
...................................
...................................
...................................
...................................
...................................
...................................
...................................
...................................
...................................
不要管乱码,一路Next下去就行了。
j2sdk-1_4_2-doc.zip

[[jackey@MagicLinux java]]$ unzip j2sdk-1_4_2-doc.zip -d /opt/j2sdk_nb
[b]第三步、设置环境变量:[/b]
把下面代码加入到/etc/profile最后

JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2
CLASSPATH=/opt/j2sdk_nb/j2sdk1.4.2/jre/lib/rt.jar:.
PATH=$PATH:/opt/j2sdk_nb/j2sdk1.4.2/bin
export JAVA_HOME PATH CLASSPATH
[b]第四步、安装后测试:[/b]

[[root@MagicLinux java]]# source /etc/profile
[[root@MagicLinux java]]# java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
[b]普通用户必须重新登陆环境变量才能生效。[/b]


[b]第五步、配置MozillaFirebird:[/b]

[[root@MagicLinux jackey]]# cd /usr/lib/MozillaFirebird/plugins
[[root@MagicLinux plugins]]# ln -sf /opt/j2sdk_nb/j2sdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
[b]第六步、Java中文控制台:[/b]
下载[url=http://www.magiclinux.org/drupal/?q=filestore/download/485]font.properties.zh_CN[/url]
并把它存到/opt/j2sdk_nb/j2sdk1.4.2/jre/lib下。

[[root@MagicLinux lib]]# cp font.properties.zh_CN /opt/j2sdk_nb/j2sdk1.4.2/jre/lib

你可能感兴趣的:(java,linux,软件测试,sun,Netbeans)