When running jNeuroML, I get the following error:
Error: Could not find or load main class org.neuroml.JNeuroML
How do I fix it?
I was getting the error after reboot, the following makes sure it doesn't happen after a restart.
Under MacOS, run these in Terminal (replace with your path)
export JNML_HOME=/Path/To/jnml/here/
export PATH=$PATH:$JNML_HOME
Under Win7:
My Computer > Right Click > Properties > Advanced System Settings > Environment Variables > Add New JNML_HOME variable, and Append to PATH variable
Under MacOS, run this in terminal:
pico ~/.bash_profile
Paste the above two lines at the end of the file and save with CTRL+X, Y, and ENTER
Under Win7:
If you set them in Advanced System Settings, they will be preserved after reboot automatically.