• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in creating advance installer  RSS feed

 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a standalone application with database connectivity.
i have created jar file for that, also i have created executable file for that using (exe4j software).
but the problem is:-
one: i want to create some advance installer which should also come in add/remove(control panel), and which should be installable or setup like any software.
second: database connectivity is not working in exe4j.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is/should be platform independent. I am not sure what you try to accomplish is doable in a reasonable amount of time.
advancedinstaller might be a sollution.
Either way its not a Swing/ AWT/ SWT/ JFace question in my opinion.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried this, but the problem is
one thing it's not free.
and second is after adding my jar file and creating the installer i have installed that, and while launching that application,
i am getting an error, that is:
Could not find main class com/YourCompany/YourApplication/MainClass.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and my application is in swing, therefore i asked this question in swing forum, i m sorry if i asked this in wrong forum.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible in Java I am sure of it but if you already searched for frameworks to do that and came up with nothing i would guess you have to do it the hard way and code it yourself.
As I said that might not be a task done in a few days. I would review your requirements.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i would guess you have to do it the hard way and code it yourself.

so where do i look for this??

my requirements are i need to create an installer, for my standalone application, which has a registration page (values are inserting into database), and search from database, and fetching of records.
i need to create a installer which will install my application on clients machine and also appears in the add/remove in control panel, so any time should be uninstalled or installed..

Thank you for your response.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The query to the database is the easiest part i guess. Are you using jpa or a jpa service provider like hibernate at the moment?
The part where you need to tell windows to add/remove it to its known programs is the part where i got little idea of where to start.
Maybe you need to use some windows api calls through jni.
WinApi from Java might be what you need. Just found it quick search with google.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no i am not using any jpa.
and how WinApi from Java will help e to make a installer.
i had a google search but i m not getting exactly how it helps me, to create a installer??
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
I would do it like:
1. Create a wizardsystem which allows you to go through all installation steps.
2. Create views for the wizard.
3. Figure out how you would like to access the database. (Plain jpa, hibernate..., plain jdbc).
4. Figure out how you are going to tell windows that you installed a new software. Whether or not you are able to use WinApi from Java I got no idea. I simply throw you a library which may have the content you need with no knowledge if it does.
I might give hints with the first three points.
Point 4 is out of my expertise so far, I am more of a Linux guy ;).
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your help..
but how do i figure out first three steps??
in 3rd step initially i m using plain jdbc..
how to do 1 and 2??
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java wizard First hit on google.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manuel Petermann wrote:java wizard First hit on google.

I wrote one myself because the existing ones didn't fit my requirement/not actively developed anymore.

Edit: Sorry for double post. should have been an edit.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for sharing.
unfortunately http://java.sun.com/ not works here, i don't know why.
and while writing your own wizard from where you start i mean any good tutorial??
i mean how do i attach my application to that wizard, i m sorry if i am asking a silly question.

 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No tutorial for that. At least I didn't use one.
Use a CardLayout or write your own one. I wrote my own because CardLayout holds the instances of the view the whole time. Mine just holds the classes and places to get the data from.
Read some Books about design patterns. That might save you some trouble.
If you don't want to do that, you might just use some of the libraries flying around.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while searching on internet i found this:
http://www.javaworld.com/javaworld/jw-04-2008/jw-04-opensourcejava-wizard-api.html

i have downloaded one from here "osjp4-wizard"
are you talking about these libraries??
again apologies for my silly questions i am new to this.
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it does what you want it is.
Problem is, if you are stuck with an exception you might have to go through the sources of those wizards to fix the problem yourself. If you are up to that you are good to go.
 
Punit Jain
Ranch Hand
Posts: 1085
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay...i m just trying it...
i will post if i got any problem...
thank you for your help...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!