[SOLVED] Problems with executables

Hello once again!
I’m working in Eclipse with LibGDX.
I can’t transform my Game into an Executable jar. Actually it does exports the jar. But I have a black screen and it quickly goes away. All three export options do not work (Packing libraries, attaching libraries and so on.) I don’t have any errors or warnings during Export.
Googling hints that I might have problems with META-INF. But playing with it resulted in nothing so far.

-What should I do?
-Can you also suggest some infromation on applets.

Thanks in advance.

I don’t use Eclipse (gasp) but you need to include a “Main-Class” Manifest entry in your Jar. Google for that.

My advice on Applets for Beginners: Don’t. Learn to create an executable jar (as you’re doing) first. That’s just my opinion; applets have too much baggage to start learning from.

You could give the JarSplice tool a try, it’ll create an executable Jar for you. Its a simple GUI to use aimed at new java developers.

From Eclipse export as a normal jar just your project (classes and any resources such as images, sounds, etc). No need to include any libraries or anything at this point, then in the JarSplice GUI, add your jar and all the library jars that you are using on the jars tab. On the natives tab add all the natives (*.dll, etc) you are using, add the main class on the main class tab and it’ll create a single executable jar for you.

I read the Java tutorial and tried slicer it didn’t work.
Slicer just makes something unexecutable (corrupt jar).
In tutorial it is written that you need to define Main-Class: Mymainclass
My main class is DesktopStarter
There’s Some Rsrc-Main-Class in the default export manifest though.
If I try to make Main-Class: com.abstractgames.DesktopStarter it says it doesn’t see it.

In my jar I have
-My.classes
-GDX.jars
-resources(pics etc)
-som folder containing eclipse classes
-Manifest folder

Here what I have in Manifest file
Manifest-Version: 1.0
Rsrc-Class-Path: ./ gdx-natives.jar gdx.jar gdx-sources.jar gdx-backen
d-lwjgl.jar gdx-backend-lwjgl-natives.jar
Class-Path: .
Rsrc-Main-Class: com.abstractgames.DesktopStarter
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader

SOLVED
The problem was that my resourses lied in the root folder by default.
I should have placed them into the res folder as in my project!