Problem with recent `arara` version on windows
This issue seems related to #119 (closed) and the matter discussed in https://tex.stackexchange.com/questions/697218/java-blocking-arara?noredirect=1#comment1740835_697218.
When trying to compile a document, I get the following error.
__ _ _ __ __ _ _ __ __ _
/ _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
\__,_|_| \__,_|_| \__,_|
Processing "doc.tex" (size: 2.7 kB, last modified: 2023-11-02
17:56:54), please wait.
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/Compiler
at org.mvel2.compiler.AbstractParser.setupParser(AbstractParser.java:215)
at org.mvel2.compiler.AbstractParser.<clinit>(AbstractParser.java:153)
at org.mvel2.MVEL.compileExpression(MVEL.java:831)
at org.mvel2.templates.res.CompiledExpressionNode.<init>(CompiledExpressionNode.java:41)
at org.mvel2.templates.TemplateCompiler.compileFrom(TemplateCompiler.java:211)
at org.mvel2.templates.TemplateCompiler.compile(TemplateCompiler.java:82)
at org.mvel2.templates.TemplateCompiler.compileTemplate(TemplateCompiler.java:348)
at org.mvel2.templates.TemplateRuntime.eval(TemplateRuntime.java:91)
at org.islandoftex.arara.cli.interpreter.Interpreter.executeCommand(Interpreter.kt:204)
at org.islandoftex.arara.cli.interpreter.Interpreter.execute(Interpreter.kt:307)
at org.islandoftex.arara.cli.ruleset.DirectiveImpl.execute(DirectiveImpl.kt:25)
at org.islandoftex.arara.core.session.LinearExecutor.execute(LinearExecutor.kt:114)
at org.islandoftex.arara.core.session.LinearExecutor.executeProject$core(LinearExecutor.kt:89)
at org.islandoftex.arara.core.session.LinearExecutor.execute(LinearExecutor.kt:73)
at org.islandoftex.arara.cli.CLI.run(CLI.kt:318)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:198)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:18)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:393)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:390)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:408)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:433)
at org.islandoftex.arara.cli.CLIKt.main(CLI.kt:366)
Caused by: java.lang.ClassNotFoundException: java.lang.Compiler
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 22 more
Running arara --version
shows
__ _ _ __ __ _ _ __ __ _
/ _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
\__,_|_| \__,_|_| \__,_|
arara 7.0.4
Copyright (c) 2023, Island of TeX
arara is released under the New BSD license.
New features in version 7.0.4:
* Add (Lua) project support to arara.
* Use a defined domain-specific file system API instead of `java.io.File`.
* Use header mode by default (`-w` restores the old behavior).
See the full changelog of this release at
https://gitlab.com/islandoftex/arara/-/blob/development/CHANGELOG.md
Running java --version
indicates
openjdk 21.0.1 2023-10-17
OpenJDK Runtime Environment (build 21.0.1+12-29)
OpenJDK 64-Bit Server VM (build 21.0.1+12-29, mixed mode, sharing)
The surprising part is that my MikTeX install indicates that the installed arara
version is 7.1.2 while the terminal shows 7.0.4.
I assumed this would mean something is broken in my arara
install, but removing arara
altogether and re-installing it did not change the behavior.
I'm running this on a Windows 10 machine with MiKTeX-pdfTeX 4.16 (MiKTeX 23.10.12)
Edited by BambOoxX