Results 1 to 2 of 2
Thread: Cannot Open .jar File ...
- 03-15-2012, 03:35 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 1
- Rep Power
- 0
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:
Manifest-Version: 1.0
Rsrc-Class-Path: ./
Class-Path: .
Rsrc-Main-Class: UDP
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.
- 03-15-2012, 12:29 PM #2
Similar Threads
-
Open a jar file with button swing and load this file.jar in a desktop pane
By lordhark in forum AWT / SwingReplies: 15Last Post: 02-16-2012, 03:43 PM -
I/O How to open a file
By sehudson in forum New To JavaReplies: 8Last Post: 07-18-2011, 03:32 AM -
How to show or open a file download or file save dialog box
By java_bond in forum New To JavaReplies: 0Last Post: 03-05-2010, 04:21 AM -
Different Files Open in File -> Open Workspace
By mgm2010 in forum JCreatorReplies: 0Last Post: 04-11-2009, 02:14 PM -
To open an image file such as Jpeg file using JAva Program
By itmani2020 in forum Advanced JavaReplies: 10Last Post: 07-11-2008, 09:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks