File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/scala/org/scijava/plugins/scripting/scala Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ package org.scijava.plugins.scripting.scala
32
32
import org .scijava .plugins .scripting .scala .ScalaAdaptedScriptEngine
33
33
34
34
import java .net .URLClassLoader
35
+ import java .nio .file .Paths
35
36
import java .util
36
37
import javax .script .{ScriptEngine , ScriptEngineFactory }
37
38
@@ -71,6 +72,8 @@ class ScalaAdaptedScriptEngineFactory extends ScriptEngineFactory:
71
72
*/
72
73
def classPath : String = ClassLoader .getSystemClassLoader match
73
74
case cl : URLClassLoader =>
74
- cl.getURLs.map(_.getPath).mkString(System .getProperty(" path.separator" ))
75
+ cl.getURLs
76
+ .map(url => Paths .get(url.toURI).toString)
77
+ .mkString(System .getProperty(" path.separator" ))
75
78
case _ =>
76
79
System .getProperty(" java.class.path" )
You can’t perform that action at this time.
0 commit comments