在搭载 Ventura OS 的 M2 Mac 上运行时,使用 TeXShop 对以下代码进行排版时,出现了类似 Java 阻塞 arara 的情况:
% arara: lualatex: { synctex: on }
% arara: lualatex: { synctex: on }
% arara: bibtex
% arara: makeglossaries if missing('gls') || changed('glo')
% arara: lualatex: { synctex: on }
% arara: makeindex: { style: Differ2Latex-v30a9.ist }
% arara: makeindex: { style: Differ2Latex-v30a9.ist } if changed ('idx') || missing ('ind')
% arara: nomencl
% arara: makeglossaries if found('aux', '@istfilename')
% arara: lualatex: { synctex: on }
% arara: makeindex: { style: Differ2Latex-v30a9.ist } if changed ('idx') || missing ('ind')
% arara: lualatex: { synctex: on }
% arara: authorindex
% arara: lualatex: { synctex: on }
错误如下:
__ _ _ __ __ _ _ __ __ _
/ _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
\__,_|_| \__,_|_| \__,_|
Processing "Differ2Latex-v30a9.tex" (size: 3.0 MB, last modified:
2023-09-29 08:23:14), 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.mvel.rules.RuleArgument$1.invoke(RuleArgument.kt:51)
at org.islandoftex.arara.mvel.rules.RuleArgument$1.invoke(RuleArgument.kt:41)
at org.islandoftex.arara.cli.interpreter.Interpreter.processArgument(Interpreter.kt:425)
at org.islandoftex.arara.cli.interpreter.Interpreter.parseArguments(Interpreter.kt:386)
at org.islandoftex.arara.cli.interpreter.Interpreter.execute(Interpreter.kt:282)
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)
... 25 more
我尝试重新安装 java,并且终端中的“java -version”显示:
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment Homebrew (build 21)
OpenJDK 64-Bit Server VM Homebrew (build 21, mixed mode, sharing)
检查了 Java 安全面板,但没有发现导致阻塞的原因。
如果您对下一步该检查什么有任何想法,我们将不胜感激。