I'm trying to create a game with libgdx. The game works well when I'm testing it inside Eclipse but when I try to export it either for android or desktop the game starts and crashes immediately.
The problem is that the game cannot find the Assets and thus it throws an unhandled exception. I use the following way to load all of my assets.
mainmenu = new Sprite(new Texture(Gdx.files.internal("Images/Screens/MainMenu.png")));
I have searched the exported jar and all the assets are properly located inside it, yet for some reason the game cannot find them. On the desktop it will work fine when I place the .jar file into my assets folder.
When I create a new libgdx project and export it, it works fine, but as soon as I add my java classes it stops working.
I have tried searching for similar questions here, but none of the answers solved my problem.