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 - Jan 31, 2013 at 9:06AM
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)

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

Replies to can not connect with matlb

Re: can not connect with matlb - Jan 31 2013 12:57PM
Francisco Esquembre
222 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.


Re: can not connect with matlb - Mar 11 2013 5:49PM
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

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics