Dear Jason, Hello. Thanks very much for your help. I think as a beginner I have tried everything but still not working for me. I will try to do that in Java maybe and ask my friend to sort this out later when he is free. Thanks!
Robert On Sunday, 29 December 2013 16:35:24 UTC, Jason Bertsche wrote: > > Exception in thread "main" java.lang.NoClassDefFoundError: > scala/reflect/ClassManifest > > at org.nlogo.api.Version$.<init>(Version.scala:15) > > at org.nlogo.api.Version$.<clinit>(Version.scala) > > at org.nlogo.app.Splash$MyIconHolder.<init>(Splash.scala:31) > > at org.nlogo.app.Splash$.beginSplash(Splash.scala:13) > > at org.nlogo.app.App$.main(App.scala:83) > > at Example$.main(Example.scala:7) > > at Example.main(Example.scala) > > > The stacktrace is small and seems to happen very shortly after NetLogo > loads up, almost immediately failing to find a valid Scala class at > runtime. This indicates that you probably don't have 'scala-library.jar' > on your classpath. > > Also, in the library provided in the git repository, there is a library > missing: log4j. > > > The libraries are not included directly in the Git repository because > dependencies and artifacts ('.jar' files) don't really belong in version > control. Instead, configuration files are told which libraries NetLogo > depends upon, and the build tool downloads those libraries when they are > needed. > > As Seth warned in an earlier post, running NetLogo requires having the > 'lib' directory on your classpath. Inside that directory are all of the > libraries that NetLogo depends upon and expects to be available at > runtime. However, if you're using a 'NetLogo.jar' built off of 'master', > you can't use the 'lib' directory from the standard NetLogo distribution, > because the dependencies are different in the 'master' branch. After you > do './sbt package' or './sbt compile' or some similar command to make SBT > pull down the dependencies and compile the NetLogo code in the repository > that you checked out, you should then be able to retrieve the '.jar' files > you need from the 'lib_managed' directory of your NetLogo repository. > > Jason Bertsche > Senior Software Developer - NetLogo > > On 12/29/2013 07:12 AM, Robert White wrote: > > Hello Jason, > > Thanks I followed https://github.com/NetLogo/NetLogo/wiki/Building > > and build the master brach and get the jar and used Netlogo.jar as my > external library. > > but still I get errors as follows. It seems that the scala version is > still not compatible. I wonder why. What can I do to change everything? > > Also, in the library provided in the git repository, there is a library > missing: log4j. > > I got it from: > http://grepcode.com/snapshot/repo1.maven.org/maven2/log4j/log4j/1.2.15 > > and it stopped reporting problems but I can't run it. The following are > the errors I got. I am using eclipse > > My Scala version is 2.10.3 > > What do you think is the problem? > > > Thanks very much > > Robert > > > Exception in thread "main" java.lang.NoClassDefFoundError: > scala/reflect/ClassManifest > > at org.nlogo.api.Version$.<init>(Version.scala:15) > > at org.nlogo.api.Version$.<clinit>(Version.scala) > > at org.nlogo.app.Splash$MyIconHolder.<init>(Splash.scala:31) > > at org.nlogo.app.Splash$.beginSplash(Splash.scala:13) > > at org.nlogo.app.App$.main(App.scala:83) > > at Example$.main(Example.scala:7) > > at Example.main(Example.scala) > > Caused by: java.lang.ClassNotFoundException: scala.reflect.ClassManifest > > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > > 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 > > On Sunday, 29 December 2013 08:16:43 UTC, Jason Bertsche wrote: >> >> Yes, you can use `./sbt package` from the root directory of a >> checked-out NetLogo repository in order to create the 'NetLogo.jar' file >> for that branch. >> >> Jason Bertsche >> Senior Software Developer - NetLogo >> >> On 12/28/2013 05:23 PM, Robert White wrote: >> >> I think I can compile my own with ./sbt so I will try again and see. >> thanks >> >> On Saturday, 28 December 2013 23:18:54 UTC, Robert White wrote: >>> >>> Hello. >>> >>> https://github.com/NetLogo/NetLogo/branches >>> I found many branches. But I think there isn't a jar file there in >>> the 'master' or 'headless' branches. Do I have to compile my own? >>> >>> Thanks and sorry to ask these fundamental questions. I am still an >>> undergraduate student. Please accept my apologies if you think I am not >>> familiar with these things (which I should). >>> >>> Thanks again >>> Robert >>> >>> On Saturday, 28 December 2013 23:04:38 UTC, Seth Tisue wrote: >>>> >>>> >>>> I just brought the information on this in the "Controlling API" and >>>> "Extensions API" wiki pages up to date. Scala 2.9.1, 2.9.2, and 2.9.3 >>>> are all acceptable. Other versions of Scala definitely will not work. >>>> (for use with NetLogo 5.0.x) >>>> >>>> -- >>>> Seth Tisue | http://tisue.net >>>> >>> -- >> 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-deve...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- > 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-deve...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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/groups/opt_out.