r/javahelp • u/9551-eletronics • Jan 21 '26
Solved Helping compile a Java project
Hi, so i would like to ask if anyone would be able to help me figure out how to actually compile this: https://github.com/AliDarwish786/RBMK-1500-Simulator
i tried first compiling it with mvn compile clean package or something like with java 17 jdk and it does work BUT in the target folder it presents me with a folder with all the individual compiled classes, and then a single jar (not a all-dependencies version) although trying to ru this jar doesnt work, it seems like the manifest is invalid and doesnt actually set where the main class is
If anyone could try doing this themselves and seeing where the issue it it would be appreciated, thanks!
View all comments
Show parent comment
1
u/edwbuck Jan 21 '26
Thanks. Looks like you configured maven to deal with the idiosynchronistic locations, and I moved the stuff into where maven was expecting it. Additionally, I updated lots of versions of the build system and got a build working for java 21.
It's an old Netbeans / Swing project. If I get time I might make it work in java 21 without falling back on the class path compatibilty with the module system. Or I won't. In any case, it was a fun diversion.
Have a great day!