Building and packaging in IntelliJ

Only for the brave!
Post Reply
krusher
TV soccer watcher
Posts: 11
Joined: Wed Jan 01, 2020 9:28 pm

Building and packaging in IntelliJ

Post 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.
krusher
TV soccer watcher
Posts: 11
Joined: Wed Jan 01, 2020 9:28 pm

Re: Building and packaging in IntelliJ

Post 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.
krusher
TV soccer watcher
Posts: 11
Joined: Wed Jan 01, 2020 9:28 pm

Re: Building and packaging in IntelliJ

Post 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 :/
Massimo32
Chapman's successor
Chapman's successor
Posts: 856
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: Building and packaging in IntelliJ

Post 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
krusher
TV soccer watcher
Posts: 11
Joined: Wed Jan 01, 2020 9:28 pm

Re: Building and packaging in IntelliJ

Post 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.
Post Reply