- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OPENMODELICALIBRARY cannot be not set
OPENMODELICALIBRARY cannot be not set
OPENMODELICALIBRARY cannot be not set
Hi, I am trying out the JavaCORBA code from: http://www.ida.liu.se/~adrpo/omc/corba/_java/
But I cannot run loadModel(Modelica). When I did checkSettings(), it turns out that OPENMODELICALIBRARY=" " is set always.
I tried to change from shell to export OPENMODELICALIBRARY, but when I run it, it is still like that. I tried to override the system environment using Eclipse environment, but it still set as " ".
I can run the loadModel(Modelica) from OMShell and OMShell-terminal. But If I run java org.modelica.Main, it is again set as " ".
I am using Ubuntu 10.10, and install using repository nightly build. Please help to advise. Thanks.
Re: OPENMODELICALIBRARY cannot be not set
Your eclipse might be setting an environment variable in its project settings.
However, if you have problems finding out where, you can always use:
Code:
>>> setEnvironmentVar("abc","def")
Ok
>>> getEnvironmentVar("abc")
def
The output of these API calls seems to be bad (should be true and "def"), but it works.
- sjoelund.se
- 1700 Posts
Re: OPENMODELICALIBRARY cannot be not set
Thanks, that works. btw, I don't think it's my eclipse setting, I have tried to run from terminal by typing java classname but it still cannot set the environment. Your method works by calling setEnvirontmentVar.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OPENMODELICALIBRARY cannot be not set