Help create a working JAR file of my project, made using the libgdx framework. I tried to make it through Project Structure -> Artifacts -> Create JAR from Modules, I created a JAR file that launches the application for 1 second with a black screen and then closes without an error.
UPD1: With the help of Gradle I created a JAR file, but it still does not start the game, but an error has been found. The problem was that all project images are not loaded due to the “wrong path”. They are stored in the assets folder and therefore I upload them via Gdx.files.internal ("img_name.png"). Is it possible that the compiled JAR file is looking for files in the wrong path?