# Processing 4b3 and 4b2 with P2D & P3D in IntelliJ / Eclipse

**URL:** <https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822>\
**Category:** Processing\
**Created:** [January 24, 2022, 3:17pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822 "2022-01-24T15:17:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knut](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knut](https://discourse.processing.org/u/Knut)\
**Post date:** [January 24, 2022, 3:17pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/1 "2022-01-24T15:17:03Z")

</div>

I’ve using Processing with Eclipse / IntelliJ and ported a lot of old projects to Processing & Java 11.

Everything works great with the standard modus i.e size(xDimension, yDimension) but I’ve get an JOGL error whoever involving the P2D or P3D rendering pipeline:

> java.lang.NoClassDefFoundError: com/jogamp/common/type/WriteCloneable

I’ve included the libraries **jogl-all\*.jar** and **gluegen-rt-\*.jar** in the project.  
It does not work with plain Eclipse nor IntelliJ.

---

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [January 24, 2022, 7:26pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/2 "2022-01-24T19:26:22Z")

</div>

Not sure if this is the cause:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a3c58977b2cb2fad7e9c2206c178788af446c700.png)

* * *

Either way, 4.0b4 is working fine for me in Eclipse as a [Maven artifact](https://discourse.processing.org/t/processing-4-core-maven-artifact/27334/11) (the added bonus being you don’t have to worry about sourcing jar dependencies, such as JOGL, yourself).

---

<div class="post-metadata">

**Author:** ![Knut](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knut](https://discourse.processing.org/u/Knut)\
**Post date:** [January 25, 2022, 1:03pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/3 "2022-01-25T13:03:36Z")

</div>

Great!

But I’m using Gradle and somehow did not get the declaration in the build.gradle right:

```auto
repositories {
    mavenCentral()
    maven {
        url "com.github.micycle1"
        artifactUrls "https://github.com/micycle1/processing-core-4"
    }
}

```

---

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [January 25, 2022, 1:06pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/4 "2022-01-25T13:06:39Z")

</div>

#### **Step 1.** Add the JitPack repository to your build file

```auto
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

```

#### **Step 2.** Add the dependency

```auto
dependencies {
        implementation 'com.github.micycle1:processing-core-4:4.0b4'
}

```

---

<div class="post-metadata">

**Author:** ![Knut](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knut](https://discourse.processing.org/u/Knut)\
**Post date:** [January 25, 2022, 1:16pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/5 "2022-01-25T13:16:30Z")

</div>

That works! Great!  
Now I’ve imported all the dependencie!

But now I get a UnsatisfiedLinkError: can’t load library …/natives/macosx-universal//nativewindow\_awt

Gradle imports all **org.jogamp.gluegen:** \*. and **org.jogamp.jogl**

---

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [January 25, 2022, 9:33pm UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/6 "2022-01-25T21:33:43Z")

</div>

It appears to be a problem with the jogl library itself, which is [apparently](https://discourse.processing.org/t/using-processing-in-netbeans-p2d-p3d-library-link-load-error-on-osx/24225/4) fixed in 2.4.0 (a version yet to be officially released).

I’ve just pushed a commit that points the maven project’s JOGL to `2.4.0-rc-20210111`. Try this:

```auto
dependencies {
    implementation 'com.github.micycle1:processing-core-4:e63d5d0d4b'
}

```

---

<div class="post-metadata">

**Author:** ![Knut](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knut](https://discourse.processing.org/u/Knut)\
**Post date:** [January 26, 2022, 10:34am UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822/7 "2022-01-26T10:34:25Z")

</div>

**Thanks for all your efforts and quick help**!!! Once again some stupid questions:

The new artifact ‘processing-core-4:e63d5d0d4b’  
also imports the **java-fx-\*:17.0.2** libraries, but not the **jog-all** and **gluegen-rt-** libraries in version JOGL 2.4.0-rc-.

According to the updated pom.xml the artifact ‘processing-core-4:4.0b4’ should also import all JOGL libraries in the upcoming JOGL 2.4.0-rc-\* version, but it still imports JOGL version 2.3.2.

I’ve tried to import JOGL directly with:  
implementation ‘org.jogamp.jogl:jogl-all:2.4.0-rc-20210111’  
implementation ‘org.jogamp.jogl:jogl-all-main:2.4.0-rc-20210111’  
implementation ‘org.jogamp.gluegen:gluegen-rt:2.4.0-rc-20210111’  
implementation ‘org.jogamp.gluegen:gluegen-rt-main:2.4.0-rc-20210111’

but gradle complains not to find the pom.xml files for the JOGL release candidate 20210111.
