How do I install a Processing-made app on Linux?

In the exported folder there is “lib” “config” and the file “apiGen16x16” (its a link maker for the webpage https://verumignis.com/bitmapgen/ where u can make small images)

Its just a plain text file and i tried “bash -x apiGen16x16” but that gives me the error:

++ readlink -f apiGen16x16
+ APPDIR=/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/apiGen16x16
++ dirname /media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/apiGen16x16
+ APPDIR=/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64
+ java -Xms64m -Xmx1111m -Djna.nosys=true -Djava.library.path=/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64:/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/lib -cp /media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64:/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/lib/apiGen16x16.jar:/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/lib/jogl-all.jar:/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/lib/core.jar:/media/mee/C2B6-A6D5/Coding/Coding/apiGen16x16/linux-amd64/lib/gluegen-rt.jar apiGen16x16
Error: LinkageError occurred while loading main class apiGen16x16
	java.lang.UnsupportedClassVersionError: processing/core/PApplet has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version

Does anybody know how to fix it?

Hi @nuhuhwy,

The error means that by calling java you run with an older version of java which your system provides (ie most probably in /bin/java). Processing gets shipped with its own java bundled. Either change the PATH to get the processing version of java called before calling the script or change the java call inside the script by an absolute path pointing to the processing shipped java version.

Cheers
— mnse

PS: to find the correct path you can use ie:
find path_to_processing_installed -name "java" -print

thank you @mnse. Great solution you can also install premium apk app on Linux from modfyp website easily.

1 Like