1 / 16

開發 Java 程式語言的工具

開發 Java 程式語言的工具. JDK. 程式語言的演進. 機器語言 (Machine Language) 0,1 低階語言 (Low-level Language) Ex: 組合語言 (Assembly Language) 高階語言 (High-level Language) Ex: C/C++ 、 Java. 安裝流程. 安裝 JDK 安裝 JCreator LE 5.0. JDK. JDK ( Java Development Kit )是由 Sun Microsystems 公司所發佈的 Java 語言開發工具。

shino
Download Presentation

開發 Java 程式語言的工具

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 開發Java程式語言的工具 JDK

  2. 程式語言的演進 • 機器語言(Machine Language) • 0,1 • 低階語言(Low-level Language) • Ex: 組合語言(Assembly Language) • 高階語言(High-level Language) • Ex: C/C++、Java

  3. 安裝流程 • 安裝JDK • 安裝JCreator LE 5.0

  4. JDK • JDK(Java Development Kit)是由Sun Microsystems公司所發佈的Java語言開發工具。 • 官方網站 http://www.oracle.com/technetwork/java/index.html • Java分為: • Java SE:標準版 • Java EE:企業版 • Java ME:精簡版 • 下載最新的JDK(Java Standard Edition)工具

  5. 安裝JDK • 依作業系統 • 32位元執行jdk-8u20-windows-i586.exe進行安裝 • 64位元執行jdk-8u20-windows-x64.exe進行安裝 • 設定檔案路徑 • 我的電腦/內容/進階/環境變數 • 點選path編輯 變數值加入C:\Program Files\Java\jdk1.8.0_20\bin • 測試是否成功 • 命令提示字元 • 下達javac指令

  6. 安裝JCreator LE • 執行jcrea500_setup.exe進行安裝 擷取畫面(參考)

  7. 設定JCreator LE 顯示Java程式碼行號 Compiler編譯器路徑(javac) 顯示「命令提示字元」視窗 設定可輸入引數

  8. 設定JCreator LE(1/4) • Configure/Options • 顯示Java程式碼行號

  9. 設定JCreator LE(2/4) • Configure/Options • Compiler編譯器路徑(javac)

  10. 設定JCreator LE(3/4) • Configure/Options • JDK Tools >>顯示「命令提示字元」視窗 取消勾選Capture output

  11. 設定JCreator LE(4/4) • Configure/Options • JDK Tools >> 可輸入引數

  12. 安裝TQC Java 練習系統 • 執行javacai_setup.exe進行安裝

  13. 原始檔案 (Java語言) 類別檔案 (class file) Windows 編譯(compiler) (javac) 直譯(interpreter) (java) 開發Java流程 • 撰寫方式 • 使用JCreator LE 5.0 • 使用「命令提示字元」視窗

  14. 使用JCreator LE 5.0 • 開啟Jcreator LE 5.0,,撰寫程式碼並儲存起來。存檔『類別名稱.java』儲存。例如:Sample1.java • 編譯後會在同一個目錄下產生類別檔案。例如:Sample1.class • 執行結果畫面 14

  15. 範例練習 小寫 class Sample1 { public static void main(String args[ ]) { System.out.println("謝謝您使用Java!"); } } 大寫 大寫

  16. 注意事項 • Java程式碼有大小寫的區別。 • Java的檔案名稱也有大小寫的區別。 • 將原始程式加以編譯,就會得到class file。 • 啟動interpreter(直譯器或稱Java虛擬機器),就可以執行Java程式。

More Related