APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

ejs and matlab post and replies

Return to the ejs and matlab thread
Login to post to this thread

can not connect with matlb
Juan Valdiviezo
1 Posts

I have tried to connect with matlab from EJS but appears the next error:
C:\ejs\Simulations>"C:\Archivos de programa\Java\jdk1.7.0_11\jre\bin\java" -jar matlabExample1.jar
ERROR: Could not load the JMatLink library. This error occures, if the path to
       matlab's \bin directory is not set properly.
       Or if JMatLink.dll (for Windows) or  libJMatlink.jnilib (for MacOSX) is not
       in the right directory!
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: JMatLink.engOpenSingleUseNATIVE(Ljava/lang/String;)I
at JMatLink.engOpenSingleUseNATIVE(Native Method)
at JMatLink.run(JMatLink.java:875)
at java.lang.Thread.run(Thread.java:722)

I want to know how to resolve this problem... thanks


Replies to can not connect with matlb

Re: can not connect with matlb -
Francisco Esquembre
237 Posts

EJS does not support the connection to Matlab in its current release. This is only valid if you use an old release of EJS. Too old to be maintained.

There are people who have developed an experimental Model element that connects to Matlab. But this element is not ready for release.

You may need to wait a bit more. There is a current group working on creating a stable model element for this.

Paco



Re: can not connect with matlb -
Milos Chovanec
4 Posts

I had a same problem and i resolved it by using older version of matlab (6.5)
also i thing it doesnt work on win 7, i must installed virtual machine with win xp

now its working perfectly



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book