aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/src/org/aspectj/util/LangUtil.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java
index 49caba6b7..81688156e 100644
--- a/util/src/org/aspectj/util/LangUtil.java
+++ b/util/src/org/aspectj/util/LangUtil.java
@@ -38,6 +38,8 @@ public class LangUtil {
public static final String EOL;
+ public static final String JRT_FS = "jrt-fs.jar";
+
private static double vmVersion;
static {
@@ -1456,5 +1458,13 @@ public class LangUtil {
}
} // class Thrown
}
+
+ public static String getJrtFsFilePath() {
+ return getJavaHome()+File.separator+JRT_FS;
+ }
+
+ public static String getJavaHome() {
+ return System.getProperty("java.home");
+ }
}