# Using processing in netbeans P2D/P3D library link/load error on OSX

**URL:** <https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225>\
**Category:** Development\
**Created:** [September 29, 2020, 2:55pm UTC](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225 "2020-09-29T14:55:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mala](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mala](https://discourse.processing.org/u/mala)\
**Post date:** [September 29, 2020, 2:55pm UTC](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225/1 "2020-09-29T14:55:48Z")

</div>

I have built a library in netbeans that uses processing core.jar and jogl & gluegen jars.  
If I export the lib and then use it within processing (i.e import it to processing and ref classes) a simple test sketch will run fine with no errors at all.

If on the other hand, I try to create a simple test “sketch” within netbeans with a main() and settings() or setup() any use of P3D or P2D and I will get the following error :  
`java.lang.UnsatisfiedLinkError: Can't load library: /Test/natives/macosx-universal//nativewindow_awt`

If I don’t use P2D or P3D this will run fine in netbeans… unfortunately I need both P2D and P3D.

Does anyone have any ideas on this jogl problem ?  
I have only found one similar forum question that reported the same error when run from within the processing IDE not netbeans and the given solution there does not fix my problem.

Thank you in advance for any suggestions.

---

<div class="post-metadata">

**Author:** ![mala](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mala](https://discourse.processing.org/u/mala)\
**Post date:** [October 29, 2020, 1:18pm UTC](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225/2 "2020-10-29T13:18:48Z")

</div>

Just in case anyone else has struggled with this… it turned out to be an issue with the JOGl libraries I had brought over from Processing to netbeans and how I had installed them.

Once I downloaded the libraries direct from jogAmp and follwed this tutorial to install them

> **[JOGL - Installation - Tutorialspoint](https://www.tutorialspoint.com/jogl/jogl_installation.htm)**

everything is working fine when running my sketches in netbeans now 👍

---

<div class="post-metadata">

**Author:** ![prokophapala](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@prokophapala](https://discourse.processing.org/u/prokophapala)\
**Post date:** [February 4, 2021, 2:43pm UTC](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225/3 "2021-02-04T14:43:44Z")

</div>

Hi, I tried download JOGL and gluegen from jogAmp according to the tutorial  
`JOGL - Installation - Tutorialspoint 1`

but I still get the same error message:  
(using Netbeans 11 and OpenJDK 11 on Ubuntu 18.04)

> WARNING: An illegal reflective access operation has occurred  
> WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/home/prokop/SW/JOGL/jogamp-all-platforms/jar/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)  
> WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3  
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
> WARNING: All illegal access operations will be denied in a future release  
> Inconsistency detected by ld.so: dl-lookup.c: 111: check\_match: Assertion `version-\>filename == NULL || ! \_dl\_name\_match\_p (version-\>filename, map)’ failed!  
> /home/prokop/.cache/netbeans/11.1/executor-snippets/run.xml:111: The following error occurred while executing this line:  
> /home/prokop/.cache/netbeans/11.1/executor-snippets/run.xml:68: Java returned: 127  
> BUILD FAILED (total time: 0 seconds)

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [February 14, 2021, 10:25am UTC](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225/4 "2021-02-14T10:25:21Z")

</div>

This problem is fixed in pre-release version of [jogl](https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20210111/jar/).
