I am unable to run the mathematica-netlogo link on my PC with a 64 bit processor running window 10. The versions of Netlogo and Mathematica are 6.0.1 and 11.1 Student Edition respectively.
The error arises when the function "NLStart[]" is run with the path of the Netlogo directory provided as an input to this function. The error message is as follows:
NLStart::netlogonotfound: NetLogo could not be found in: C:\Program Files\NetLogo 6.0.1\
Prior to this step, I successfully loaded the NetLogo Mathematica link package.
Any helpful suggestions to overcome this issue will be appreciated.
Thanks.
I've just verified I was able to use NetLogo Mathematica Link with the following configuration:
My Mathematica installation was untouched, as was my NetLogo installation - I did not have the Mathematica Link 6.0 hotfix installed for NetLogo 6.0.1. Also, NetLogo 6.0.1 was installed in "C:\Program Files\NetLogo 6.0.1" (some users choose to install to a different directory, or their primary drive is not lettered with "C:").
I opened Mathematica and ran the following commands:
NLStart["C:\\Program Files\\NetLogo 6.0.1"]
(note the double backslashes and no trailing backslash).If you've followed these steps and are still unable to open Mathematica Link, please comment and we can continue to troubleshoot.
Edit:
I wanted to consolidate troubleshooting steps for future readers. I've introduced a new version of NetLogo.m available here, which users should download for troubleshooting purposes (it will be distributed with future versions of NetLogo). Some steps to using this:
Mathematica will cache old "NetLogo.m" files. You can find where these caches are by using the following commands in Mathematica:
FileNameJoin[{ $BaseDirectory, "Applications" }]
FileNameJoin[{ $UserBaseDirectory, "Applications" }]
Visit the directories obtained in Step 1 and delete all "NetLogo.m" files from them.
NLDiagnostics["C:\\Program Files\\NetLogo 6.0.1"]
to determine what paths are being searched. This function will produce a hash as an output. The keymissingJars
should be an empty list ({}
).NLJavaDiagnostics[]
. ThejavaVersion
returned should start with "1.8.0", thejavaArchitecture
returned should be "64".