Page 2 of 2

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Posted: 31 May 2013, 10:22
by BrainDead
Here is a helpful link to understand the problem using eclipse:

http://mindprod.com/jgloss/runerrormess ... DLINKERROR

Put your sources into dafault package or make the *.h fully qualified.

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Posted: 22 Jul 2013, 18:16
by bnewman
After Upgrading to 3.0.4, on OSX I have started to receive this error again. I did a make clean and remake on remoteApiSharedLibJava_Makefile, but still receive the error.

Code: Select all

Exception in thread "main" java.lang.UnsatisfiedLinkError: coppelia.remoteApi.simxStart(Ljava/lang/String;IZZII)I
	at coppelia.remoteApi.simxStart(Native Method)
	at simpleTest.<init>(simpleTest.java:62)
	at simpleTest.main(simpleTest.java:213)
Is it possible the libremoteApiJava.dylib needs to be updated? The last one I have is from the zip file I found here.

These files are located in my java path.
  • libremoteApiJava
    remoteApi
    remoteApiJava
What could be causing this issue?

Billy

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Posted: 22 Jul 2013, 19:29
by coppelia
Hello Billy,

Are you sure the folder coppelia is also in the search path of Java? Since V-REP 3.0.4 all the functions are packaged inside coppelia.
Is the example application programming/Java/simpleTest.java working?

And make sure to use the libRemoteApiJava.dylib that comes with the last V-REP release (V3.0.4)
Cheers

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Posted: 23 Jul 2013, 01:59
by bnewman
Sorry for the hassle, but I am unable to find libRemoteApiJava.dylib in any of the program/directories associated with VREP. When I make remoteApiSharedLibJava_Makefile, it only produces remoteApiJava.dylib.

simpleTest.java does not run, although I did run before upgrading.

Billy

I was able to get it working by renaming remoteApiJava.dylib to libremoteApiJava.dylib

Thank you for your help.

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Posted: 23 Jul 2013, 13:27
by coppelia
Ooops, you are right, I meant to refer to the file programming/remoteApiSharedLib/remoteApiJava.dylib. Sorry about that.

Cheers