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.