Nothing additional should be needed on the classpath. Based on the above message, the scala library (lib/scala-library.jar) does not seem to be on the classpath. Most of the other jars have a version number on the end, while that one does not.
On Mon, Oct 26, 2015 at 3:23 PM, Simone Gabbriellini < simone.gabbriell...@gmail.com> wrote: > yes, no problem when running with GUI, but when I call NetLogo with: > > public static void main(String[] args) { > HeadlessWorkspace workspace = HeadlessWorkspace.newInstance(); > try { > workspace.open("mymodel.nlogo"); > workspace.command("setup"); > workspace.command("go"); > System.out.println("ABM: " + workspace > .report("mean all-abm-vs-entelo")); > System.out.println("RAN: " + workspace > .report("mean all-ran-vs-entelo")); > workspace.dispose(); > } catch (IOException | CompilerException | LogoException > | InterruptedException ex) { > System.err.println("Error: " + ex.toString()); > System.exit(1); > } > } > > I still get: > > java.lang.NoClassDefFoundError: scala/ScalaObject > > but all the jars are all there... when I use the headless workspace should > I add something more to my path? > > 2015-10-26 20:21 GMT+01:00 Seth Tisue <s...@tisue.net>: > >> great! glad to hear you got it working. >> >> -- >> 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. >> > > > > -- > ----------------------------------------------------------------- > > Simone Gabbriellini, PhD > > Post-doctoral Researcher > ANR founded research project "DIFFCERAM" > GEMASS, CNRS & Paris-Sorbonne. > > mobile: +39 340 39 75 626 > email: simone.gabbriell...@cnrs.fr > > -- > 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. > -- 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.