Page 1 of 1

Building and packaging in IntelliJ

Posted: Wed Dec 31, 2025 2:34 pm
by krusher
Hello, I'm fiddling with the new versions of Ysoccer from the git server, and came across Construo tasks, but when I try to package:
Error: Module JDK removed internal API/sun.reflect not found
java.lang.module.FindException: Module JDK removed internal API/sun.reflect not foun
d

I'm using JVM 17 (tried 11 too) as a runtime in IntelliJ to run the target. What am I missing?

Thank you.

Re: Building and packaging in IntelliJ

Posted: Wed Dec 31, 2025 10:38 pm
by krusher
I have found the problem... the dependency KryoNet

When removed it worked OK, but without network support, of course :/

EDIT: Even then, it will include all the assets on the jar file, and when executing it won't find them.

Re: Building and packaging in IntelliJ

Posted: Thu Jan 01, 2026 3:24 pm
by krusher
Moved to this clone:

https://github.com/crykn/kryonet

But error goes now as:

Error: Module JDK removed internal API/sun.reflect not found

I'm stalled here :/