[vtkusers] Binding Java: java.lang.UnsatisfiedLinkError
Thiébault Benoît
dev at artenum.com
Mon May 31 03:59:49 EDT 2010
Hi everyone,
Romain, did you finally manage to compile VTK with Visual Studio Express ?
I did it successfully but end up with a problem : the compiled VTK only works on Windows machines where Visual Studio Express is installed...
I had a look at this old post on the mailing list, but it did not help : http://www.vtk.org/pipermail/vtkusers/2009-May/101097.html
The dependency walker does not mention this cc3280.dll file and the only problem I have seems to be linked with mpr.dll (which misses itself in the import... great chicken-egg problem)...
Can anyone help on this ?
Le 27 mai 2010 à 12:15, Leguay Romain a écrit :
> Thanks to your answers, but unfortunately I can't install Visual Studio Express (my admin is not available for now). I'll test this tomorrow.
> Thanks again,
> Romain
>
> Thiébault Benoît <dev at artenum.com> a écrit :
>
>> I have the same problem here with MinGW. Got rid (manually...) or the lib prefix and same error loading the library.
>> Installing Visual Studio requires .NET framework, and I had a lot of problems installing it (had to reinstall windows... great... I love this OS...).
>> So MinGW would be a preferable solution... If only it worked...
>>
>> Le 26 mai 2010 à 18:41, Jeff Baumes a écrit :
>>
>>> Dependency walker can be a big help in tracking down these types of issues.
>>>
>>> I know you probably don't want to compile VTK yet again, but you could
>>> also try Visual Studio Express (the free version). Visual Studio is
>>> the most tested method of building VTK on Windows.
>>>
>>> Jeff
>>>
>>> On Wed, May 26, 2010 at 12:14 PM, Leguay Romain
>>> <romain.leguay at etu.u-bordeaux1.fr> wrote:
>>>> 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
>>>>
>>>>
>>> _______________________________________________
>>> 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
>>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list