Home  >  Forum  >  Core Java
Post New Query

CLASSPATH vs MODULEPATH in Java



Asked on December 11, 2018
What is MODULEPATH introduced in Java 9 and what is difference between CLASSPATH vs MODULEPATH ?


Replied on December 15, 2018
1.
CLASSPATH is the location of user defined classes or packages.

java -classpath D:\java-demo com.test.HelloWorld

2. MODULEPATH  is the location of user defined modules.

java --module-path mods -m com.cp/com.cp1.Main 



Replied on December 15, 2018

Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us