Linux: Included Java Missing

34 views
Skip to first unread message

Nicholas Von Wolff

unread,
Apr 19, 2021, 3:10:56 PM4/19/21
to netlogo-users
Hi All,

I'm trying to use NetLogo headless but I cannot find the included java binary to run the headless script with.  It keeps defaulting to the system installed java instead.  The system installed java does not include JavaFX or OpenJFX (not sure if that is an issue).  For consistency I was hoping to use the Java the the NetLogo/NetLogo3d use.

Any suggestions?

jeremy...@northwestern.edu

unread,
Apr 19, 2021, 3:44:22 PM4/19/21
to netlogo-users
Hey Nicholas,

The `netlogo-headless.sh` script expects to use your system Java, so you can install whichever one you want to run with NetLogo and it'll use it if `JAVA_HOME` is set to that path.  

If you want to use the Java that NetLogo comes bundled with in order to run NetLogo headlessly, that is possible on Linux, it just requires a small workaround.  See the directions for it on this issue on GitHub:  https://github.com/NetLogo/NetLogo/issues/1909#issuecomment-808119615

I hope that helps.

-Jeremy

Reply all
Reply to author
Forward
0 new messages