Processing script doesn't run on Pi4B and OpenJDK 17

New installation of Processing4.2-linux-arm64 and openJDK17, no scripts can be ‘run’, exporting them for 64bit pi works but even simple sketches have a horrible performance. Error is the same every time. Ideas and/or hints are much appreciated.

/home/rulo/processing-4.2/java/bin/java: 1: ELF�
@0
@8: not found
/home/rulo/processing-4.2/java/bin/java: 2:
: not found
/home/rulo/processing-4.2/java/bin/java: 3: �: not found
/home/rulo/processing-4.2/java/bin/java: 4:  : not found
/home/rulo/processing-4.2/java/bin/java: 5: �: not found
/home/rulo/processing-4.2/java/bin/java: 6: cannot open �����r�Tq�Ts: No such file
/home/rulo/processing-4.2/java/bin/java: 1: �: not found
/home/rulo/processing-4.2/java/bin/java: 6: libz.so.1_ITM_deregisterTMCloneTable__gmon_start___ITM_registerTMCloneTablelibjli.soJLI_LaunchJLI_StringDup_finiJLI_List_addJLI_PreprocessArgJLI_InitArgProcessingJLI_List_newJLI_MemFreeJLI_ReportMessageJLI_AddArgsFromEnvVar_initlibpthread.so.0libdl.so.2libc.so.6abortgetenv__cxa_finalize__libc_start_main_edata__bss_start__bss_start____bss_end____end___end:/…/libGLIBC_2.17������p��: File name too long
/home/rulo/processing-4.2/java/bin/java: 1: ��!: not found
/home/rulo/processing-4.2/java/bin/java: 1: ��!: not found
/home/rulo/processing-4.2/java/bin/java: 1: b@9@5���G����@�!�������: not found
/home/rulo/processing-4.2/java/bin/java: 1: ?�s��!��T�SA��[B��cC��{Ĩ�_��_��{�����{���_�JDK_JAVA_OPTIONS_JAVA_LAUNCHER_DEBUG_JAVA_OPTIONSNOTE:: not found
/home/rulo/processing-4.2/java/bin/java: 1: Da����: not found
/home/rulo/processing-4.2/java/bin/java: 7: cannot open ����HA: No such file
/home/rulo/processing-4.2/java/bin/java: 8: ��������A 4�����xA@��aA
B����G��R�������� ����p: not found
/home/rulo/processing-4.2/java/bin/java: 9:
���e��x0x: not found
/home/rulo/processing-4.2/java/bin/java: 10: � 8�Pa8: not found
/home/rulo/processing-4.2/java/bin/java: 11: �: not found
/home/rulo/processing-4.2/java/bin/java: 12: �: not found
/home/rulo/processing-4.2/java/bin/java: 13: �: not found
/home/rulo/processing-4.2/java/bin/java: 14: �: not found
/home/rulo/processing-4.2/java/bin/java: 15: �: not found
/home/rulo/processing-4.2/java/bin/java: 16: �: not found
/home/rulo/processing-4.2/java/bin/java: 17: �: not found
/home/rulo/processing-4.2/java/bin/java: 18: �: not found
/home/rulo/processing-4.2/java/bin/java: 19: �: not found
/home/rulo/processing-4.2/java/bin/java: 20: �: not found
/home/rulo/processing-4.2/java/bin/java: 21: �: not found
/home/rulo/processing-4.2/java/bin/java: 22: �: not found
/home/rulo/processing-4.2/java/bin/java: 23: �: not found
/home/rulo/processing-4.2/java/bin/java: 24: Syntax error: word unexpected (expecting “)”)
Using startup command: /home/rulo/processing-4.2/java/bin/java -agentlib:jdwp=transport=dt_socket,address=8220,server=y,suspend=y,quiet=y -Djna.nosys=true -Djava.library.path=:/home/rulo/processing-4.2/core/library/linux-arm:/usr/java/packages/lib:/usr/lib/arm-linux-gnueabihf/jni:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/usr/lib/jni:/lib:/usr/lib -cp /tmp/processing/Hue12346417272637011594temp:/home/rulo/processing-4.2/core/library/core.jar:/home/rulo/processing-4.2/core/library/gluegen-rt.jar:/home/rulo/processing-4.2/core/library/jogl-all.jar -ea processing.core.PApplet --editor-location=171,618 --external --display=1 --sketch-path=/home/rulo/processing-4.2/modes/java/examples/Basics/Color/Hue Hue

edit: should have double checked the other threads more carefully before posting: the OS was 32bit while the Pi4 is 64bit. Therefore the P4 34bit version fixed the above copied error message. Poor performance remains though.