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 :/

Re: Building and packaging in IntelliJ

Posted: Fri Jan 02, 2026 11:50 am
by Massimo32
Hi krusher,
at present I don't have a solution for packaging.

I'm currently developing the next version, which will feature penalty cards, networking, and maybe more.

I hope to complete the development and release within the next 7-8 months.

Massimo

Re: Building and packaging in IntelliJ

Posted: Fri Jan 02, 2026 12:28 pm
by krusher
Thank you for your response.

Last error I got was:

Code: Select all

Error: Module java.base/sun.nio.ch not found
java.lang.module.FindException: Module java.base/sun.nio.ch not found
This module is supposed to be in Java 17, I'm not sure how to fix it. Please let me know if I can help you at any point.

Cheers.