If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > How to make from .class files and Access database(dsn...) an .exe file self-run

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-09, 05:42
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
How to make from .class files and Access database(dsn...) an .exe file self-run

Subject: How to make from .class files and Access database an .exe file self-run Java GUI App, Event/Data-Driven (DESKTOP APP) for a PC without Access/Java config...

I read a TEXTBOOK about Java & Databases but does not say about building a Developers Product ready for sale, only how run the java App in my special configured java&Access PC, Well how from .class files & .mdb & DB Drivers/DSNs files ready made, make a developer's product ready for sale , I guess this will be file.exe with other files??? may do from CLI or I need an IDE...?

SPECIFICALLY: database is Type 1 JDBC Driver - MS-ACCESS 2003
Reply With Quote
  #2 (permalink)  
Old 12-09-09, 13:18
scooby_at_work scooby_at_work is offline
Registered User
 
Join Date: Sep 2009
Posts: 44
Quote:
Originally Posted by lse123 View Post
Subject: How to make from .class files and Access database an .exe file self-run Java GUI App, Event/Data-Driven (DESKTOP APP) for a PC without Access/Java config...

I read a TEXTBOOK about Java & Databases but does not say about building a Developers Product ready for sale, only how run the java App in my special configured java&Access PC, Well how from .class files & .mdb & DB Drivers/DSNs files ready made, make a developer's product ready for sale , I guess this will be file.exe with other files??? may do from CLI or I need an IDE...?

SPECIFICALLY: database is Type 1 JDBC Driver - MS-ACCESS 2003
So you're looking at several parts that must be in place before the app can actually run:
  1. The Java virtual machine.
  2. Your .class files.
  3. The JDBC driver.
  4. Various configuration parameters, such as where to find the JVM, the .class files, the JDBC driver connect string, etc.

Astoundingly enough, google "compile java to exe" answered the first two. Here's a good discussion on the subject.

The third item is a little tricky. MS Access is a crappy database to use for this simply because you need to make sure the user has various bits of Access available. It can be done, but the user will have to use an installer.

Two good deployment scenarios are that either the user already has Java installed or you've compiled to an exe and the JVM is hidden inside the exe. In both cases, the user can, after downloading your file, just double-click it. That's not hard to achieve.

The solution really is to dump Access and use a pure Java embedded DBMS. Here's one example. IDEs like Eclipse may provide you with a stater project that combines your GUI, embedded database, and deployment already set up. (I've never really gotten into Eclipse precisely because there's *so* much stuff there that it can be hard to figure out what's going on.)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On