make jinetd relocatable
[org.ibex.jinetd.git] / src / org / ibex / jinetd / Loader.java
index 5c933c7..0d6ca14 100644 (file)
@@ -42,11 +42,11 @@ public class Loader extends Watcher {
             File bindir = new File(this.path + File.separatorChar + "BIN");  bindir.mkdirs();
             File libdir = new File(this.path + File.separatorChar + "LIB");
             String classpath = System.getProperty("java.class.path");
             File bindir = new File(this.path + File.separatorChar + "BIN");  bindir.mkdirs();
             File libdir = new File(this.path + File.separatorChar + "LIB");
             String classpath = System.getProperty("java.class.path");
-            String [] l = new File("/jinetd/LIB/").list();
+            String [] l = new File(Root.root + "/LIB/").list();
             for(int i=0; i<l.length; i++) {
                 if (!l[i].endsWith(".jar")) continue;
                 classpath += File.pathSeparatorChar;
             for(int i=0; i<l.length; i++) {
                 if (!l[i].endsWith(".jar")) continue;
                 classpath += File.pathSeparatorChar;
-                classpath += "/jinetd/LIB/" + l[i];
+                classpath += Root.root + "/LIB/" + l[i];
             }
             String bootclasspath = System.getProperty("sun.boot.class.path", "");
             Vec args = new Vec();
             }
             String bootclasspath = System.getProperty("sun.boot.class.path", "");
             Vec args = new Vec();