<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    kooyee ‘s blog

    開源軟件, 眾人努力的結晶, 全人類的共同財富
    posts - 103, comments - 55, trackbacks - 0, articles - 66
       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
    Installing the Java Software Developers Kit Version (SDK) 1.4:

    Download: http://java.sun.com/j2se/1.4/download.html
    (Download j2sdk-1_4_0_03-linux-i586-rpm.bin)
    x86_64 AMD Athelon/Opteron/Turion-64/EM64T info for: jdk-1_5_0_version-linux-amd64-rpm.bin

    Install:

    chmod +x j2sdk-1_4_0_03-linux-i586-rpm.bin
    ./j2sdk-1_4_0_03-linux-i586-rpm.bin
    ...
    This is where you agree to their license. Press the space bar to scroll down in "More".
    Do you agree the the above license terms? [yes or no]
    yes
    ...
    rpm -ivh j2sdk-1_4_0_03-fcs-linux-i586.rpm
    
    The SDK installed in /usr/java/j2sdk1.4.0_03/

    Set environment variables. (Add to $HOME/.bash_profile)

    PATH=/usr/java/j2sdk1.4.0_03/bin:$PATH:$HOME/bin:./
    export PATH
    export JAVA_HOME=/usr/java/j2sdk1.4.0_03
    export CLASSPATH=/usr/java/j2sdk1.4.0_03/lib/tools.jar:/usr/java/j2sdk1.4.0_03/jre/lib/rt.jar:./
    
    Must include "./" in CLASSPATH. This is necessary in 1.4.0_03.

    Test program: Test.java

    public class Test
                {
                public static void main(String[] args)
                {
                System.out.println("Hello world");
                }
                }
                
    Compile: javac Test.java

    (or /usr/java/j2sdk1.4.0/bin/javac Test.java)
    Note that the file name and the class name are the same. This became a requirement in SDK 1.4. The result of the compile is the file: Test.class

    Run:

    [prompt]$ java Test
    Hello world
    
    (or /usr/java/j2sdk1.4.0/bin/java Test)

    [Potential Pitfall]: Red Hat Enterprise Linux and other Linus systems which install GNU Java may find that this conflicts with the Sun Java installation. You may have to remove this (for example RHEL4):
    rpm -e java-1.4.2-gcj-compat-1.4.2.0-27jpp java-1.4.2-gcj-compat-devel-1.4.2.0-27jpp.noarch

    The Java SDK includes the following commands:

    • javac: Linux Java compiler (i.e. javac program-name.java)
    • java: Byte code interpreter / Java program launcher. (i.e. java program-name Do not include ".class" extension.)
      Test version: java -version
    • appletviewer: Views Java applet embedded in html file. (appletviewer myfile.html)
    • javaws: Java Web Start application manager. Java application handler for browser.
      (Also see YoLinux Mozilla configuration tutorial)
    • javadoc: Generate API documentation from tagged comments.
    • javah: Creates C header and stub files for Java class.
    • javap: Java file disassembler
    • jdb: Java debugger
    • jar: JAR archive file generation tool.
    主站蜘蛛池模板: 免费人成动漫在线播放r18 | 免费看又黄又爽又猛的视频软件 | 国产激情免费视频在线观看| 伊人久久大香线蕉亚洲| 窝窝影视午夜看片免费| 免费成人午夜视频| 一个人看www免费高清字幕| 亚洲无码精品浪潮| 丝瓜app免费下载网址进入ios| 伊人亚洲综合青草青草久热| 一级毛片不卡免费看老司机| 亚洲色精品vr一区二区三区 | 67194在线午夜亚洲| 男人的好看免费观看在线视频| 亚洲一区二区三区免费视频| 成人一a毛片免费视频| 色噜噜的亚洲男人的天堂| 免费无遮挡无码永久在线观看视频| 亚洲成在人线aⅴ免费毛片| 日韩免费观看一级毛片看看| 国产成人综合亚洲| 国产AV无码专区亚洲AV漫画| 亚洲免费视频网站| 亚洲综合色7777情网站777| 宅男666在线永久免费观看| 成人a毛片免费视频观看| 亚洲va在线va天堂va四虎| 国产成人免费在线| 亚洲AV日韩AV永久无码色欲| 亚洲AV中文无码乱人伦| 日韩视频免费在线观看| 亚洲色大成网站www永久网站| 少妇亚洲免费精品| 久久久久国色av免费看| 亚洲中文字幕无码久久2020 | 亚洲av高清在线观看一区二区| 中国在线观看免费的www| 亚洲导航深夜福利| 亚洲精品国产综合久久一线| 久久国产色AV免费观看| 亚洲爆乳AAA无码专区|