100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

understanding java

Rating
-
Sold
-
Pages
2
Uploaded on
24-11-2024
Written in
2024/2025

this documents have java basics and easy to understand

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
November 24, 2024
Number of pages
2
Written in
2024/2025
Type
Class notes
Professor(s)
Apna
Contains
All classes

Subjects

Content preview

What is JDK?

JDK (Java Development Kit) is a software development environment used for developing Java
applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader
(Java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), and other tools
needed in Java development.

Installing JDK:

1. Go to the official Oracle website (https://www.oracle.com/java/technologies/javase-jdk15-
downloads.html) and download the latest version of JDK.

2. After downloading, open the installer and follow the instructions to install JDK on your
system.

3. Once installation is complete, verify the installation by opening a command prompt
(Windows) or terminal (Mac/Linux) and typing the following command:

java -version

javac -version

The output should display the version number of Java and javac, indicating that JDK is installed
properly.

Setting Up the Environment:

After installing JDK, the next step is to set up the environment. This involves setting the PATH and
JAVA_HOME variables.

Windows:

1. Right-click on "Computer" or "This PC" and select "Properties."

2. Click on "Advanced system settings" and then click on the "Environment Variables" button.

3. Under "User variables," click on "New" and add a variable named JAVA_HOME with the value
set to the installation path of JDK (e.g., C:\Program Files\Java\jdk-15.0.2).

4. Under "System variables," scroll down and find the PATH variable. Select it and click on
"Edit."

5. Add the following value in the "Variable value" field: %JAVA_HOME%\bin;

6. Click on "OK" to close all windows and save the changes.

Mac/Linux:

1. Open a terminal and open the .bash_profile or .zshrc file using a text editor (e.g., nano
~/.bash_profile).

2. Add the following lines to the file:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home

export PATH=$JAVA_HOME/bin:$PATH

Replace jdk-15.0.2 with the version number of JDK installed on your system.
CA$11.33
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
shaswanthr394

Get to know the seller

Seller avatar
shaswanthr394 Srinivasa Public School
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions