how to make a java application double clickable in windows?
Hey everyone,
I have a couple of questions.
firstly, I have never made anything good enough, to make into a full application, until now.
I have a bookingsheet which inputs/updates and counts data to & from MS Access from my java application.
My main question is, how do I make my java application double clickable to run from a windows machine?
secondly, as I have said my program is connected to MS Access, if I get this application deployed, can I get the program to connect with MS Access on another computer?
What I mean is, I had to go into my Control Panel > Administrative Tools > Data Sources and add my Database through that, would this be easy enough to do?
davy
[732 byte] By [
davyka] at [2007-11-27 4:50:20]

# 1
First of all, because of the platform independent nature of Java, it cannot be compiled and built into a free standing executable file (well... it can but you need to find a special program to do that).
The best way to do this is to package your java program into an executable JAR file. A quick google search turned up this simple looking tutorial in how to do that:
[url]http://neptune.netcomp.monash.edu.au/JavaHelp/howto/jar.htm[/url]
Users will be able to double click to execute the JAR file but only as long as they have a JRE installed on their system.
If MS Access is the datasource for your application then it likely will not work if you package it with the rest of your application. If you want to host an Access database on another machine then one technique that should work is to place in on a network shared folder on a remote machine, and then the users application can access the database from this network location.
Keep in mind however that this requires a Windows Network and you may need some code changes to accomodate for the new location of your database.