db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Taylor <thomas.tay...@miami.edu>
Subject RE: how to include derby.jar in my .class file?
Date Mon, 10 May 2010 03:36:12 GMT
I've used launch4j (http://sourceforge.net/projects/launch4j/) to package multiple JARs into
a single Windows executable.

Or, you can un-JAR derby.jar (jar -xf derby.jar), add your class files to the same directories,
and re-JAR everything into one.


Thomas Taylor

-----Original Message-----
From: oldmhe <mhe1943-oldnabble@yahoo.com>
Sent: Sunday, May 09, 2010 6:17 PM
To: derby-user@db.apache.org
Subject: how to include derby.jar in my .class file?

I'm new to Java, but am making progress with accessing Derby via the
"embedded" framework.

My program works as long as CLASSPATH points to derby.jar.

But my preference to deploy the program as a single file, so that the user
can run it simply with:

     java myprogram [parameters]

without having to set CLASSPATH.

Is there a way to include derby.jar inside my class file (or some other way)
so as to eliminate the need to set CLASSPATH -- and so the entire deployment
involves a single file?

Thanks in advance.
View this message in context: http://old.nabble.com/how-to-include-derby.jar-in-my-.class-file--tp28505459p28505459.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message