[vtkusers] System.loadlibrary("vtkRenderingJava") failed in Glassfish web server

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Dec 9 11:23:27 EST 2014


Yes, you need to add in you LD_LIBRARY_PATH the path to your JVM ...awt.so.
And make sure a DISPLAY is available if you want to perform some rendering.

Seb

On Tue, Dec 9, 2014 at 12:02 AM, Emptystack <wulihouxiaoshuai at 163.com>
wrote:

> I deployed a dynamic web project into glassfish web server, and the
> following
> code is for loading shared libraries.
>
> static {
>         try {
>             System.loadLibrary("vtkCommonJava");
>             System.loadLibrary("vtkFilteringJava");
>             System.loadLibrary("vtkIOJava");
>             System.loadLibrary("vtkImagingJava");
>             System.loadLibrary("vtkGraphicsJava");
>             System.loadLibrary("vtkRenderingJava");
>         } catch (UnsatisfiedLinkError er) {
>             System.out.println("Library Not Found");
>         }
>
>
>  when I run  this project on web server, only
> System.loadLibrary("vtkRenderingJava") failed but the others succeed. And
> the error occured: java.lang.UnsatisfiedLinkError:
> /usr/lib/libvtkRenderingJava.so:
> /opt/java/jdk1.7.0_60/jre/lib/i386/libjawt.so: symbol awt_Unlock, version
> SUNWprivate_1.1 not defined in file libmawt.so with link time reference.
>
>  Has someone ever encountered this problem  ? Can you give me some
> suggestions?
>
> Best wishes!
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/System-loadlibrary-vtkRenderingJava-failed-in-Glassfish-web-server-tp5729718.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141209/045c3e66/attachment.html>


More information about the vtkusers mailing list