File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Please help me in creating setup in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Please help me in creating setup in java" Watch "Please help me in creating setup in java" New topic

Please help me in creating setup in java

salish sathya

Joined: Aug 20, 2008
Posts: 3
Hai friends,
I had developed an application for a video shop in netbeans in which the there were English,Hindi languages video section .If the user choose the english the data means the list of dvd,cd will be loaded on the drop down and the list of customers or a textbox to enter the new customer who want to take the dvd or cd for rent,the appliction was mainly developed on swing,and the data that stores is in the ms acess or in mysql.And there are other features also for the appliction.After the completion of the project the i clean and build the appliction,Then the netbeans create a jar file,But my problem is that how i will give the project to the customer ie the customer is a less knowledge in computer so i had to give this appliction in a setup format so that if he clicked the setup it will install the software with the whole database connection and database ,and if any day he uninstalled the s/w the data that store initially has not be remove from the computer.
I had gone through install4j s/w to make the setup but i not fully success in developing the s/w.Will any body please help me how to do the above thing or any website that form the tutorial to do this.

If mysql is the vendor of my database then if i had to install the mysql server as described in
etc sites or only special sectios has to install

I had gone through the .net platform in that if a datatabse application console application or windows application (CRUD)project had done then the setup creating can be done by a tool in that frame work in that also the database driver is also pointing so after creating the setup then that project on installing with the database driver +database the software(windows or console)appliction is getting to the client how can we do for a java application..

Please help me

Thanks in advance
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
installwer for j tools are good to bundle code into an executable .jar file and have some kind of wizard to unpack files. but they are only good or moving files, creating folders. I would expect having a java based installer try to install mysql would never work in a general case, every system has different settings and different security policies that would prevent well scripted installers [launched from java] from working in all cases. Especially since the mysql service would be registered as a windows service.

Would it be reasonable to assume the end user would install mysql by following a current best practice of download their executable installer click next on teh wizard. maybe provide a document of sample screen shots. and then your application installer could prompt for the mysql database username and password, and create the schema into the already installed before hand mysql database.

Another idea, woud it be possible to have your appication bundled with an embedded java database, such as h2database or hypersonic sql database, or derby ?
This way, it is possible for the application installer to install the files to c:\myapp or something, and the first time it is booted up, it could be pre-configued, or in the absense of a real user-set configuration to by default try to boot up an embedded Java database. (placing the data files in a folder inside the user's home folder maybe). Some webapp container products used to do the embedded database on install by default for quick start, and left it as a documentation reading exercise to figure out how to attach it to your database of choice. at the time it was perceived the java embedded database was somehow inferior but lately the h2 database is just as good or better for small to medium applications and can usually be just used for full time casual use instead of mysql. such as for making small easy to install with install4j desktop applications like you're doing.

Error: Keyboard not attached. Press F1 to continue.
salish sathya

Joined: Aug 20, 2008
Posts: 3
Thanks for your reply,do you know make the installer in install4j i had followed there steps in this

but i am getting error even for a "hello world "console application

please excuse me
I agree. Here's the link:
subject: Please help me in creating setup in java
It's not a secret anymore!