[vtkusers] Binding Java: java.lang.UnsatisfiedLinkError

Leguay Romain romain.leguay at etu.u-bordeaux1.fr
Wed May 26 12:14:24 EDT 2010


Thank you Jeff for your quick answer. I put the Java path to user Path  
because I can't access to System Path. Moreover, I don't have the  
Debug folder in VTKBuild. Unfortunately, the same error exist.
My jdk version is 1.6.20, any incompatibility exists?
Another thing I forgot to mention is the fact to rename Vtk dll to  
remove the "lib" characters (for example libvtkCommonJava.dll ->  
vtkCommonJava.dll). Is this normal?
Thanks,
Romain

Jeff Baumes <jeff.baumes at kitware.com> a écrit :

> I have the following notes for running Java on windows.
>
> When running, add the following to the system PATH:
>
> VTKBuildDir/bin/Debug
> C:/Program Files/Java/jdk1.6.0_13/jre/bin
> C:/Program Files/Java/jdk1.6.0_13/jre/bin/server
>
> HTH,
> Jeff
>
> On Wed, May 26, 2010 at 11:27 AM, Leguay Romain
> <romain.leguay at etu.u-bordeaux1.fr> wrote:
>> It's me again. I have a new error:
>> java.lang.UnsatisfiedLinkError: N:\VTK\bin\vtkCommonJava.dll: Can't find
>> dependent libraries
>>        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
>>        at java.lang.ClassLoader.loadLibrary(Unknown Source)
>>        at java.lang.Runtime.loadLibrary0(Unknown Source)
>>        at java.lang.System.loadLibrary(Unknown Source)
>>        at test.Test.<clinit>(Test.java:15)
>> Exception in thread "main"
>> When I test dependencies of vtkCommonJava.dll, the msjava.dll is missing. I
>> download this dll and add to the path but, unfortunately, the same error
>> appears.
>> I have no idea why Java can't find dependent libraries is anyone have a
>> clue?
>> Thanks,
>> Romain
>>
>>
>> Leguay Romain <romain.leguay at etu.u-bordeaux1.fr> a écrit :
>>
>>> Thanks Benoît for your answer. Here is my CMakeCache.txt
>>> I re-build the library with Code::Blocks Makefile but no changes...
>>> Regards,
>>> Romain LEGUAY
>>>
>>> Thiébault Benoît <dev at artenum.com> a écrit :
>>>
>>>> Hi Romain,
>>>>
>>>> Could you post you CMakeCache.txt file to see what compilation  options
>>>> you have chosen ?
>>>>
>>>> Regards,
>>>>
>>>> Benoît
>>>>
>>>> Le 26 mai 2010 à 09:21, Leguay Romain a écrit :
>>>>
>>>>> Good morning everyone.
>>>>> I am a new user of vtk. For a project, I need to use VTK library in
>>>>>  Java environment and Windows XP professional SP3.
>>>>> I build vtk 5.6 with CMake 2.8 and Mingw Makefile. The compilation
>>>>>  works just fine with no error. I put the bin path to my user PATH.
>>>>> Unfortunately, when I try to execute a sample code in Eclipse 3.5,  I
>>>>> obtain the following message:
>>>>> java.lang.UnsatisfiedLinkError: N:\VTK\bin\vtkCommonJava.dll: Can't
>>>>>  find dependent libraries
>>>>> I verify the path and it's the good one. I try to re-build the  library
>>>>> with MSys but errors appear at 86% (the Java tests).
>>>>> If anyone have some issues please help me.
>>>>>
>>>>> Thanks,
>>>>> Romain LEGUAY
>>>>> <Test.java>_______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>>  http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>>  http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>>
>>>
>>> Romain LEGUAY
>>
>>
>>
>> Romain LEGUAY
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>



Romain LEGUAY




More information about the vtkusers mailing list