0% found this document useful (0 votes)
7 views5 pages

Practical 1

Core Java Programming Practical

Uploaded by

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

Practical 1

Core Java Programming Practical

Uploaded by

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

TULSIRAMJI GAIKWAD-PATIL

College of Engineering & Technology


Mohgaon, Wardha Road, Nagpur – 441 108

Date: _________________

Experiment No : 1

Aim: Demonstrate the installation of JAVA with necessary path settings & Execute simple java
Program
Objective: To understand Installation Process of JDK.
Theory: The path is required to be set for using tools such as javac, java, etc.
If you are saving the Java source file inside the JDK/bin directory, the path is not required to be
set because all the tools will be available in the current directory.
However, if you have your Java file outside the JDK/bin folder, it is necessary to set the path of
JDK.

There are two ways to set the path in Java:


 Temporary
 Permanent

1) How to set the Temporary Path of JDK in Windows


To set the temporary path of JDK, you need to follow the following steps:

Open the command prompt


Copy the path of the JDK/bin directory
Write in command prompt: set path=copied_path
For Example:
set path=C:\Program Files\Java\jdk1.6.0_23\bin

Object Oriented Programming in Java Page 1


TULSIRAMJI GAIKWAD-PATIL
College of Engineering & Technology
Mohgaon, Wardha Road, Nagpur – 441 108

2) How to set Permanent Path of JDK in Windows


For setting the permanent path of JDK, you need to follow these steps:

Go to MyComputer properties -> advanced tab -> environment variables -> new tab of user
variable -> write path in variable name -> write path of bin folder in variable value -> ok -> ok

For Example:
1) Click on the advanced tab

2)Click on environment variables

Object Oriented Programming in Java Page 2


TULSIRAMJI GAIKWAD-PATIL
College of Engineering & Technology
Mohgaon, Wardha Road, Nagpur – 441 108

4) Click on the new tab of user variables

5) Copy the path of bin folder

Object Oriented Programming in Java Page 3


TULSIRAMJI GAIKWAD-PATIL
College of Engineering & Technology
Mohgaon, Wardha Road, Nagpur – 441 108

6) Paste path of bin folder in the variable value

7) Click on ok button

Object Oriented Programming in Java Page 4


TULSIRAMJI GAIKWAD-PATIL
College of Engineering & Technology
Mohgaon, Wardha Road, Nagpur – 441 108

7) Click on ok button

Conclusion:- _________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

Object Oriented Programming in Java Page 5

You might also like