Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me what is the meaning of the word classpath in Java? And how I can able to set the classpath?

1 Answer

0 votes
by (26.7k points)

Basically, Classpath helps you to load a .class file using Application ClassLoader. Also, it will help you to find third-party classes which do not contain extensions of Java.

To set the Classpath you can use the following command prompt command:

set CLASSPATH=%CLASSPATH%;C:\Program Files\Java\jre1.8\rt.jar;  

I hope this will help.

Want to become a Java Expert? Join Java Training now!!

Related questions

+15 votes
2 answers
asked May 29, 2019 in Java by adam96 (800 points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...