Get path / classpath separator
import java.util.Properties; public class Main { public static void main(String[] args) { Properties properties = System.getProperties(); String pathSeparator = properties.getProperty("path.separator"); System.out.println("pathSeparator = " + pathSeparator); } }