[vtkusers] [EXTERNAL] Re: System.loadLibray() in 6.2

David Gobbi david.gobbi at gmail.com
Fri Mar 13 12:10:04 EDT 2015


I'm not sure if this is related, but I remember having to be selective about
which java libraries were loaded, because if I tried to load them all it
would fail.
The code that I used to load the libraries is here:
https://github.com/dgobbi/vtk-dicom/blob/master/Testing/TestDICOMJava.java.in

 - David

On Fri, Mar 13, 2015 at 9:30 AM, Gerrick Bivins <
Gerrick.Bivins at halliburton.com> wrote:

>  I also noticed something strange about this when trying to install VTK
> 6.2 on Ubuntu.
>
> The natives didn't load properly.
>
> I had to resort to setting environment variables...
>
> L
>
> This was on my personal machine which, I don't have access to at the
> moment.
>
> Gerrick
>
>
>
> *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Sebastien
> Jourdain
> *Sent:* Friday, March 13, 2015 9:06 AM
> *To:* -Daniel-
> *Cc:* vtkusers
> *Subject:* [EXTERNAL] Re: [vtkusers] System.loadLibray() in 6.2
>
>
>
> Hum interesting,
>
>
>
> I'm wondering what are the differences in names between your System.loadLibrary(..)
> calls and the one listed in vtkNativeLibrary.
>
>
>
> I'm wondering if it is specific to windows?
>
>
>
> Do you mind sharing your list of System.loadLibrary(..) and what you have
> for
>
>
>
> for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {
>
>     System.out.println(lib.GetLibraryName());
>
>  }
>
>
>
> Those should match...
>
>
>
> Thanks,
>
>
>
> Seb
>
>
>
> On Fri, Mar 13, 2015 at 4:02 AM, -Daniel- <ich_daniel at habmalnefrage.de>
> wrote:
>
> If I use your hint, I get the following error message:
> java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         ..
> java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in
> java.library.path
>         ..
> and so on.
>
> But I use System.loadLibrary(..) over all DLLs, then all libraries be
> loaded.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150313/7d5f9491/attachment.html>


More information about the vtkusers mailing list