Get classpath using System class - Java Native OS

Java examples for Native OS:Environment

Description

Get classpath using System class

Demo Code


public class Main {
 
        public static void main(String[] args) {
       /*w ww.  j ava 2 s .  co  m*/
                 String strClassPath = System.getProperty("java.class.path");
                 
                 System.out.println("Classpath is " + strClassPath);
 
        }
}

Result


Related Tutorials