DHS Compilation fails with `Eclipse Adoptium\jdk-23.0.1.11-hotspot`

After investigation, downgrading from Eclipse Adoptium\jdk-23.0.1.11-hotspot to Eclipse Adoptium\jdk-21.0.5.11-hotspot has fixed compilation issues --- Having issues compiling Distant Horizons server plugin via mvn Issues occur on all branches / tags of the repo (fancy that), so it's an issue with my environment. Maven was freshly downloaded from https://maven.apache.org/
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Program Files (x86)\Apache\apache-maven-3.9.9
Java version: 23.0.1, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-23.0.1.11-hotspot
Default locale: en_GB, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Program Files (x86)\Apache\apache-maven-3.9.9
Java version: 23.0.1, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-23.0.1.11-hotspot
Default locale: en_GB, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
10 Replies
WYVERN
WYVERNOP2d ago
[INFO] --- compiler:3.13.0:compile (default-compile) @ DHSupport-1.16.5 ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 59 source files with javac [debug target 21] to target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DHSupport 0.8.0-SNAPSHOT:
[INFO]
[INFO] DHSupport .......................................... SUCCESS [ 1.079 s]
[INFO] DHSupport-1.16.5 ................................... FAILURE [ 0.559 s]
[INFO] DHSupport-1.17.1 ................................... SKIPPED
[INFO] DHSupport-1.18.2 ................................... SKIPPED
[INFO] DHSupport-1.19.2 ................................... SKIPPED
[INFO] DHSupport-1.19.4 ................................... SKIPPED
[INFO] DHSupport-1.20.1 ................................... SKIPPED
[INFO] DHSupport-1.20.2 ................................... SKIPPED
[INFO] DHSupport-1.20.4 ................................... SKIPPED
[INFO] DHSupport-1.20.6 ................................... SKIPPED
[INFO] DHSupport-1.21.1 ................................... SKIPPED
[INFO] DHSupport-1.21.3 ................................... SKIPPED
[INFO] DHSupport-1.21.4 ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.769 s
[INFO] Finished at: 2025-01-21T20:07:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project DHSupport-1.16.5: Fatal error compiling: CompilerException: IllegalStateException -> [Help 1]
[INFO] --- compiler:3.13.0:compile (default-compile) @ DHSupport-1.16.5 ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 59 source files with javac [debug target 21] to target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DHSupport 0.8.0-SNAPSHOT:
[INFO]
[INFO] DHSupport .......................................... SUCCESS [ 1.079 s]
[INFO] DHSupport-1.16.5 ................................... FAILURE [ 0.559 s]
[INFO] DHSupport-1.17.1 ................................... SKIPPED
[INFO] DHSupport-1.18.2 ................................... SKIPPED
[INFO] DHSupport-1.19.2 ................................... SKIPPED
[INFO] DHSupport-1.19.4 ................................... SKIPPED
[INFO] DHSupport-1.20.1 ................................... SKIPPED
[INFO] DHSupport-1.20.2 ................................... SKIPPED
[INFO] DHSupport-1.20.4 ................................... SKIPPED
[INFO] DHSupport-1.20.6 ................................... SKIPPED
[INFO] DHSupport-1.21.1 ................................... SKIPPED
[INFO] DHSupport-1.21.3 ................................... SKIPPED
[INFO] DHSupport-1.21.4 ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.769 s
[INFO] Finished at: 2025-01-21T20:07:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project DHSupport-1.16.5: Fatal error compiling: CompilerException: IllegalStateException -> [Help 1]
Anyone else experience this issue before? Unfortunately the -X and -e flags aren't that useful;- only pointing to internal classes:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project DHSupport-1.16.5: Fatal error compiling
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1231)
...
Caused by: org.codehaus.plexus.compiler.CompilerException
...
Caused by: java.lang.IllegalStateException
at manifold.internal.javac.HostKind.from (HostKind.java:36)
at manifold.internal.javac.FragmentProcessor.processComment (FragmentProcessor.java:57)
at manifold.internal.javac.ManParserFactory_17$ManScannerFactory$ManJavadocTokenizer.processComment (ManParserFactory_17.java:168)
at com.sun.tools.javac.parser.JavaTokenizer.readToken (JavaTokenizer.java:972)
...
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project DHSupport-1.16.5: Fatal error compiling
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1231)
...
Caused by: org.codehaus.plexus.compiler.CompilerException
...
Caused by: java.lang.IllegalStateException
at manifold.internal.javac.HostKind.from (HostKind.java:36)
at manifold.internal.javac.FragmentProcessor.processComment (FragmentProcessor.java:57)
at manifold.internal.javac.ManParserFactory_17$ManScannerFactory$ManJavadocTokenizer.processComment (ManParserFactory_17.java:168)
at com.sun.tools.javac.parser.JavaTokenizer.readToken (JavaTokenizer.java:972)
...
If anyone has a known working java version, I can swap to that from Eclipse Adoptium\jdk-23.0.1.11-hotspot Looks like javac is having an unfun time
Puhpine
Puhpine2d ago
is there a reason that you want to compile it yourself instead of just using the precompiled jar?
WYVERN
WYVERNOP2d ago
I'd like to get a dev env working, also latest release lacks support for protocol 9 (whereas 4bdcdd47 does)
Puhpine
Puhpine2d ago
then i guess @Jckf will have to take a look at this
WYVERN
WYVERNOP2d ago
Ahhh, got some progress: Swapping from Eclipse Adoptium\jdk-23.0.1.11-hotspot to Eclipse Adoptium\jdk-21.0.5.11-hotspot has seemed to fix the issue
Jckf
Jckf2d ago
Latest nightly supports protocol v9 But I'll have a look at your errors in a bit
WYVERN
WYVERNOP2d ago
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DHSupport 0.8.0-SNAPSHOT:
[INFO]
[INFO] DHSupport .......................................... SUCCESS [ 1.073 s]
[INFO] DHSupport-1.16.5 ................................... SUCCESS [ 3.836 s]
[INFO] DHSupport-1.17.1 ................................... SUCCESS [ 0.920 s]
[INFO] DHSupport-1.18.2 ................................... SUCCESS [ 0.959 s]
[INFO] DHSupport-1.19.2 ................................... SUCCESS [ 0.843 s]
[INFO] DHSupport-1.19.4 ................................... SUCCESS [ 0.795 s]
[INFO] DHSupport-1.20.1 ................................... SUCCESS [ 0.617 s]
[INFO] DHSupport-1.20.2 ................................... SUCCESS [ 0.581 s]
[INFO] DHSupport-1.20.4 ................................... SUCCESS [ 0.622 s]
[INFO] DHSupport-1.20.6 ................................... SUCCESS [ 0.639 s]
[INFO] DHSupport-1.21.1 ................................... SUCCESS [ 1.603 s]
[INFO] DHSupport-1.21.3 ................................... SUCCESS [ 1.273 s]
[INFO] DHSupport-1.21.4 ................................... SUCCESS [ 0.487 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.374 s
[INFO] Finished at: 2025-01-21T20:18:18Z
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DHSupport 0.8.0-SNAPSHOT:
[INFO]
[INFO] DHSupport .......................................... SUCCESS [ 1.073 s]
[INFO] DHSupport-1.16.5 ................................... SUCCESS [ 3.836 s]
[INFO] DHSupport-1.17.1 ................................... SUCCESS [ 0.920 s]
[INFO] DHSupport-1.18.2 ................................... SUCCESS [ 0.959 s]
[INFO] DHSupport-1.19.2 ................................... SUCCESS [ 0.843 s]
[INFO] DHSupport-1.19.4 ................................... SUCCESS [ 0.795 s]
[INFO] DHSupport-1.20.1 ................................... SUCCESS [ 0.617 s]
[INFO] DHSupport-1.20.2 ................................... SUCCESS [ 0.581 s]
[INFO] DHSupport-1.20.4 ................................... SUCCESS [ 0.622 s]
[INFO] DHSupport-1.20.6 ................................... SUCCESS [ 0.639 s]
[INFO] DHSupport-1.21.1 ................................... SUCCESS [ 1.603 s]
[INFO] DHSupport-1.21.3 ................................... SUCCESS [ 1.273 s]
[INFO] DHSupport-1.21.4 ................................... SUCCESS [ 0.487 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.374 s
[INFO] Finished at: 2025-01-21T20:18:18Z
[INFO] ------------------------------------------------------------------------
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Program Files (x86)\Apache\apache-maven-3.9.9
Java version: 21.0.5, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot
Default locale: en_GB, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Program Files (x86)\Apache\apache-maven-3.9.9
Java version: 21.0.5, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot
Default locale: en_GB, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Jckf
Jckf2d ago
Ah, nice
WYVERN
WYVERNOP2d ago
Well, good to have this issue here for future reference if the latest jdk is preventing compilation
Jckf
Jckf2d ago
The way I've set everything up is a bit hacky, so I wouldn't be surprised if things break Feel free to tag me if you need anything else

Did you find this page helpful?