You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2022/11/05 03:29:25 UTC

Are the native libraries needed?

I tried to run NB RC-3 from the binary zip on macOS 12.6.1 (Monterey) and got a security notice that it would refuse to load libjnidispatch-nb.jnilib because it was downloaded from the internet and the developer couldn’t be verified.  This appears to be simply because the binaries are not signed for the RC builds.

But I got to wondering what it is for?  The IDE seemed to start up without issues anyway.

I see the following .jnilib files:

~/netbeans/platform/modules/lib/aarch64/libjnidispatch-nb.jnilib
~/netbeans/platform/modules/lib/x86_64/libjnidispatch-nb.jnilib
~/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib
~/netbeans/profiler/lib/deployed/jdk15/mac/libprofilerinterface.jnilib

Am I correct in assuming the JDK 16 profiler interface library works on JDK 17-19 as well?  I see there isn’t a corresponding library for pre JDK 15, and there isn’t anything for aarch64 vs x86_ 64 so I’m not sure what it’s all about (is it a “fat” binary?).

There are also:

~/netbeans/ide/bin/nativeexecution/MacOSX-x86/unbuffer.dylib
~/netbeans/ide/bin/nativeexecution/MacOSX-x86_64/unbuffer.dylib
~/netbeans/ide/modules/lib/aarch64/libjunixsocket-native-2.5.1.dylib
~/netbeans/ide/modules/lib/x86_64/libjunixsocket-native-2.5.1.dylib

I have no idea what they are for. I didn’t get any notice about them not being verified, so I presume they aren’t needed for most tasks.


Regards,

Scott


P.S. >  For anyone else on macOS that isn’t already aware.  The following command will remove the quarantine status:

  xattr -d com.apple.quarantine ~/netbeans/platform/modules/lib/x86_64/libjnidispatch-nb.jnilib            
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Are the native libraries needed?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 5 Nov 2022 at 03:29, Scott Palmer <sw...@gmail.com> wrote:
> I tried to run NB RC-3 from the binary zip on macOS 12.6.1 (Monterey) and got a security notice that it would refuse to load libjnidispatch-nb.jnilib because it was downloaded from the internet and the developer couldn’t be verified.  This appears to be simply because the binaries are not signed for the RC builds.
>
> But I got to wondering what it is for?

Anything that uses JNA to call native libraries in the IDE.

Yes, RC builds are not signed.  Ironically you might also be seeing
this error (or a different error) because JNA library loading was
changed in NB16.

You can see a list of binaries that are signed (as well as JARs with
native libraries that have to be extracted, signed and repackaged) in
the script at https://github.com/apache/netbeans/blob/master/nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh

NBPackage has similar code, but written in Java, to codesign all
relevant files in the IDE or RCP application, along with the bundled
JDK if included.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists