Computing.Net > Forums > Programming > Java jar file creation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java jar file creation

Reply to Message Icon

Name: kindem
Date: April 5, 2005 at 03:34:52 Pacific
OS: windows xp
CPU/Ram: not shure
Comment:

The problem is:
I wrote a java application that displays a GUI and do some task
I want to run my program from the desktop just with a double click on an icon

I created a jar file with the command
jar cmf Manifest.txt MyJar.jar *
From the directory which contains

-package called data (contains 4 classes)
-Images (many)
-manifest called Manifest.txt (Main-class: data/MyClass.main)
-and a file file.txt (which the program uses)

The jar file included all the files and images
When I run the jar file from another directory the pictures does not appear and file.txt is not accessed

Pleas tell me the mistake I made in creating the jar file or any other way of doing that.

( I have the code “ZipSelfExtractor.java” )


kind



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Towers of Hanoi Java input coding



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java jar file creation

Create Java Executable .jar file? www.computing.net/answers/programming/create-java-executable-jar-file/11740.html

Launching Java class file www.computing.net/answers/programming/launching-java-class-file/13054.html

Help with JAR files www.computing.net/answers/programming/help-with-jar-files/16276.html