Why do I get an UnsatisfiedLinkError when running the 4.2e+ Java libraries on Windows?
Note: Applies to RTI Data Distribution Service 4.2 and later
The error observed may be similar to the following:
The library nddsjavad.dll could not be loaded on Windows. Make sure that the library is in your Path environment variable. Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\rti\ndds.4.3e\lib\i86Win32jdk\nddsjavad.dll: This application has failed to start
The Java libraries included with RTI Data Distribution Service 4.2 and later require that you have the Visual C++ 2005 SP1 libraries. If you have Visual C++ 2005, you can install Service Pack 1 to get those libraries. If you don't, you can install the Visual C++ SP1 Redistribution Package from RTI's Self-Service Portal. The file, vcredist_x86.exe (for 32 bit architectures) or vcredist_x64.exe (for 64 bit architectures), is available in the Downloads section, under Windows Target Libraries for RTI Data Distribution Service 4.2e.
You can also download the package from Microsoft's website:
For VS2005:
- For x86 architectures: http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
- For x64 architectures: http://www.microsoft.com/downloads/details.aspx?FamilyID=EB4EBE2D-33C0-4A47-9DD4-B9A6D7BD44DA&displaylang=en
For VS2008:
- For x86 architectures: http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
- For x64 architectures: http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en
Note: The above links are also provided in the RTI Data Distribution Service Release Notes.
If you want to build against the Java debug libraries, you need to have Visual C++ 2005 SP1 (or Visual Studio 2005 SP1) installed on your system. RTI is unable to redistribute the debug version of the Microsoft libraries.
Comments
clementsrv
Mon, 03/04/2013 - 10:09
Permalink
WIN 7 Compatibility with RTIDDS 4.2e
I know that applications created using RTIDDS Version 4.2e will run on a Windows XP platform. Will a RTIDDS Version 4.2e application run on a Windows 7 platform as well, or is there another RTIDDS version that must be used for Windwows 7?