This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes Java executable jar with embedded Derby DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java executable jar with embedded Derby DB" Watch "Java executable jar with embedded Derby DB" New topic
Author

Java executable jar with embedded Derby DB

Darko Krstic
Greenhorn

Joined: Apr 05, 2012
Posts: 2
Dears,

I am trying for a while to make executable JAVA application having embedded DB (derby DB), but facing some problems, and need your valuable help.

Namely, I am using Eclipse as environment.
I export Java app to RUNNABLE JAR file, and it works fine on my desktop machine.

But, when I move that JAR file to another machine which have no JAVA background/environment....because point is to send it to another user who will just get exe file, double click it and work with it, I face problem.

The DB is not only readable, since application is inserting data in tables.
So, it works fine on my machine, but when I send the same JAR file to another machine, I get error:
"Schema TEST does not exist"
I can see application but without any data, like there is no connection with DB. So, it is useless.

Even I use JSmooth, Install4j.... to convert JAR to exe file, I get the same error.
So, first I have to make JAR file working on another machine.

Seems to me, I am doing something wrong with DB files.

Please let me know what info you need more from my side, and let me know how I can do this.

Thank you in advance

BR

Darko
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

Hello D. Kos, welcome to the Ranch, sorry no one has replied, but been a long bank holiday here in the UK, so I for one have been far to busy spending time with the kids.

and a post has been sent to you about an administrative problem.
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

I cheated and asked the guys at my previous job who wrapped up our Debry DB how they did it, they sent me this link:

http://docs.oracle.com/javadb/10.3.3.0/devguide/
Darko Krstic
Greenhorn

Joined: Apr 05, 2012
Posts: 2
Wendy Gibbons wrote:I cheated and asked the guys at my previous job who wrapped up our Debry DB how they did it, they sent me this link:

http://docs.oracle.com/javadb/10.3.3.0/devguide/


Thanks a lot, I will read it.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java executable jar with embedded Derby DB
 
Similar Threads
Error loading derby driver
creating .exe file for java application
Executable jar app doesn't find Driver
java db on a mac-getting started
Derby Embedded vs. Derby Network Server