Hi
You should put the NetLogo directory that has the jars in your classpath
For MacOS that is

java -classpath "/Applications/NetLogo 6.4.0/app/*"

If you use sbt as your build system you can add the contents of attached 
build.sbt file to your current one to pull in the required jar files.
You could make adjustments if you use Maven, Gradle or some other build tool.

Let me know if this works for you.

  *   Aaron

--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling


From: [email protected] <[email protected]> on behalf 
of Chris Davis Perumal <[email protected]>
Date: Thursday, April 11, 2024 at 3:57 PM
To: netlogo-devel <[email protected]>
Subject: Re: [netlogo-devel] Controlling API Setup
Hi Aaron,

Thanks for your reply. We specifically need to use the controlling API because 
our big picture idea is to use Java (Spring) backend to interact with netlogo 
and pull data from it.

If you could help us with that set up, it would be great. That's where I'm 
stuck right now.

Thanks and Regards,
Chris
On Thursday, April 11, 2024 at 2:55:31 PM UTC-4 Aaron Andre Brandes wrote:
Hi Chris,
If you are running a NetLogo 3D model you can just use NetLogo_Console

For example, on my MacOS system in the terminal

cd /Applications/NetLogo 6.4.0
./NetLogo_Console --headless \
  --3D \
  --model "models/3D/Sample Models/GasLab/GasLab Free Gas 3D.nlogo3d" \
  --experiment "100 runs" \
  --table -

You can find more information about using the NetLogo_Console in the 
documentation<https://ccl.northwestern.edu/netlogo/docs/behaviorspace.html#advanced-usage>.

If you need to use the Controlling API let us know.
- Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling


From: [email protected] <[email protected]> on behalf of 
Chris Davis Perumal <[email protected]>
Date: Thursday, April 11, 2024 at 1:38 PM
To: netlogo-devel <[email protected]>
Subject: [netlogo-devel] Controlling API Setup
Hi Team,

We're trying to run our Netlogo 3D model from Java in a headless format as 
specified in the documentation 
https://github.com/NetLogo/NetLogo/wiki/Controlling-API#example-headless<https://urldefense.com/v3/__https:/github.com/NetLogo/NetLogo/wiki/Controlling-API*example-headless__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!UJ9bSGUyAOs7NXViXSEOWwvx9WLSf8MUCIXw3A4e5HRva6P1KX95lPSDDlVe5tl5oHczpjJhvRFxxPiE0JXofn2L82SFYs0J$>

I used the netlogo-6.4.0.jar files that we found in the "app" folder yet still 
for some reason it was unable to pick up the supporting library files needed to 
run. Is there a different set of jar files that we are supposed to use?

We weren't sure if we were loading it onto the classpath correctly. Any help 
you can give us would be appreciated.

Thanks and Regards,
Chris
--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netlogo-devel/1da7e1f3-6188-43e7-bcb9-d015c520d5e0n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/netlogo-devel/1da7e1f3-6188-43e7-bcb9-d015c520d5e0n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Dq0X2DkFhyF93HkjWTBQKhk!UJ9bSGUyAOs7NXViXSEOWwvx9WLSf8MUCIXw3A4e5HRva6P1KX95lPSDDlVe5tl5oHczpjJhvRFxxPiE0JXofn2L87uSagIb$>.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netlogo-devel/1ebd63e3-17ab-4096-9b6c-418f16cbd540n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/netlogo-devel/1ebd63e3-17ab-4096-9b6c-418f16cbd540n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Dq0X2DkFhyF93HkjWTBQKhk!WepxdDhcPWKAjZaTcQVI_4ygGTzsLPXTJhmhlpN1rS8lHlc9oHgmMmmcjWYKpvwSxq6mtdafAINxV1ECAbhFXU1EHr3EiLFN$>.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netlogo-devel/MN2PR05MB6253955B8AF5234B3A7AF3C693052%40MN2PR05MB6253.namprd05.prod.outlook.com.

Attachment: build.sbt
Description: build.sbt

Reply via email to