THM-MoTE / MoVE

Modelica Vector graphics Editor
https://thm-mote.github.io//projects/move
Mozilla Public License 2.0
16 stars 8 forks source link

Can't build with Intellij. #5

Closed EmileSonneveld closed 4 years ago

EmileSonneveld commented 5 years ago

I get different kind of errors. The one I get on first opening is: (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.3: not found I got one step further commented out addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3") in plugin.sbt, but then bounced on an infinite wall of errors.

I also tried:

What should I do to get this project building again? I would like to test my static analysis tool on it.

njustus commented 5 years ago

Hi Emile,

thanks for the issue. Because of all the changes introduced in java 9, 10 and 11 it's not possible to build the project using jdk >= 8, so first: you do need jdk8.

Because we depend on JavaFX and the jfxrt.jar isn't in the default classpath of sbt, we add it manually to it in the build file. This step requires that $JAVA_HOME is set and points to a jdk8 installation. Start sbt using:

JAVA_HOME=<path to jdk8> sbt
JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home' sbt

At least for me it's than possible to build the project by running ;compile;run in sbt console. I can't help you in IntelliJ because i don't use it, but if you set the $JAVA_HOME variable you should be able to just import the project from sbt.

Please try to build the dev branch, there i fixed the sbt-assembly resolution error ;).

EmileSonneveld commented 5 years ago

Hi Nico,

Thank you! That indeed solved my problem.

I also had a problem with the 'THM-MoTE/recently' dependency, so I temporary disabled that one.

Btw, the results of my static analysis: