JRE in Java – Java Runtime Environment, Components and Installation Process (जावा रनटाइम एनवायरनमेंट)
What is JRE? (JRE क्या है?)
The JRE (Java Runtime Environment) is a software environment required to run Java applications. It provides the Java Virtual Machine (JVM), runtime libraries and other supporting components needed for program execution.
JRE (Java Runtime Environment) एक सॉफ्टवेयर वातावरण है जिसकी आवश्यकता Java Applications को run करने के लिए होती है। यह Java Virtual Machine (JVM), Runtime Libraries और अन्य आवश्यक components प्रदान करता है।
The JRE is designed to run Java applications. Developers who want to write, compile and debug Java programs generally install the JDK (Java Development Kit).
JRE का मुख्य उद्देश्य Java Applications को run करना है। जो Developers Java Programs को लिखना, compile और debug करना चाहते हैं, वे सामान्यतः JDK (Java Development Kit) install करते हैं।
Components of JRE (JRE के मुख्य घटक)
The JRE consists of several components that work together to execute Java applications.
JRE में कई components होते हैं, जो मिलकर Java Applications को execute करने में सहायता करते हैं।
JVM (Java Virtual Machine): Executes Java bytecode and manages program execution.
JVM (Java Virtual Machine): Java Bytecode को execute करती है और program execution को manage करती है।
Java Runtime Libraries: Provide predefined classes and APIs required by Java applications.
Java Runtime Libraries: Java Applications के लिए आवश्यक predefined classes और APIs प्रदान करती हैं।
Supporting Files: Include configuration files and other components needed by the runtime environment.
Supporting Files: Runtime Environment के लिए आवश्यक configuration files और अन्य components प्रदान करती हैं।
Difference Between JRE and JDK (JRE और JDK में अंतर)
| JRE | JDK |
|---|---|
| Java applications को run करने के लिए उपयोग होता है। | Java applications को develop और run करने के लिए उपयोग होता है। |
| JVM और runtime libraries शामिल होते हैं। | Development tools के साथ runtime components शामिल होते हैं। |
| इसमें सामान्यतः Java compiler नहीं होता। | इसमें Java compiler (javac) और अन्य development tools होते हैं। |
| सामान्य users के लिए उपयोगी। | Java developers के लिए उपयोगी। |
JRE Installation Process for Windows (Windows में JRE कैसे Install करें?)
The installation process depends on the Java version and the application you want to run. For older applications that specifically require Java 8, you can install the Java 8 Runtime Environment. For modern Java development, installing a suitable JDK is generally recommended.
JRE की installation प्रक्रिया Java Version और आपके द्वारा चलाए जाने वाले Application पर निर्भर करती है। पुराने Applications जिन्हें विशेष रूप से Java 8 की आवश्यकता होती है, उनके लिए Java 8 Runtime Environment install किया जा सकता है। Modern Java Development के लिए उपयुक्त JDK install करना सामान्यतः बेहतर विकल्प है।
A. Installing Java 8 Runtime Environment (Java 8 JRE इंस्टॉल करना)
Step 1: Open the Official Download Website
Visit the official Java download website:
https://www.java.com/en/download/
Alternatively, visit Oracle's Java downloads page:
https://www.oracle.com/java/technologies/downloads/
चरण 1: Official Download Website खोलें
ऊपर दी गई Official Java Website पर जाएं और उपलब्ध Java Download विकल्प देखें।
Step 2: Select the Appropriate Version
Choose the appropriate installer according to your Windows system and application requirements. For a 64-bit Windows system, select the compatible 64-bit installer.
चरण 2: सही Version चुनें
अपने Windows System और Application की आवश्यकता के अनुसार सही Installer चुनें। 64-bit Windows के लिए compatible 64-bit installer का चयन करें।
Step 3: Download the Installer
Download the Java installer (.exe) and save it to your computer. Before downloading, review the applicable license terms.
चरण 3: Installer Download करें
Java Installer (.exe) डाउनलोड करें और इसे अपने Computer में save करें। Download करने से पहले संबंधित License Terms को पढ़ें।
Step 4: Run the Installer
Open the downloaded .exe file. If Windows asks for permission, allow the installer to make changes to your device.
चरण 4: Installer Run करें
डाउनलोड की गई .exe फाइल को open करें। यदि Windows permission मांगे, तो installation के लिए अनुमति दें।
Step 5: Complete Installation
Follow the instructions displayed by the installation wizard. Accept the required terms and complete the installation.
चरण 5: Installation पूरी करें
Installation Wizard में दिए गए निर्देशों का पालन करें। आवश्यक Terms स्वीकार करके installation पूरी करें।
B. Installing a Modern Java Runtime (Modern Java Runtime इंस्टॉल करना)
For modern Java applications, a compatible Java runtime is required. Many users install a JDK, which provides both the runtime environment and development tools.
Modern Java Applications को चलाने के लिए compatible Java Runtime की आवश्यकता होती है। कई users JDK install करते हैं, जिसमें Runtime Environment के साथ Development Tools भी उपलब्ध होते हैं।
Steps:
Visit the official Oracle Java downloads page: https://www.oracle.com/java/technologies/downloads/
Select a suitable JDK version for Windows.
Download the Windows installer (
.exeor.msi).Run the installer and follow the on-screen instructions.
Complete the installation and verify it using Command Prompt.
चरण:
Official Oracle Java Downloads Website खोलें।
Windows के लिए उपयुक्त JDK Version चुनें।
Windows Installer (
.exeया.msi) डाउनलोड करें।Installer run करके दिए गए निर्देशों का पालन करें।
Installation पूरी होने के बाद Command Prompt से इसे verify करें।
Important Note: In Oracle JDK 11 and later, the traditional separate JRE directory is no longer included in the JDK installation. Modern Java applications can use a JDK runtime or a custom runtime image created with tools such as jlink.
महत्वपूर्ण नोट: Oracle JDK 11 और उसके बाद के versions में पुराने तरीके वाली अलग JRE directory शामिल नहीं होती। Modern Java Applications को JDK Runtime या jlink जैसे tools से बनाए गए Custom Runtime Image की सहायता से चलाया जा सकता है।
How to Verify Java Installation? (Java Installation कैसे Check करें?)
After installation, you can check whether Java is available on your Windows system through Command Prompt.
Installation के बाद आप Command Prompt की सहायता से check कर सकते हैं कि आपके Windows System में Java उपलब्ध है या नहीं।
Step 1: Press Windows + R, type cmd and press Enter.
Step 2: Type the following command:
java -versionStep 3: Press Enter. If Java is correctly installed and available in your system PATH, the installed Java version will be displayed.
उदाहरण:
java version "..."The exact output depends on the Java version and distribution installed on your computer.
यदि Java सही तरीके से install है और System PATH में उपलब्ध है, तो Command Prompt में Java का Version दिखाई देगा। Output आपके Computer में install किए गए Java Version पर निर्भर करेगा।
Additional Command for Developers:
javac -versionThis command checks whether the Java compiler is available. It is generally available with a JDK, not a runtime-only installation.
यह command check करती है कि Java Compiler उपलब्ध है या नहीं। यह सामान्यतः JDK में मिलता है, केवल Runtime Installation में नहीं।
Setting the PATH Environment Variable (PATH Environment Variable सेट करना)
Sometimes, Windows may not recognize the java command because the Java installation directory is not included in the PATH environment variable.
कभी-कभी Windows java command को recognize नहीं कर पाता क्योंकि Java Installation Directory को PATH Environment Variable में add नहीं किया गया होता है।
To configure PATH manually:
Open Windows Search and search for Environment Variables.
Select Edit the system environment variables.
Click Environment Variables.
Under System Variables, select
Pathand click Edit.Add the
bindirectory of your Java installation, if it is not already present.Save the changes and reopen Command Prompt.
PATH manually सेट करने के चरण:
Windows Search में Environment Variables search करें।
Edit the system environment variables चुनें।
Environment Variables पर click करें।
System Variables में
Pathचुनकर Edit करें।यदि पहले से मौजूद न हो, तो Java Installation की
binDirectory add करें।Changes save करके Command Prompt दोबारा open करें।
Important Points About JRE (JRE के महत्वपूर्ण तथ्य)
JRE provides the environment required to run Java applications.
JVM is an essential component of the JRE.
JRE does not normally include the Java compiler.
A compatible Java version may be required by a particular application.
Modern Java installations and distributions may package runtime components differently.
Installing Java does not mean that Java Applets will work in modern web browsers; browser plugin support for Java Applets has been discontinued.
JRE Java Applications को run करने के लिए आवश्यक वातावरण प्रदान करता है।
JVM, JRE का एक महत्वपूर्ण component है।
JRE में सामान्यतः Java Compiler शामिल नहीं होता।
किसी विशेष Application को चलाने के लिए compatible Java Version की आवश्यकता हो सकती है।
Modern Java Installations में Runtime Components अलग-अलग तरीके से उपलब्ध हो सकते हैं।
Java install करने का अर्थ यह नहीं है कि Java Applets आधुनिक Web Browsers में चलेंगे; Java Applets के लिए Browser Plugin Support बंद हो चुका है।
The Java Runtime Environment is an important part of the Java platform. It provides the JVM and runtime libraries needed to execute Java applications. Although traditional standalone JRE installations are still relevant for some older applications, modern Java users often install a suitable JDK or use a custom runtime image.
Java Runtime Environment, Java Platform का एक महत्वपूर्ण हिस्सा है। यह Java Applications को execute करने के लिए JVM और Runtime Libraries प्रदान करता है। हालांकि कुछ पुराने Applications के लिए Traditional Standalone JRE अभी भी उपयोगी है, लेकिन Modern Java में users अक्सर उपयुक्त JDK या Custom Runtime Image का उपयोग करते हैं।
Comments
Post a Comment