3
การติดตั้ง JDK + Netbeans 1. ทําการดาวนโหลด Java SE http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. คลิกที่ปุ/ม DOWLOAD ของ JDK 6u45 wtih NetBeans 7.3 3. ทําการยอมรับขEอตกลงโดยการเลือก Accept License Agreement 4. คลิกเลือก jdk สําหรับ Windows 5. ทําการติดตั้งชุดติดตั้งจากขEอ 4 6. เปNดการใชEงาน Netbeans 7.3

การติดตั้ง JDK + Netbeans · JDK 7u21 with NetBeans 7.3 This distribution of the JDK includes the NetBeans IDE, which is a DOWNLOAD + on the Java platform. Learn

Embed Size (px)

Citation preview

Page 1: การติดตั้ง JDK + Netbeans · JDK 7u21 with NetBeans 7.3 This distribution of the JDK includes the NetBeans IDE, which is a DOWNLOAD + on the Java platform. Learn

การติดต้ัง JDK + Netbeans 1. ทําการดาวน�โหลด Java SE

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. คลิกท่ีปุ/ม DOWLOAD ของ JDK 6u45 wtih NetBeans 7.3 3. ทําการยอมรับขEอตกลงโดยการเลือก Accept License Agreement

4. คลิกเลือก jdk สําหรับ Windows 5. ทําการติดต้ังชุดติดต้ังจากขEอ 4 6. เปNดการใชEงาน Netbeans 7.3

Page 2: การติดตั้ง JDK + Netbeans · JDK 7u21 with NetBeans 7.3 This distribution of the JDK includes the NetBeans IDE, which is a DOWNLOAD + on the Java platform. Learn

เริ่มเขียนโปรแกรมด วยภาษา Java 1. ทําการสรEางโปรเจค โดยคลิกท่ีคําสั่ง New project

2. เลือกประเภทของโปรเจค เปSน Java Application แลEวคลิกปุ/ม Next

3. กําหนดชื่อโปรเจค, สถานท่ีจัดเก็บ และทําการยกเลิก Create Main Class แลEวคลิกปุ/ม Finish

Page 3: การติดตั้ง JDK + Netbeans · JDK 7u21 with NetBeans 7.3 This distribution of the JDK includes the NetBeans IDE, which is a DOWNLOAD + on the Java platform. Learn

4. ทําการสรEางคลาสข้ึนมา โดยการคลิกขวาท่ีโปรเจคแลEวเลือก New และ Java Class ตามลําดับ

5. กําหนดชื่อคลาส และแพคเกจ แลEวคลิกปุ/ม Finish

6. ทําการโปรแกรมดังภาพขEางล]าว

7. ตรวจสอบผลการทํางานโดยคลิกท่ีปุ/ม Run project

8. ผลการทํางาน