100% tevredenheidsgarantie Direct beschikbaar na je betaling Online lezen of als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
College aantekeningen

understanding java

Beoordeling
-
Verkocht
-
Pagina's
2
Geüpload op
24-11-2024
Geschreven in
2024/2025

this documents have java basics and easy to understand

Instelling
Vak

Voorbeeld van de inhoud

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.

Geschreven voor

Vak

Documentinformatie

Geüpload op
24 november 2024
Aantal pagina's
2
Geschreven in
2024/2025
Type
College aantekeningen
Docent(en)
Apna
Bevat
Alle colleges

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Online lezen of als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
shaswanthr394

Maak kennis met de verkoper

Seller avatar
shaswanthr394 Srinivasa Public School
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 jaar
Aantal volgers
0
Documenten
1
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen