Skip to content

MissingCoreLibraryException when running script in FIJI #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jpsacha opened this issue May 14, 2023 · 0 comments
Closed

MissingCoreLibraryException when running script in FIJI #10

jpsacha opened this issue May 14, 2023 · 0 comments
Assignees
Labels

Comments

@jpsacha
Copy link
Member

jpsacha commented May 14, 2023

Cannot evaluate scripts in FIJI without explicitly adding each Scala library and each library used in script to java.class.path

Example of FIJI error

[ERROR] java.util.concurrent.ExecutionException: dotty.tools.dotc.MissingCoreLibraryException: Could not find package scala from compiler core libraries.
Make sure the compiler core libraries are on the classpath.
   
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at org.scijava.ui.swing.script.TextEditor.evalScript(TextEditor.java:3439)
	at org.scijava.ui.swing.script.TextEditor.access$600(TextEditor.java:208)
	at org.scijava.ui.swing.script.TextEditor$5.execute(TextEditor.java:2761)
	at org.scijava.ui.swing.script.TextEditor$Executer$1.run(TextEditor.java:2526)
Caused by: dotty.tools.dotc.MissingCoreLibraryException: Could not find package scala from compiler core libraries.
Make sure the compiler core libraries are on the classpath.

	at dotty.tools.dotc.core.Denotations$.select$1(Denotations.scala:1318)
	at dotty.tools.dotc.core.Denotations$.recurSimple$1(Denotations.scala:1346)
	at dotty.tools.dotc.core.Denotations$.recur$1(Denotations.scala:1348)
	at dotty.tools.dotc.core.Denotations$.staticRef(Denotations.scala:1352)
	at dotty.tools.dotc.core.Symbols$.requiredPackage(Symbols.scala:865)
	at dotty.tools.dotc.core.Definitions.ScalaPackageVal(Definitions.scala:230)
	at dotty.tools.dotc.core.Definitions.ScalaPackageClass(Definitions.scala:233)
	at dotty.tools.dotc.core.Definitions.AnyClass(Definitions.scala:293)
	at dotty.tools.dotc.core.Definitions.syntheticScalaClasses(Definitions.scala:1957)
	at dotty.tools.dotc.core.Definitions.syntheticCoreClasses(Definitions.scala:1970)
	at dotty.tools.dotc.core.Definitions.init(Definitions.scala:1987)
	at dotty.tools.dotc.core.Contexts$ContextBase.initialize(Contexts.scala:868)
	at dotty.tools.repl.ReplDriver.setupRootCtx(ReplDriver.scala:92)
	at dotty.tools.repl.ReplDriver.initialCtx(ReplDriver.scala:84)
	at dotty.tools.repl.ReplDriver.resetToInitial(ReplDriver.scala:110)
	at dotty.tools.repl.ReplDriver.<init>(ReplDriver.scala:125)
	at dotty.tools.repl.ScriptEngine.<init>(ScriptEngine.scala:28)
	at dotty.tools.repl.ScriptEngine$Factory.getScriptEngine(ScriptEngine.scala:93)
	at org.scijava.plugins.scripting.scala.ScalaAdaptedScriptEngineFactory.getScriptEngine(ScalaAdaptedScriptEngineFactory.scala:53)
	at org.scijava.plugins.scripting.scala.ScalaAdaptedScriptEngineFactory.getScriptEngine(ScalaAdaptedScriptEngineFactory.scala:53)
	at org.scijava.script.AdaptedScriptLanguage.getScriptEngine(AdaptedScriptLanguage.java:138)
	at org.scijava.script.ScriptModule.getEngine(ScriptModule.java:114)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:142)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:163)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant