Java tutorial
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; public class Main { private static String syspath; public static void loadSystemClassPath() { try { File file = new File("../classpath.txt"); if (!file.exists()) return; BufferedReader bf = new BufferedReader(new FileReader("../classpath.txt")); syspath = bf.readLine(); System.out.println(syspath); File pfile = new File(syspath); if (!pfile.exists()) { bf.close(); file.delete(); return; } } catch (IOException e) { e.printStackTrace(); } } }