Browse files

Use system classloader when finding root classloader

  • Loading branch information...
1 parent 7109bc9 commit 7b7716953f108d64a60455861dc86ca4008939c3 @pvlugter pvlugter committed Apr 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 util/classpath/ClasspathUtilities.scala
View
4 util/classpath/ClasspathUtilities.scala
@@ -38,7 +38,9 @@ object ClasspathUtilities
val p = loader.getParent
if(p eq null) loader else parent(p)
}
- parent(getClass.getClassLoader)
+ val systemLoader = ClassLoader.getSystemClassLoader
+ if (systemLoader ne null) parent(systemLoader)
+ else parent(getClass.getClassLoader)
}
final val AppClassPath = "app.class.path"

0 comments on commit 7b77169

Please sign in to comment.