Why to set class path in java
Why to set class path in java
It is necessary to set the path to use tools like javac, java, etc. If you are saving java source file inside JDK/bin directory, there is no need to set path as all tools will be available in current directory. However, if you have your java file outside the JDK/bin folder, setting the path to the JDK is necessary.
There are two ways to set a path in Java
- Temporary
- permanent
How to set temporary path of JDK in Windows?
You have to follow the following steps
- open command prompt
- copy the path to the jdk/bin directory
- In command prompt type: set path=copy_path
Example
set path=C:\Program Files \Java\jdk1.6.0_23\bin.
How to Set Permanent Part of JDK in Windows?
To establish a permanent path of JDK, you need to follow these steps
Go to MyComputer properties
-> advanced tab
-> environment variables
-> new type of user variable
->write path in variable name
-> write path of Bin folder in variable value
->ok
-> ok
-> ok
Also check this:-
- Primary test
- Sum or difference
- point and line
Wipro :-
- Update the booking ID | Wipro previous year question paper solution
- Pages in PDF
- Find the location id
- Find the odd digits
- Find the Product ID
Infytq :-
Key Points;-
Hackerrank:-
- Python : missing characters : hackerrank solution
- Python : string transformation | Hackerrank solution
- Active Traders certification test problem | Hackerrank Solution
- Usernames changes certification test problem | Hackerrank Solution
- string Representation of objects certification test hackerrank solution
- Average Function | hackerrank certification problem solution
C-tutorial:-
- Micros in C
- Pointer in c
- Function declaration
- Types of user define function
- return type of function
- 2D array
See more:-
- c program to convert specified days into years weeks and days
- Print Reverse Hollow Pyramid
- Update the booking ID | Wipro previous year question paper
- Pages in PDF | Wipro previous year question paper
- Sparse Matrix in data structure
- Find the location ID | Wipro previous year Coding question
- find the odd digits | Wipro Coding question
- Find the product id | Wipro Coding question
- Difference between static and dynamic memory allocation
- What is asymptotic Notation