UnsatisfiedLinkError Mac OS by calling simxStart

Typically: "How do I... ", "How can I... " questions
BrainDead
Posts: 6
Joined: 29 May 2013, 12:32

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Post by BrainDead » 31 May 2013, 10:22

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.

bnewman
Posts: 7
Joined: 05 Jul 2013, 19:51

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Post by bnewman » 22 Jul 2013, 18:16

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

coppelia
Site Admin
Posts: 7217
Joined: 14 Dec 2012, 00:25

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Post by coppelia » 22 Jul 2013, 19:29

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

bnewman
Posts: 7
Joined: 05 Jul 2013, 19:51

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Post by bnewman » 23 Jul 2013, 01:59

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.

coppelia
Site Admin
Posts: 7217
Joined: 14 Dec 2012, 00:25

Re: UnsatisfiedLinkError Mac OS by calling simxStart

Post by coppelia » 23 Jul 2013, 13:27

Ooops, you are right, I meant to refer to the file programming/remoteApiSharedLib/remoteApiJava.dylib. Sorry about that.

Cheers

Post Reply