Prev: Creating Simulink blocks from M-file
Next: matlab - Warning: Infinite or Not-a-Number function valueencountered.
From: Stuart on 31 Mar 2010 12:15 I'm having this same problem while trying to run JMatLink under R2009b. But, the help provided here isn't working for me or I'm not understaning correctly. I've edited my Windows path environment variable to contain 'C:\Program Files\MATLAB\R2009b\bin;C:\Program Files\MATLAB\R2009b\bin\win32;C:\Program Files\MATLAB\R2009b\runtime\win32'. But, the unit tests in JMatLink still fail when System.loadLibrary("JMatLink") is called in CoreJMatLink.java. Something is keeping the DLL from being found or from running. I even put the DLL into \Windows\System32 just to make sure it's in a location that Windows can see and still nothing. Any ideas that anyone can suggest?! "Tuomo " <tuomo.salonenPOISTA(a)patria.fi> wrote in message <hkh50o$q4c$1(a)fred.mathworks.com>... > Thanks! Adding the lines below to the PATH fixed the problem. Now my java-application works and there was no need to re-compile the java-code. > > "Aaron " <aaron.masino(a)mza.com> wrote in message <hjcj21$q7d$1(a)fred.mathworks.com>... > > You may need to fix your environment variables. When I installed R200b, it removed the %MATLAB%\bin\win32 entry from my PATH variable. The JMatLink .dll requires this and %MATLAB%\bin be on your path. (%MATLAB% is your Matlab installation directory, typically C:\Program Files\MATLAB\R2009b)
From: Stuart on 31 Mar 2010 14:50
A coworker figured it out. For me, it was just an Eclipse issue. If you're using Eclipse ot work with JMatLink, get rid of the default \bin directory that Eclipse likes to build to and use \jmatlink instead. "Stuart " <sbowman(a)mitre.org> wrote in message <hovseo$rv4$1(a)fred.mathworks.com>... > I'm having this same problem while trying to run JMatLink under R2009b. But, the help provided here isn't working for me or I'm not understaning correctly. > > I've edited my Windows path environment variable to contain 'C:\Program Files\MATLAB\R2009b\bin;C:\Program Files\MATLAB\R2009b\bin\win32;C:\Program Files\MATLAB\R2009b\runtime\win32'. But, the unit tests in JMatLink still fail when System.loadLibrary("JMatLink") is called in CoreJMatLink.java. Something is keeping the DLL from being found or from running. I even put the DLL into \Windows\System32 just to make sure it's in a location that Windows can see and still nothing. > > Any ideas that anyone can suggest?! > |