Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change kotlin folder to java folder in IDEA project wizard #578

Open
aless2003 opened this issue Feb 13, 2024 · 2 comments
Open

Change kotlin folder to java folder in IDEA project wizard #578

aless2003 opened this issue Feb 13, 2024 · 2 comments
Labels

Comments

@aless2003
Copy link

When you use gdj files which have been generated from Java Source Files, the game crashes on start with a NoClassDefFoundError, which is only shown when running the editor itself from the terminal. The same gdj file, but generated from a Kotlin class works fine.

The project is basically just the standard project generated by the IntelliJ plugin with renamed packages.

Here's both the log and the project I've been using:
log.txt
SuikaGame.zip

@aless2003
Copy link
Author

Ok so turns out it's because of the source set. When using src/main/kotlin Java source files aren't built, if you use src/main/java however instead, both Kotlin and java are being compiled and the game works as expected

@chippmann
Copy link
Contributor

Yeah that's normal java/kotlin behaviour and not related to this project. Still i guess we could change the starting project folders in the wizard to use a java folder.

@chippmann chippmann changed the title Game Crashing if gdj files from Java sources are being used Change kotlin folder to java folder in IDEA project wizard Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants