How to set CLASSPATH variable for JDK?

Java Programming Java8Java Technologies Object Oriented Programming

Assuming you have stored your Java programs in c:\myprograms\ directory −

  • Right-click on 'My Computer' and select 'Properties'.

  • Click the 'Environment variables' button under the 'Advanced' tab.

  • Now, add the 'CLASSPath' variable and set the path to the c:\myprograms\'.

raja
Updated on 13-Jun-2020 12:40:13

Advertisements