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
3232import org .scijava .plugins .scripting .scala .ScalaAdaptedScriptEngine
3333
3434import java .net .URLClassLoader
35+ import java .nio .file .Paths
3536import java .util
3637import javax .script .{ScriptEngine , ScriptEngineFactory }
3738
@@ -71,6 +72,8 @@ class ScalaAdaptedScriptEngineFactory extends ScriptEngineFactory:
7172 */
7273 def classPath : String = ClassLoader .getSystemClassLoader match
7374 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" ))
7578 case _ =>
7679 System .getProperty(" java.class.path" )
You can’t perform that action at this time.
0 commit comments