0% found this document useful (0 votes)
16 views

Setting Up Java Development Environment (JDK, IDE)

Uploaded by

homkarsaloni88
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Setting Up Java Development Environment (JDK, IDE)

Uploaded by

homkarsaloni88
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Setting Up

Java Development Environment


(JDK, IDE)
Installation of JDK

Setting Up IDE (Eclipse/IntelliJ)

Contents Configuring Environment Variables

Understanding the Project Structure

Writing a Simple Java Program


Introduction to JDK

The Java Development Kit (JDK) is a software development environment used for

developing Java applications.

It includes a complete set of tools needed to develop Java programs, such as the

Java Runtime Environment (JRE), an interpreter/loader (Java), a compiler (javac), an

archiver (jar), a documentation generator (javadoc), and other tools.


Installation of JDK
1. Download JDK:
- Visit the official Oracle website or OpenJDK website.
- Select the appropriate version and operating system.
2. Run the Installer:
- Follow the installation wizard steps.
3. Verify Installation:
- Open Command Prompt or Terminal.
- Run `java -version` and `javac -version` to ensure installation is successful.
Setting Up IDE (Eclipse/IntelliJ)

1. Eclipse IDE:
- Download Eclipse IDE for Java Developers from the Eclipse website. https://eclipseide.org/
- Install Eclipse and launch the application.
- Configure workspace and create a new Java project.
2. IntelliJ IDEA:
- Download IntelliJ IDEA from the JetBrains website.
https://www.jetbrains.com/idea/download/?section=windows
- Install IntelliJ IDEA and set up a new Java project.
- Explore features like code completion, debugging, and project management.
Configuring Environment
Variables
1. Windows:
- Open System Properties > Advanced > Environment Variables.
- Add `JAVA_HOME` variable pointing to the JDK installation directory.
- Modify `PATH` variable to include `%JAVA_HOME%\bin`.
2. macOS/Linux:
- Open Terminal and edit shell profile (e.g., `~/.bash_profile`, `~/.zshrc`).
- Add `export JAVA_HOME=/path/to/jdk` and `export
PATH=$JAVA_HOME/bin:$PATH`.
- Reload the profile with `source ~/.bash_profile` or `source ~/.zshrc`.
Writing a Simple Java Program

1. Write the Code:


DO IT YOURSELF!
public class HelloWorld {
Write a program to print “I am
public static void main(String[] args) {
a Software Developer” using
System.out.println("Hello, World!"); java.
}
}
2. Run the Program:
- Compile and run the `HelloWorld` class in
your IDE.
Installation of JDK

Setting Up IDE (Eclipse/IntelliJ)


Topics
Configuring Environment Variables
Covered
Understanding the Project Structure

Writing a Simple Java Program


THANK
YOU

You might also like