<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.
    主站蜘蛛池模板: 日本免费污片中国特一级| 男女猛烈无遮掩视频免费软件| 99久久国产精品免费一区二区| 成人亚洲综合天堂| 美女又黄又免费的视频| 国产日产成人免费视频在线观看| 77777亚洲午夜久久多喷| 久久WWW色情成人免费观看| 亚洲黄页网在线观看| 在线a人片天堂免费观看高清| 亚洲精品午夜国产va久久| 免费中文熟妇在线影片| 亚洲人成欧美中文字幕| 啊灬啊灬别停啊灬用力啊免费看| 国产精品亚洲专区一区| 久久久久亚洲AV成人网人人网站| 成在线人免费无码高潮喷水| 亚洲av色福利天堂| 一区二区无码免费视频网站 | 国产成人亚洲综合无码精品| 免费在线观看一级片| 亚洲特级aaaaaa毛片| 日本无卡码免费一区二区三区| 国产亚洲精品精品精品| 亚洲熟妇无码AV在线播放| 一级毛片免费观看| 亚洲中文字幕乱码熟女在线| 免费一级毛片在播放视频| 四虎影视无码永久免费| 亚洲一区二区三区91| 亚洲性日韩精品一区二区三区| 免费国产成人午夜在线观看| 麻豆狠色伊人亚洲综合网站| 五月婷婷亚洲综合| 免费A级毛片在线播放| 亚洲乱妇老熟女爽到高潮的片 | 久久久久久精品成人免费图片 | 老司机亚洲精品影院| 国产精品久免费的黄网站| 久久中文字幕免费视频| 爱情岛论坛亚洲品质自拍视频网站|