Closed bjornregnell closed 2 years ago
The previous version of dottylab failed on Linux due to an improper classpath building.
The current one seems to work correctly,
without the uberJar but with
clean
package
that build a small .jar file
On 19/12/2021 14:32, Bjorn Regnell wrote:
|[warn] /home/bjornr/tmp/dottylab/dottylab-master/src/main/scala/scalaSci/CommonMaths/Mat.scala:25:13: method |
Aha. Thanx. Will try.
Which Java version are you building with? Still fails with same error using OpenJDK 8.
[error] ## Exception when compiling 482 sources to /home/bjornr/tmp/dottylab/dottylab-master/target/scala-2.13/classes
[error] java.lang.IllegalArgumentException: invalid source release: 13
[error] com.sun.tools.javac.main.OptionHelper$GrumpyHelper.error(OptionHelper.java:103)
[error] com.sun.tools.javac.main.Option$11.process(Option.java:204)
[error] com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:217)
[error] com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:156)
[error] com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:107)
[error] com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64)
[error] sbt.internal.inc.javac.LocalJavaCompiler.run(LocalJava.scala:345)
etc
The build reports no errors with sdk install java 17.0.1-oracle
. But nothing happens when:
$ java -jar target/scala-2.13/ScalaLab.jar
ScalaLab needs to access the lib folders therefore it should be run from the project's root folder.
Therefore, you should copy the ScalaLab.jar to the project's root folder, and run the command java -jar ScalaLab.jar or better ./Linux64RunScalaLabServerJVM.sh
Aha! Yes now it works with createUberJar and copied to the root and running with ./Linux64RunScalaLabServerJVM.sh
I think it would be good to add this info to the README.md and also perhaps publish the jar her on github as a release.
I tried to build by following instructions -- am I doing something wrong?