How do I find the CLASSPATH?

How do I find the CLASSPATH?
Answer
package com.javacodegeeks.snippets.core;
  1. public class getClassPath {
  2. public static void main(String[] args) {
  3. // Get class path by using getProperty static method of System class.
  4. String strClassPath = System.getProperty( “java.class.path” );
  5. System.out.println( “Classpath is ” + strClassPath);
  6. } }
 

Tìm kiếm

Back
Top