作者 主題: java 相關整理:從download 到javac  (閱讀 5384 次)

0 會員 與 1 訪客 正在閱讀本文。

小徒兒

  • 鑽研的研究生
  • *****
  • 文章數: 622
    • 檢視個人資料
java 相關整理:從download 到javac
« 於: 2006-09-25 23:07 »
***java api
http://java.sun.com/j2se/1.5.0/docs/api/
http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/index.html


*** javax api
http://java.sun.com/j2ee/1.4/docs/api/index.html



***下載路徑

https://sdlc6e.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=5A614ACDDA9F66B88A27A9923BA4F1A5;jsessionid=5A614ACDDA9F66B88A27A9923BA4F1A5
:

http://www.sun.com/download/index.jsp?cat=Application%20Development&tab=3&subcat=SDKs%20(Software%20Development%20Kits)

Windows Platform - Java(TM) 2 SDK, Standard Edition 1.4.2_12
 Windows Offline Installation  j2sdk-1_4_2_12-windows-i586-p.exe 50.07 MB
 Windows Installation, Multi-language  j2sdk-1_4_2_12-windows-i586-p-iftw.exe 356.00 KB


***hello world
   1. typed
      class HelloWorldApp{
   public static void main (String args[]) {
      System.out.println ("Hello World");
   }
     }



    2. save it as HelloWorldApp.java


    3.0 go to the command line mode 開始->執行->cmd
    3.1 go to the directory your helloworld java code locate, then compile it
    javac HelloWorldApp.java

    4. run it
    java HelloWorldApp arg1 arg2