Skip to content

Setting English as the default language when running NetLogo

Nicolas Payette edited this page May 16, 2013 · 1 revision

Having your system configured for a language other than English can sometimes cause problems with NetLogo (see, for example, this issue with the Turkish language). In such cases, it may help to explicitly tell NetLogo to behave as if English was the default language. The way to do this varies slightly from platform to platform, but always comes down to running the Java Virtual Machine with the -Duser.language=en option:

Under Linux

Edit the netlogo.sh file in your NetLogo folder and replace the line:

java -Djava.library.path=./lib -Djava.ext.dirs= -XX:MaxPermSize=128m -Xmx1024m -Dfile.encoding=UTF-8 -jar NetLogo.jar "$@"

with:

java -Djava.library.path=./lib -Djava.ext.dirs= -XX:MaxPermSize=128m -Xmx1024m -Dfile.encoding=UTF-8 -Duser.language=en -jar NetLogo.jar "$@"

Under Windows

Edit the NetLogo 5.0.4.vmoptions file in your NetLogo folder and add the following option:

-Duser.language=en

Under MacOS X

Edit the Contents/Info.plist file in the NetLogo application package. (You can reach this file by control-clicking the application in the Finder and choosing "Show Package Contents" from the popup menu.) The relevant section is this:

<key>VMOptions</key>
<string>-XX:MaxPermSize=128m -Xmx1024m</string>

You should replace the second line by

<string>-XX:MaxPermSize=128m -Xmx1024m -Duser.language=en</string>
Clone this wiki locally