Exporting a Slick2D project in different files

I have a question: How to export a project so that it looks like this:

-lib
-res
.exe file

And another one: Which of the IDEs should I use for that? Eclipse, Intellij, NetBeans, else? Should I also use Jarsplice? Thanks!

For exporting project personally I use Eclipse with Jarsplice

  1. File → Export → Jar file (we’ll make it runnable with Jarsplice)
  2. Resources folder can be just copied next to our jar
  3. In Jarsplice you should select your game’s jar and jars for desired slick libraries (e.g. lwjgl.jar, jogg.jar, slick.jar), leave natives list blank, and select your games main class
  4. Export new jar next to your res folder (you can already start your game via terminal with java -jar yourgamename.jar if you want to test it)
  5. If you want to create platform specific executable (like .exe) you need just find software that can do it for you, for example launch4j

I don’t know if it is the best way, but it works ¯_(ツ)_/¯

I tried it, but I have 2 things:

  1. Library jars (not natives) are in the fat jar (is it OK?);
  2. It makes an error: Error: LinkageError occurred while loading main class **********
    java.lang.UnsupportedClassVersionError: ********** (class file version 60.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 61.65535 (yeah, I use some preview features in java 16).

Maybe, I should do something else (I don’t understand it so much)?

P.S. In the MANIFEST.MF file I found next information:

Manifest-Version: 1.0
Main-Class: org.ninjacave.jarsplice.JarSpliceLauncher
Launcher-Main-Class: **********
Launcher-VM-Args: --enable-preview

There is written --enable-preview, but why I can’t launch it?