Gluegen_rt.dll: Can't find dependent libraries

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)

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.

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.

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

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
But the error is saying it can’t find the .dll or it is not the right version.

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

void setup(){

size(400, 400, P3D);
}

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

}