I've seen a few posts regarding Matlab and Netlogo integration, however none of them seem to have worked for me thus far. I'll preface this with saying that I know little to no Java, so I'm feeling my way around here in the dark and working on a bit of a time crunch.
I'm using the following code to run netlogo from Matlab: system(['java -Xmx1024m -Dfile.encoding=UTF-8 -cp ~/NetLogo.jar org.nlogo.headless.Main --model SpoutingAngio_V3a.nlogo --experiment WT11Q1V3 --table']); however, this returns the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/nlogo/headless/Main Caused by: java.lang.ClassNotFoundException: org.nlogo.headless.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) I've seen some posts that indicate the classpath for NetLogo.jar and Lib must be the same, but I just did a fresh install of the latest version of Netlogo, put my model in the Netlogo 5.0.5 folder, and attempted to run this script. Thanks very much! -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
