Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Calling openmodelica from java

Calling openmodelica from java

hi all

I have GUI in java  and input some parameter example (a) .I want  process in openmodelica example(ODE :

Code:

 der(x) = ax

)and show result  back java.

Plz give me  solution.

thanhks

Re: Calling openmodelica from java

You could either use the Java interface (modelica_java.jar, distributed with OpenModelica). There are examples on how to use it in the testsuite:
http://openmodelica.org/svn/OpenModelic … uite/java/

Else you could connect directly using CORBA (since the java interface doesn't contain special functions for simulate(), etc anyway). There is an example on how to do that in the testsuite (which modelica_java.jar is based on):
http://openmodelica.org/svn/OpenModelic … _advanced/

Re: Calling openmodelica from java

We also have a Java-Corba client as an Eclipse project that you can use to connect to OMC:
http://www.ida.liu.se/~adrpo/omc/corba/_java/

Cheers,
Adrian Pop/

Re: Calling openmodelica from java

How can i use open modellica with eclipse.I have installed plugin.Please tell me steps to run any simple application

Re: Calling openmodelica from java

Hi, all
I'm a newbie member , i can not access those link up on . Please give me help, i can not verify username and password .

Re: Calling openmodelica from java

nhuytan wrote:

i can not verify username and password .

http://www.openmodelica.org/index.php/d … ource-code

Re: Calling openmodelica from java

Do you konw  how to achieve it in C#? Thank you.

Re: Calling openmodelica from java

I see,

These links are broken...

Cheers!

Re: Calling openmodelica from java

adrpo wrote:

We also have a Java-Corba client as an Eclipse project that you can use to connect to OMC:
http://www.ida.liu.se/~adrpo/omc/corba/_java/

Cheers,
Adrian Pop/

I see,

Adrian, is there any example or guide on how to use it?

Cheers!

There are 0 guests and 0 other users also viewing this topic
You are here: