1 29 38 39 package org.planetamessenger.io; 40 41 42 public class JClassPath { 43 44 static final String LIBRARY_PATH = "java.library.path"; 45 static final String CLASS_PATH = "java.class.path"; 46 static final String PATH_SEPARATOR = "path.separator"; 47 static final String FILE_SEPARATOR = "file.separator"; 48 static final String USER_HOME = "user.home"; 49 static final String USER_DIR = "user.dir"; 50 51 String strClassPath; 52 53 54 55 58 public JClassPath() { 59 60 strClassPath = getDefaultClassPath(); 61 } 62 63 66 static public final String getLibraryPath() { 67 68 return System.getProperty( LIBRARY_PATH ); 69 } 70 71 74 static public final String getPathSeparator() { 75 76 return System.getProperty( PATH_SEPARATOR ); 77 } 78 79 82 static public final String getFileSeparator() { 83 84 return System.getProperty( FILE_SEPARATOR ); 85 } 86 87 90 static public final String getUserHomeDirectory() { 91 92 return System.getProperty( USER_HOME ); 93 } 94 95 98 static public final String getDefaultClassPath() { 99 100 return System.getProperty( CLASS_PATH ); 101 } 102 103 106 static public final String getCurrentDirectory() { 107 108 return System.getProperty( USER_DIR ); 109 } 110 } 111 112 | Popular Tags |