Pinned topic Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path
I am trying to make an application using Eclipse.
Library of rhapsody.jar is included into the buildpath (Eclipse->properties->buildpath->library)and rhapsody.dll is set as classpath of window.
After exporting all the script into runnable .jar and i tried to run the exported runnable .jar
It didn't work and show Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path in cmd.
Does anyone have helpful tips for me, e.g. what is the cause of this problem?
Thank you very much.
MerlinUK 270001F2TU164 Posts
Re: Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path2012-10-09T10:17:47ZThis is the accepted answer. This is the accepted answer.Most likely you arent including the classpath when you run it. How are you building the JAR ? you need to ensure the manifest contains the correct paths
Also see here:
SystemAdmin 110000D4XK1305 Posts
Re: Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path2012-10-09T15:32:36ZThis is the accepted answer. This is the accepted answer.Hello lecping,
Did you export the jar file as Runnable JAR file?
When launching the jar file, did you set -Djava.library.path with Rhapsody_installation_directory\Share\JavaAPI and add in classpath Rhapsody_installation_dir\Share\JavaAPI\rhapsody.jar?
I mean something like this:
d:\>java -Djava.library.path=c:\LegacyApp\Rhapsody_7612\Share\JavaAPI -classpath
.;c:\LegacyApp\Rhapsody_7612\Share\JavaAPI -jar runnable.jar
Re: Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path2012-10-15T11:40:44ZThis is the accepted answer. This is the accepted answer.
- MerlinUK 270001F2TU
Thanks a lot for the tips! I exported Runnable .jar file with an automatically created manifest file. I thought that the library must be included in window environment. So i did add another classpath directed to rhapsody.dll in window environment.
It still didn't work when i was trying to compile it using cmd.
After i called javaw as command and included classpath and library into the .hep file. It did work now.
Re: Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path2012-10-15T11:43:20ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
I see, I added another classpath in window enviroment directed to Rhapsody.dll and wrote System.load("rhapsody") in the main class of my runnable .jar.
Then i added classpath as stated by you in the .hep file. Now it works.
Thanks a lot!
jerejosh 2700032NXV1 Post
Re: Java.lang.UnsatisfiedLinkError no rhapsody in java.library.path2017-06-23T10:35:31ZThis is the accepted answer. This is the accepted answer.
I am trying to create a Rhapsody plugin ( Rhapsody version 8.1.5) and the Java version : \Java\jre1.8.0_131 .
When i try to run the application in Eclipse i am getting the below error can anyone help me in this regard .
I am getting the below message .
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rhapsody in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.telelogic.rhapsody.core.RhapsodyAppServer.<clinit>(Unknown Source)