473,323 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

How do I turn my app into an executable archive?

303 Expert 100+
In trying to learn a little java, I created an application to access a derby database. Now I want to make the application into an executable jar for distribution. I don't care how many jars I end up with, just so that it runs by double-clicking one. How do I do this from the command line? Nothing I've tried lets me run it by double-clicking. One other requirement, MyDB.jar cannot be compressed (if so, the app runs super slow).

Required objects:
Main.class
Main$1.class
Main$2.class
Helper.class
MyDB.jar
derby.jar

Manifest:
Manifest-Version: 1.0
Main-Class: Main
Class-path: . derby.jar MyDB.jar

To run from the command line:
java -cp .;derby.jar;MyDB.jar Main
Jul 20 '11 #1
0 1232

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kova | last post by:
Hello. I wrote a program that I want to put in a executable jar archive. How do I do that? Program has 2 classes in a package. I tried something like "jar -cfv program.jar class1.class...
1
by: Kova | last post by:
Hello. I wrote a program that I want to put in a executable jar archive. How do I do that? Program has 2 classes in a package. I tried something like "jar -cfv program.jar class1.class...
2
by: Pierre HIRTH | last post by:
Hi, Someone could tel me ho can i do to put a database in Archive log Mod ? And how can i do to apply redo log on a backup database ? Thank's
4
by: Ricardo Silva | last post by:
Hello, In the db2diag.log I've this error's : 2005-02-15-16.35.19.488157+000 I37715388C366 LEVEL: Error PID : 30414 TID : 1 PROC : db2logmgr (RMDB) 0...
7
by: William | last post by:
I am using DB2 8.2 on RH Linux 8.0. I just compiled db2uext2.c but failed to archive the log files, did anybody fix this problem before? TIA db2diag.log 2005-06-12-12.39.52.305630-240...
5
by: Comcast Newsgroups | last post by:
I'm trying to put together a macro that queries my cell phone call expense DB the selects records as of a specific Date that are not marked "Archive", prints a report, then marks the records...
1
by: Flix | last post by:
The following piece of code should turn the folder IN and its subfolders into a single tar file located in the folder OUT: using ICSharpCode.SharpZipLib; using ICSharpCode.SharpZipLib.Tar; ...
1
by: giangiammy | last post by:
Hi all, I'm starting to approch python: I find it a powerful language, but, I'd like to get, ad result of my program, something containing every python lib necessary to run (on linux systems): ...
9
by: mathieu | last post by:
I'd like to be able to get the path to the current working executable (from inside it). Technically this is easy, I simply have to collapse: getcwd and argv Well argv comes in a little late,...
4
by: Brad Pears | last post by:
I have a vb.net 2005 project and have made a lot of modifications to it. The project runs fine in debug mode. Now I want to implement it and first I am running the executable on my machine to make...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.