# Gluegen\_rt.dll: Can't find dependent libraries

**URL:** https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971
**Category:** Processing
**Created:** [October 21, 2021, 12:29am UTC](https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971 "2021-10-21T00:29:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [October 21, 2021, 12:29am UTC](https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971/1 "2021-10-21T00:29:08Z")

</div>

I am trying to run some code someone gave me as an answer for a question, and I got the error attached at the end.

When I search for the line in the subject in Google, I find answers that I am trying to run 32bit code on a 64bit system,  
but I am running processing 64bit,

So, what am I missing?

Enclosed the code I’m trying to run (the full error message will follow)

````auto
String letters;
float defaultWidth, spread;
int layers, fontSize, scaleFactor;
int[] shadePalette;

void setup() {
  size(800, 600, P2D);
  fontSize = 100;
  scaleFactor = 10;
  textSize(fontSize);
  textAlign(CENTER, CENTER);
  letters = "TODAY";
  defaultWidth = textWidth(letters);
  spread = defaultWidth / letters.length();
  layers = 10;
  shadePalette = new int[layers];
  for(int i = 0; i < layers; i++) {
    //shadePalette[i] = 255 - (255 / (i + 1));
    shadePalette[i] = int(random(255));
  }
}

void draw() {
  background(0);
  int i, j;
  
  for(i = 0; i < layers; i++) {
    fill(shadePalette[i]);
    textSize(fontSize - i * 4);
    for(j = 0; j < letters.length(); j++) {
      char c = letters.charAt(j);
      text(c, (width / 2 - defaultWidth / 2) + (j * (fontSize - j * 4)), height / 2 + i);      
    }
  }
}```

java.lang.UnsatisfiedLinkError: C:\Users\xxx\AppData\Local\Temp\jogamp_0000\file_cache\jln6779727096167205046\jln3915802315287895082\natives\windows-amd64\gluegen_rt.dll: Can't find dependent libraries
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1837)
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:604)
	at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
	at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
	at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
	at com.jogamp.common.os.Platform$1.run(Platform.java:321)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
	at com.jogamp.nativewindow.NativeWindowFactory$1.run(NativeWindowFactory.java:239)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:236)
	at com.jogamp.newt.NewtFactory$1.run(NewtFactory.java:69)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.newt.NewtFactory.<clinit>(NewtFactory.java:66)
	at processing.opengl.PSurfaceJOGL.initIcons(PSurfaceJOGL.java:544)
	at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:211)
	at processing.core.PApplet.initSurface(PApplet.java:10421)
	at processing.core.PApplet.runSketch(PApplet.java:10329)
	at processing.core.PApplet.main(PApplet.java:10083)
A library relies on native code that's not available.
UnsatisfiedLinkError: C:\Users\xxx\AppData\Local\Temp\jogamp_0000\file_cache\jln6779727096167205046\jln3915802315287895082\natives\windows-amd64\gluegen_rt.dll: Can't find dependent librariesOr only works properly when the sketch is run as a 32-bit application.
````

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [October 21, 2021, 12:55am UTC](https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971/2 "2021-10-21T00:55:57Z")

</div>

Have you tried size(800, 600) without P2D? For whatever it’s worth, it runs ok on a Mac if I leave off the P2D. Supposedly fixed in P4.

---

<div class="post-metadata">

### Author: ![robertesler](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@robertesler](https://discourse.processing.org/u/robertesler)
#### Post date: [October 21, 2021, 1:13am UTC](https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971/3 "2021-10-21T01:13:25Z")

</div>

There is something clearly wrong with the .dll or it can’t be found. It’s also possible it’s looking for a 32-bit build of the .dll.  
Is that path in the error, to gluegen\_rt.dll on your machine or is this where the library is looking? Is the .dll actually in that location?  
Usually a Processing lib installed on the system includes the .dll in the /libraries folder of the distribution. So it should be located somewhere like

```auto
C:/Users/xxx/Documents/Processing/libraries/GlueGen/library/gluegen_rt.dll

```

If there are two versions of a library usually they are labeled 64 or 32 (or x86) or whatever. But you can check using dumpbin or Dependency Walker see: [https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130022/How+to+tell+if+.dll+is+32+bits+or+64+bits](https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130022/How+to+tell+if+.dll+is+32+bits+or+64+bits)  
But the error is saying it can’t find the .dll or it is not the right version.

---

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [February 7, 2022, 6:08pm UTC](https://discourse.processing.org/t/gluegen-rt-dll-cant-find-dependent-libraries/32971/4 "2022-02-07T18:08:44Z")

</div>

now I have similar error,  
with this code,  
and I can’t find a solution for that.

I have the file in the processing libraries file,  
but the error is rgarding something from the temp file

java.lang.UnsatisfiedLinkError: C:\Users\יניב\AppData\Local\Temp\jogamp\_0000\file\_cache\jln8452479950050202125\jln15260085206636126312\natives\windows-amd64\gluegen\_rt.dll: Can’t find dependent libraries  
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)  
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)  
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)  
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)  
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)  
at java.base/java.lang.Runtime.load0(Runtime.java:768)  
at java.base/java.lang.System.load(System.java:1837)  
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:604)  
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)  
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)  
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)  
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)  
at com.jogamp.common.os.Platform$1.run(Platform.java:321)  
at java.base/java.security.AccessController.doPrivileged(Native Method)  
at com.jogamp.common.os.Platform.(Platform.java:290)  
at com.jogamp.nativewindow.NativeWindowFactory$1.run(NativeWindowFactory.java:239)  
at java.base/java.security.AccessController.doPrivileged(Native Method)  
at com.jogamp.nativewindow.NativeWindowFactory.(NativeWindowFactory.java:236)  
at com.jogamp.newt.NewtFactory$1.run(NewtFactory.java:69)  
at java.base/java.security.AccessController.doPrivileged(Native Method)  
at com.jogamp.newt.NewtFactory.(NewtFactory.java:66)  
at processing.opengl.PSurfaceJOGL.initIcons(PSurfaceJOGL.java:544)  
at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:211)  
at processing.core.PApplet.initSurface(PApplet.java:10421)  
at processing.core.PApplet.runSketch(PApplet.java:10329)  
at processing.core.PApplet.main(PApplet.java:10083)  
A library relies on native code that’s not available.  
Or only works properly when the sketch is run as a 32-bit application.  
UnsatisfiedLinkError: C:\Users\יניב\AppData\Local\Temp\jogamp\_0000\file\_cache\jln8452479950050202125\jln15260085206636126312\natives\windows-amd64\gluegen\_rt.dll: Can’t find dependent libraries

```auto
void setup(){

size(400, 400, P3D);
}

void draw(){
noStroke();
lights();
translate(232, 192, 0);
sphere(112);

}

```
