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 258015 - Generated JNI project can't be launched on Linux with studio tool collection (missed libstatomic)
Summary: Generated JNI project can't be launched on Linux with studio tool collection ...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Mixed Development (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 14:45 UTC by Alexander Simon
Modified: 2016-04-20 15:31 UTC (History)
0 users

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 Alexander Simon 2016-02-16 14:45:23 UTC
Scenario:
- Install Oracle Solaris Studio with Java plug-in
- Create Java project
- Add some JNI native method
- Generate JNI native project (Tools|Mixed Development|Generate JNI Library Project context menu item)
- Run Java project
===>
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
/export/home/hudson/SolStudioProjects/CppJNILibrary_2/dist/Debug/OracleSolaris
Studio-Linux/libCppJNILibrary_2.so which might have disabled stack guard. The
VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c
<libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/export/home/hudson/SolStudioProjects/CppJNILibrary_2/dist/Debug/OracleSolaris
Studio-Linux/libCppJNILibrary_2.so: libstatomic.so.1: cannot open shared
object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at javaapplication3.JavaApplication3.<clinit>(JavaApplication3.java:18)
/var/tmp/sova_ss/var/cache/executor-snippets/run.xml:53: Java returned: 1
Comment 1 Alexander Simon 2016-02-16 14:52:32 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/cf398fd14ace
Comment 2 Quality Engineering 2016-02-17 02:48:46 UTC
Integrated into 'main-silver', will be available in build *201602170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cf398fd14ace
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258015 Generated JNI project can't be launched on Linux with studio tool collection (missed libstatomic)
Comment 3 Vladimir Kvashin 2016-04-15 16:59:46 UTC
verified in builds on enum server
Comment 4 Alexander Pepin 2016-04-20 15:31:40 UTC
Verified in patch from staging UC.