Install Lightzone 5.0.0:
Download the recent PKGBUILD. Then:
sudo pacman -S jdk21-openjdk
sudo archlinux-java set java-21-openjdk
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk
export PATH=$JAVA_HOME/bin:$PATH
makepkg -si
sudo archlinux-java set java-26-openjdk
sudo pacman -R jdk21-openjdk
That's all!
Task :lightcrafts:products
make: ingresso nella directory «/home/simona/.cache/yay/lightzone/src/LightZone-ffcc912a2fb20bf3ad434b4197d6f0e7ee863696/lightcrafts/products»
make: Nessuna operazione da eseguire per «all».
make: uscita dalla directory «/home/simona/.cache/yay/lightzone/src/LightZone-ffcc912a2fb20bf3ad434b4197d6f0e7ee863696/lightcrafts/products»
Task :linux:compileJava FAILED
[Incubating] Problems report is available at: file:///home/simona/.cache/yay/lightzone/src/LightZone-ffcc912a2fb20bf3ad434b4197d6f0e7ee863696/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':linux:compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
Java compilation initialization error
error: invalid source release: 21
incompatible with apache-tika from blackarch repo
After installing the package "jdk-openjdk" (i.e. release 24.0.1.u9-1) it compiles here without any problems.
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve] unknown resolver sbt-chain
[ivy:retrieve] unknown resolver null
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: lightcrafts#lightcrafts
[ivy:retrieve] confs: [compile]
[ivy:retrieve] 18 artifacts copied, 0 already retrieved (5114kB/18ms)
resolve:
init_classpath:
javac:
[exec] ln -fs "../lib/ejml-cdense-0.40.jar" "ejml-cdense-0.40.jar"
[exec] ln -fs "../lib/ejml-core-0.40.jar" "ejml-core-0.40.jar"
[exec] ln -fs "../lib/ejml-ddense-0.40.jar" "ejml-ddense-0.40.jar"
[exec] ln -fs "../lib/ejml-dsparse-0.40.jar" "ejml-dsparse-0.40.jar"
[exec] ln -fs "../lib/ejml-fdense-0.40.jar" "ejml-fdense-0.40.jar"
[exec] ln -fs "../lib/ejml-fsparse-0.40.jar" "ejml-fsparse-0.40.jar"
[exec] ln -fs "../lib/ejml-simple-0.40.jar" "ejml-simple-0.40.jar"
[exec] ln -fs "../lib/ejml-zdense-0.40.jar" "ejml-zdense-0.40.jar"
[exec] ln -fs "../lib/flatlaf-3.6.jar" "flatlaf-3.6.jar"
[exec] ln -fs "../lib/flatlaf-intellij-themes-3.6.jar" "flatlaf-intellij-themes-3.6.jar"
[exec] ln -fs "../lib/jai-lightzone-1.1.3.0.jar" "jai-lightzone-1.1.3.0.jar"
[exec] ln -fs "../lib/jiconfont-1.0.0.jar" "jiconfont-1.0.0.jar"
[exec] ln -fs "../lib/jiconfont-font_awesome-4.7.0.0.jar" "jiconfont-font_awesome-4.7.0.0.jar"
[exec] ln -fs "../lib/jiconfont-google_material_design_icons-2.2.0.2.jar" "jiconfont-google_material_design_icons-2.2.0.2.jar"
[exec] ln -fs "../lib/jiconfont-swing-1.0.1.jar" "jiconfont-swing-1.0.1.jar"
[exec] ln -fs "../lib/json-20231013.jar" "json-20231013.jar"
[exec] ln -fs "../lib/openjson-1.0.13.jar" "openjson-1.0.13.jar"
[mkdir] Created dir: /home/simona/.cache/yay/lightzone/src/LightZone-eb1eb292e9a70e297ad1b2ae13263371d19d9e1c/lightcrafts/build/classes/java/main
[mkdir] Created dir: /home/simona/.cache/yay/lightzone/src/LightZone-eb1eb292e9a70e297ad1b2ae13263371d19d9e1c/lightcrafts/javah
[javac] Compiling 1054 source files to /home/simona/.cache/yay/lightzone/src/LightZone-eb1eb292e9a70e297ad1b2ae13263371d19d9e1c/lightcrafts/build/classes/java/main
[javac] error: error reading /usr/share/java/apache-tika/tika-app-2.9.2.jar; zip END header not found
[javac] error: error reading /usr/share/java/apache-tika/tika-server-2.9.2.jar; zip END header not found
BUILD FAILED
/home/simona/.cache/yay/lightzone/src/LightZone-eb1eb292e9a70e297ad1b2ae13263371d19d9e1c/linux/build.xml:38: The following error occurred while executing this line:
/home/simona/.cache/yay/lightzone/src/LightZone-eb1eb292e9a70e297ad1b2ae13263371d19d9e1c/lightcrafts/build.xml:101: Compile failed; see the compiler error output for details.
Build fails with latest java-runtime in the repos (java-24-openjdk), throwing the following:
[...]
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by lombok.permit.Permit
WARNING: Please consider reporting this to the maintainers of class lombok.permit.Permit
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[...]
The package compiles correctly with jdk21-openjdk, which may be added as a hard dependency (i.e. java-runtime=21) while waiting for the issue to be fixed upstream.
BUILD FAILED
/home/simona/.cache/yay/lightzone/src/LightZone-5.0.0beta2/linux/build.xml:38: The following error occurred while executing this line:
/home/simona/.cache/yay/lightzone/src/LightZone-5.0.0beta2/lightcrafts/build.xml:101: Compile failed; see the compiler error output for details.
I'm getting a SIGILL when I try to enter edit mode. Not sure why that would happen besides native libraries being extremely messed up?
/home/simona/.cache/yay/lightzone/src/LightZone-5.0.0beta2/lightcrafts/build.xml:101: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-11-openjdk"