Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Java

โครงสร้างไดเรกทอรี JDK และ JRE ใน Java 9

โครงสร้าง JDK และ JRE คล้ายกัน แต่ JDK มีโฟลเดอร์เพิ่ม: jmods และ include และไม่มีโฟลเดอร์ JRE ย่อยใน JDK 9

JDK Directory Structure

JDK-9
├── bin        // executables, launchers
├── conf       // .properties, .policy config files
├── include    // C header files สำหรับ JNI, JVM debugger
├── jmods      // compiled module definitions
├── legal      // copyright, license files ต่อโมดูล
└── lib        // private runtime implementation

JRE Directory Structure

JRE-9
├── bin        // executables, launchers
├── conf       // config files
├── legal      // copyright, license files
└── lib        // private runtime implementation

รายละเอียดโฟลเดอร์สำคัญ

  • bin - คำสั่ง java, javac, jshell, jlink ฯลฯ
  • conf - ไฟล์ตั้งค่าที่แก้ไขได้ (security, logging, net.properties)
  • jmods - ไฟล์ .jmod ของโมดูลแพลตฟอร์ม (เฉพาะ JDK)
  • include - header files สำหรับ native programming (เฉพาะ JDK)
  • legal - ใบอนุญาตต่อโมดูล