[vtkusers] VTK Java help

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Feb 18 16:27:24 EST 2015


Did you turn ON the JAVA wrapping?

On Wed, Feb 18, 2015 at 2:00 PM, Fatima Zahra El Filali <
felfilali at dons.usfca.edu> wrote:

> I am rebuilding with shared libraries checked. Will let you know if that
> solves the problem.
> Thanks
>
> On Wed, Feb 18, 2015 at 12:24 PM, Fatima Zahra El Filali <
> felfilali at dons.usfca.edu> wrote:
>
>> Here:
>>
>> $ ls ~/vtkSource/VTK
>>
>> Accelerators Common  GUISupport Parallel Views
>>
>> CMake  Copyright.txt Geovis  README.html Web
>>
>> CMakeLists.txt Deprecated IO  Rendering Wrapping
>>
>> CONTRIBUTING.md Domains  Imaging  Testing  vtkBanner.gif
>>
>> CTestConfig.cmake Examples Infovis  ThirdParty vtkLogo.ico
>>
>> Charts  Filters  Interaction Utilities vtkLogo.jpg
>>
>> On Wed, Feb 18, 2015 at 12:15 PM, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com> wrote:
>>
>>> Were is VTK?
>>>
>>> On Wed, Feb 18, 2015 at 12:12 PM, Fatima Zahra El Filali <
>>> felfilali at dons.usfca.edu> wrote:
>>>
>>>> Hey Seb,
>>>>
>>>> Thanks for your response. That is how I have the env var set but I
>>>> still get:
>>>>
>>>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
>>>> vtkCommonJava in java.library.path
>>>>
>>>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1878)
>>>>
>>>> at java.lang.Runtime.loadLibrary0(Runtime.java:849)
>>>>
>>>> at java.lang.System.loadLibrary(System.java:1087)
>>>>
>>>> at VTKSample.<clinit>(VTKSample.java:19)
>>>>
>>>> Those 2 dirs have the following in them:
>>>>
>>>> $ ls /usr/local/natives-Darwin-x86_64 | grep -i dylib
>>>>
>>>> libcdt.5.dylib
>>>>
>>>> libcgraph.6.dylib
>>>>
>>>> libgvc.6.dylib
>>>>
>>>> libgvpr.2.dylib
>>>>
>>>> libhtp-0.2.1.dylib
>>>>
>>>> libpathplan.4.dylib
>>>>
>>>> libxdot.4.dylib
>>>>
>>>> ls /usr/local/natives-Darwin-x86_64/graphviz/ | grep -i dylib
>>>>
>>>> libgvplugin_core.6.dylib
>>>>
>>>> libgvplugin_core.dylib
>>>>
>>>> libgvplugin_dot_layout.6.dylib
>>>>
>>>> libgvplugin_dot_layout.dylib
>>>>
>>>> libgvplugin_neato_layout.6.dylib
>>>>
>>>> libgvplugin_neato_layout.dylib
>>>>
>>>> libgvplugin_pango.6.dylib
>>>>
>>>> libgvplugin_pango.dylib
>>>>
>>>> libgvplugin_quartz.6.dylib
>>>>
>>>> libgvplugin_quartz.dylib
>>>>
>>>> libgvplugin_xlib.6.dylib
>>>>
>>>> libgvplugin_xlib.dylib
>>>>
>>>>
>>>> So there is no mention of vtkCommonJava, even when I do a search for it
>>>> in my filesystem.
>>>>
>>>> Fatima
>>>>
>>>> On Wed, Feb 18, 2015 at 10:27 AM, Sebastien Jourdain <
>>>> sebastien.jourdain at kitware.com> wrote:
>>>>
>>>>> Not sure to know where all your VTK dylibs files.
>>>>>
>>>>> But you can do something like that
>>>>>
>>>>> DYLD_LIBRARY_PATH=/usr/local/natives-Darwin-x86_64:/usr/local/
>>>>> natives-Darwin-x86_64/graphviz
>>>>>
>>>>> On Tue, Feb 17, 2015 at 6:47 PM, Fatima Zahra El Filali <
>>>>> felfilali at dons.usfca.edu> wrote:
>>>>>
>>>>>> Hey Seb,
>>>>>>
>>>>>> Thanks for the links.
>>>>>>
>>>>>> I am trying to run the cone example from the link you sent me.
>>>>>>
>>>>>> I set my env var to:
>>>>>> DYLD_LIBRARY_PATH=/usr/local/natives-Darwin-x86_64/graphviz/
>>>>>>
>>>>>> also tried it with :
>>>>>> DYLD_LIBRARY_PATH=/usr/local/natives-Darwin-x86_64/
>>>>>>
>>>>>>
>>>>>> Since my find */dylib returned filed in both directories.
>>>>>>
>>>>>>
>>>>>> However when I run the program I get the following exception:
>>>>>>
>>>>>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>>>>>> vtk.vtkRenderWindow.VTKInit()J
>>>>>>
>>>>>> at vtk.vtkRenderWindow.VTKInit(Native Method)
>>>>>>
>>>>>> at vtk.vtkObjectBase.<init>(vtkObjectBase.java:43)
>>>>>>
>>>>>> at vtk.vtkObject.<init>(vtkObject.java:94)
>>>>>>
>>>>>> at vtk.vtkWindow.<init>(vtkWindow.java:182)
>>>>>>
>>>>>> at vtk.vtkRenderWindow.<init>(vtkRenderWindow.java:602)
>>>>>>
>>>>>> at vtk.vtkPanel.<init>(vtkPanel.java:27)
>>>>>>
>>>>>>  at VTKSample.main(VTKSample.java:22)
>>>>>>
>>>>>>
>>>>>> Any ideas? I have a feeling its the env var that is not right but
>>>>>> there are no other locations that contain the vtk dylib files.
>>>>>>
>>>>>>
>>>>>> Thanks again
>>>>>>
>>>>>> Fatima
>>>>>>
>>>>>>
>>>>>> On Thu, Feb 12, 2015 at 7:41 AM, Sebastien Jourdain <
>>>>>> sebastien.jourdain at kitware.com> wrote:
>>>>>>
>>>>>>> Hi Fatima,
>>>>>>>
>>>>>>> Please keep the mailing list in the loop.
>>>>>>>
>>>>>>> Ok so I guess your OS is OS X and not iOS.
>>>>>>> This link is a bit old and outdated but it should give you some
>>>>>>> hints on how to setup your Eclipse.
>>>>>>>
>>>>>>>
>>>>>>> http://dev.artenum.com/projects/cassandra/forum/how-to-use-eclipse-and-vtk
>>>>>>>
>>>>>>> So remember to set DYLD_LIBRARY_PATH instead of PATH.
>>>>>>>
>>>>>>> You can also download the binaries from our dashboard here:
>>>>>>>
>>>>>>> https://open.cdash.org/viewFiles.php?buildid=3689913
>>>>>>>
>>>>>>> Don't forget to unzip the native jar file.
>>>>>>>
>>>>>>> On a side note, you will have to use JOGL as a dependency for
>>>>>>> rendering. You may find some mention on that in the mailing list archive.
>>>>>>>
>>>>>>> Seb
>>>>>>>
>>>>>>> On Wed, Feb 11, 2015 at 8:25 PM, Fatima Zahra El Filali <
>>>>>>> felfilali at dons.usfca.edu> wrote:
>>>>>>>
>>>>>>>> Hello Seb,
>>>>>>>> I basically installed cmake, used it to generate make files, run
>>>>>>>> make and make install. My OS is iOS. Ideally I would like to run my code on
>>>>>>>> Eclipse, but I dont mind vi-ing and running java on command line.
>>>>>>>> The thing is I don't know where to start at this point. All I want
>>>>>>>> to do is run some of the examples that came with vtk so that I can learn
>>>>>>>> from them and write my own.
>>>>>>>> Thanks so much for your help.
>>>>>>>> Fatima
>>>>>>>>
>>>>>>>> On Wed, Feb 11, 2015 at 5:59 PM, Sebastien Jourdain <
>>>>>>>> sebastien.jourdain at kitware.com> wrote:
>>>>>>>>
>>>>>>>>> Depending on your OS, you will have to set a system variable with
>>>>>>>>> the path of the directory that contains the VTK library, before launching
>>>>>>>>> your application.
>>>>>>>>>
>>>>>>>>> Windows: set PATH=%PATH%;c:\[path-to-vtk-which-contains-*.dll]
>>>>>>>>> Linux: export LD_LIBRARY_PATH=[path-to-vtk-which-contains-*.so]
>>>>>>>>> OS
>>>>>>>>> X: export DYLD_LIBRARY_PATH =[path-to-vtk-which-contains-*.dylib]
>>>>>>>>>
>>>>>>>>> For more help, you will need to explain more your actions and what
>>>>>>>>> was the error.
>>>>>>>>>
>>>>>>>>> Seb
>>>>>>>>>
>>>>>>>>> On Wed, Feb 11, 2015 at 2:46 PM, Fatima Zahra El Filali <
>>>>>>>>> felfilali at dons.usfca.edu> wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>> I was able to install vtk with the Examples but I am having
>>>>>>>>>> trouble running them.
>>>>>>>>>> I am very new to vtk but comfortable with Java.
>>>>>>>>>> Any how-tos you can direct me to?
>>>>>>>>>> Thanks
>>>>>>>>>> Fatima
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>> Search the list archives at:
>>>>>>>>>> http://markmail.org/search/?q=vtkusers
>>>>>>>>>>
>>>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150218/c8a5047d/attachment.html>


More information about the vtkusers mailing list