I think I solved my issue with: git clone -b hexy --single-branch https://github.com/digitaldust/NetLogo.git NetLogo cd NetLogo git submodule update --init ./sbt all
The project compiles fine, I can even open the NetLogo.jar in the NetLogo folder with './sbt run' and it seems to work fine. The last problem I have is when I try to run it using: java -jar NetLogo.jar it brings out this error: Exception in thread "main" java.lang.NoClassDefFoundError: scala/Function0 at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2693) at java.lang.Class.privateGetMethodRecursive(Class.java:3040) at java.lang.Class.getMethod0(Class.java:3010) at java.lang.Class.getMethod(Class.java:1776) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: scala.Function0 at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more Any hint on this? Il giorno lunedì 26 ottobre 2015 11:43:23 UTC+1, digitaldust ha scritto: > > Ok, I finally managed to compile NetLogo. The hardest part was to find a > copy of QTJava.zip... > > I have a very basic question at this point: if I run my newly compiled > NetLogo.jar, I see it's a 5.2.1-RC1. What do I need to do in order to > switch and compile hexy? > > > Il giorno domenica 25 ottobre 2015 16:58:36 UTC+1, digitaldust ha scritto: >> >> Hello there, >> >> I am on a Mac OS X 10.10.5 and I am trying to compile the hexy branch of >> NetLogo (I need to integrate it within a Spark app that uses scala 2.11 >> >> I switched to IntelliJ and followed instruction from >> https://github.com/NetLogo/NetLogo/wiki/Building-with-IntelliJ >> (pre-Jason content, because I needed more specific details, being this my >> first attempt to compile NetLogo from sources). >> >> I am able to checkout from IntelliJ, set the JDK to Java1.6, then I stb >> all from terminal and everything seems fine. When I then try to compile in >> IntelliJ, I got something like 714 errors, the first of which is: >> >> >> /Users/digitaldust/NetBeansProjects/NetLogo/src/main/org/nlogo/swing/Implicits.scala >> Error:(89, 36) javax.swing.JComboBox does not take type parameters >> case class RichJComboBox[T](combo: JComboBox[T]) { >> ^ >> Error:(34, 41) javax.swing.JComboBox does not take type parameters >> implicit def EnrichComboBox[T](combo: JComboBox[T]) = >> RichJComboBox[T](combo) >> ^ >> Error:(21, 44) javax.swing.JComboBox does not take type parameters >> implicit def JComboBoxToIterable[T](jcb: JComboBox[T]) = >> ^ >> >> any hint of what might cause this? >> > -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.