This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206887 - java.lang.UnsatisfiedLinkError: Can't load library: .../netbeans-ee-7.0/glassfish-3.1/glassfish/domains/domain1/my.so
Summary: java.lang.UnsatisfiedLinkError: Can't load library: .../netbeans-ee-7.0/glass...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 02:14 UTC by pl_mit
Modified: 2012-01-12 22:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pl_mit 2012-01-04 02:14:47 UTC
My Java code in NetBeans uses JNI to interface with c code.  Shared objects (*.so) files are needed for the c code.  Code compiles fine in NetBeans.  When I run the code, I get an UnsatisfiedLinkError: Can't load library along with the path it seems to try and load the *.so file from.  A few observations: Not sure why the code is looking in the .../netbeans-ee-7.0/glassfish-3.1/glassfish/domains/domain1/ directory.  As an attempt to resolve the problem, I placed the *.so files in this directory and changed file permissions to rwx.  This did not fix the problem.  It seems that I should be able to explicitely set the location of the *.so files.  I have spent numerous hours unsuccessfully trying to resolve the problem.  I am not sure if it is my configuration or a problem with NetBeans.
Comment 1 Marian Mirilovic 2012-01-04 10:26:31 UTC
I have no idea where this issue belongs to, please feel free to reassign.
Comment 2 pl_mit 2012-01-04 14:37:12 UTC
Additional information:
NetBeans IDE 7.0 (Buid 201104080000)
Java 1.6.0_26; JavaHotSpot 64-bit server VM 20.1-b02
Sytsem is linux version 2.6.18-238.12.1.ei5 running on amd64; UTF-8

Question: During the NetBeans download, did I have to install any additional packages to support accessing .so files?
Comment 3 Antonin Nebuzelsky 2012-01-05 10:12:18 UTC
I doubt this is a problem in NetBeans code.

Reassigning to module system for Jarda to comment.
Comment 4 Jaroslav Tulach 2012-01-12 17:36:52 UTC
I have no idea where this issue belongs either, but it should be investigate first by somebody related to glassfish.