Java Dev Kit — JDK v25.0.2 (Official)



📚Video Course
🕒Last updated: 01/23/2026
👥Entrepreneurs / Self-media creators / Cross-border e-commerce sellers / Side-hustlers

Study material — included with membership
Unlock Course with Membership
🔓
Get this course for reference study with membership
📦
Join membership — study all 16742 courses & software tools as reference
🔄
Courses keep updating — members study new material as it arrives
Share:

Oracle's Java Development Kit (JDK) is the essential toolkit for Java development. It is not a simple app but a full suite: the Java runtime environment, development tools, and source code for Java's core class libraries. The Java Runtime Environment (JRE) has a simpler role — it is purely a runtime. In short, any Java-written program needs the JRE to run on your machine. Whether you do traditional Java development or hot Android development, you must install the JRE. Java's contribution and influence on software development are hard to match.

\ \

\ \

coreoverviewthink辨analyze:JRE and JDK,tobottomhaswhatnot1way?

\ \

thisisverymanyJavafirstlearn-erallwill困惑targetquestions。itssolidareaminuteitpluralverysimple,thenseeyoutargeteyetarget:

\ \
    \ \
  • likeresultyouinlearnJava,or-erjustinfromthingJavaopenhairwork,need编writeand编译Java代code,thatwhatyoumustinstall JDK。
  • \ \
  • If your PC only needs to run Java programs others already built (e.g. a Java game or tool),thatwhatyouneedinstall JRE thenfootenough。
  • \ \
\ \

fromcomparedirectioncomeunderstand

\ \

youcanholdopenhairJavaprogramwant toelephantbecomedodish:

\ \
    \ \
  • JDK(Javaopenhairtoolkit) = the whole kitchen. It has the stove (runtime), knives and spatulas (compiler and dev tools), and seasonings/ingredients (base libraries and source). For the 'chefs' (developers).
  • \ \
  • JRE(Javatransportlineenvironment) = a dining table and cutlery. It only 'eats' ready dishes (runs programs) but can't 'cook' (develop/compile). For the 'diners' (end users).
  • \ \
\ \

technologyleveltargetdetailedareadistinguish

\ \
    \ \
  • Java Development Kit (JDK): thisisJavatechnologytargetcore套,facetoopenhair-er。itincludingJRE,sametimealsoextraprovide:\
      \ \
    • 编译machine(javac.exe): It compiles your .java source into executable .class bytecode.
    • \ \
    • eachtypeopenhairtools: E.g. javadoc.exe for docs, jar.exe for packaging, keytool.exe for security, jconsole.exe for monitoring, and more.
    • \ \
    • Javatoolskindreservoirtargetsource代code: 例like tools.jar,directionthenopenhair-erdeepenterlearnandadjust试。
    • \ \
    \ \

    simplesay,JDK = JRE + openhairtoolscollection。

  • \ \
  • Java Runtime Environment (JRE): thisisguaranteewitnessJavaprogramable totransportlinetargetbasicsenvironment,faceto普throughusedoor。itmainwantincluding2part:\
      \ \
    • JVMtargetmarkstandardsolidnow: For example, java.exe launches the JVM to run programs.
    • \ \
    • Javacorekindreservoir: such as巨bigtarget rt.jar,insidefaceincludingJavalanguagetransportlinetimemusttargetbecomethousandpart 110Kbasicskind。
    • \ \
    \ \

    keypoint:JRE notincludingtaskwhatopenhairtools,like编译machine、adjust试machineetc.。itcan“transportline”,notcan“createcreate”。

  • \ \
\ \

hands-onpointsouth:howinWindowssystempart 1matchhandleJavaenvironmentchangequantity?

\ \

installgoodJDKback,doletsystemintaskwhatpositionhandleallcanknowdistinguishJavafate令,mustmatchhandleenvironmentchangequantity。usingpart 2isdetailedstep-by-step:

\ \
    \ \
  1. in桌facepart 1findto“thiscomputer”picturemark,right键clickit,selection“attributes”。
  2. \ \
  3. infromopentargetwindowmouthleftside,click“advancedsystemsettings”。
  4. \ \
  5. in弹outtarget“systemattributes”windowmouthmid,clickpart 2directiontarget“environmentchangequantity(N)…”button.
  6. \ \
\ \

1step:newbuildsystemchangequantity

\ \

In the next 'environment variables' window, we work in two areas: 'user variables' and 'system variables'. Usually recommended to"System Variables"areaenterlinematchhandle,thiswaypairplacehasusedoorlifeeffect。

\ \
    \ \
  • Click"System Variables"part 2directiontarget"New"button.\
      \ \
    • Variable name (N): Input JAVA_HOME
    • \ \
    • Variable value (V): 输enteryoutargetJDKinstalleyerecord。例like:C:\\Program Files\\Java\\jdk1.8.0_311(pleasetaskmust根accordingyousolidedgeinstalltargetversioncopysignmodifyroad径)
    • \ \
    \ \
  • \ \
  • againtimesclick"New"button.\
      \ \
    • Variable name (N): Input CLASSPATH
    • \ \
    • Variable value (V): Input .;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar;\ \

      (notemeaningmostfrontfacehasapointsignandminutesign .;,this代surfacecurrenteyerecord,veryheavywant!)

    • \ \
    \ \
  • \ \
\ \

2step:editPathchangequantity

\ \

in“systemchangequantity”linesurfacemid,findtonamedo Path targetchangequantity,selectmidit,afterbackclick“edit”。

\ \
    \ \
  • infromopentarget“editenvironmentchangequantity”windowmouthmid,click"New",afterbackaccording totimesaddplususingpart 23road径(please根accordingyoutargetsolidedgeinstallroad径adjust):\
      \ \
    1. %JAVA_HOME%\\bin (thisismostcommon、mostrulemodeltargetwritemethod,leadusejustonlysettingstargetJAVA_HOMEchangequantity)
    2. \ \
    3. C:\\Program Files\\Java\\jdk23.0_2\\bin (thisisJDKtargetbineyerecord绝pairroad径,show例versioncopysign)
    4. \ \
    5. C:\\Program Files\\Java\\jre23.0_2 (thisisJREtargetinstalleyerecord,show例versioncopysign)
    6. \ \
    \ \
  • \ \
  • addpluscompleteback,1roadclick“accuratestable”closecloseplacehaswindowmouth。
  • \ \
\ \

3step:checkwitnessmatchhandleis否becomework

\ \

thisismostkeytarget1step,checkinvestigatedIpluraltargetmatchhandleis否lifeeffect:

\ \
    \ \
  1. according topart 2键platepart 1target Win + R 键,fromopen“transportline”pairspeech框。
  2. \ \
  3. Input cmd,afterbackaccording toreplaycar,fromopenfate令promptsymbolwindowmouth。
  4. \ \
  5. in闪烁targetlightmarkhandle,输enterfate令:java -version,afterbackaccording toreplaycar。
  6. \ \
\ \

likeresultmatchhandlejustaccurate,youwillseetokindlikepart 2facetarget输out,显showyouinstalltargetJavaversioncopybelieverest:

\ \
java version "1.8.0_311"\
Java(TM) SE Runtime Environment (build 1.8.0_311-b13)\
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b13, mixed mode)
\ \

seetothis,then恭喜you!youtargetJavaopenhairenvironment已classicbecomeworkset upgood。

\ \

summary:fromunderstandtomovehand,dostableJavaenvironment

\ \

understandJDKandJREtargetareadistinguishislearnJavatarget1step,andjustaccuratematchhandleenvironmentchangequantityruleiswilltheory付诸solid践targetkeyoperations。marklivecoreoriginalrule:openhairoutfitJDK,transportlineoutfitJRE;matchhandletime盯紧JAVA_HOMEandPathCarefully follow the above steps and you'll clear Java's first little hurdle, laying a solid base for the programming journey ahead.

\ \ \ \

Related Courses