Cannot Open .jar File ...
It seems like I've tried everything. Everytime I make a program using Eclipse and try to export it is as .jar and open it, it just proceeds to load for a second and show nothing then exit.
I went to cmd and did 'java jar -udp.java' (program is a udp socket-send test)
and it says "no main manifest attribute in Test.jar' (project name is Test).
Now I know what this means so I added a MANIFEST file. I know eclipse creates a manifest.mf file in 'META-INF' that reads:
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der
and I tried saving my own as both manifest.mf/manifest.txt. Everytime I get this same error from command prompt.
Is there anything I'm doing wrong? I can compile and run programs with command prompt using commands, but have never succeeded in creating a .jar file.
Thanks for any help. This is so stressful.
Re: Cannot Open .jar File ...
Does the manifest file have a newline character and the end of the last line in the file?