Closed Opticalproperty closed 5 months ago
Hi @Opticalproperty
From here it seems you are building the JAR using the right command:
cd LIRICAL
./mvnw -Prelease package
However, the compiler seems to fail with message Error: Invalid target distribution. Can you please verify you are using Java 17 or better?
Using JDK 17 or better should fix the issue.
Alternatively, we provide an executable JAR in the Releases section. Please look for a ZIP file in the release assets.
I will close this issue because it seems to me you should be able to resolve it one way or the other. However, please reopen and let me know if the problems persist, I'd be happy to help.
Hello developer,
I attempted to package the project lirical-2.0.0 into a JAR file, but the resulting package consistently indicates that it cannot find the main method. Additionally, when I use the command ./mvnw -Prelease package for packaging, it prompts the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.1:compile (default-compile) on project lirical-core: Fatal error compiling: 错误: 无效的目标发行版:17 -> [Help 1]
Can you please provide a runnable JAR file directly? Thank you!