Hello Everyone,
I want to make a application in java which will have installation process.Means to say we click start button,select Drive,next,next etc
(Hope you all got my point,what I want to say).
So please help me.you are welcomed to give your suggestion.
Thanks & regards,
Gursewak Singh.
Let me first tell you I've never tried doing this before so I don't how much I'll be.
I will still attempt to help after all these a beginner forum so we can figure things out together right?
First I would say java is designed so that as long as you the JVM is on the machine a program does not need to be install it just be ran, however
I would think you could (for windows) copy Program.class or .jar file to programs directory
that should allow it to show in there programs folder on the start menu.
this would likely require them to have administrator right however.
The page which JK Robbins linked to no doubt points to various Java installers which you could use. However there's another way to install Java applications: Java Web Start. Using JWS you can put your application on a server along with a configuration file which says what version of the JVM it requires, what associated jar files it requires, and so on. The user clicks on a link which causes a download to start; this download ensures your machine has a suitable version of the JVM, downloads your application, and runs it. It can optionally create links in the start menu and on the desktop, and it can also be configured to check for updates whenever somebody runs the application.
Thank you Robbins :-),
Your link is quite helpful,I have created a installer using IzPack.
After reading some forms related to it I was able to create a Installer.
But if you have some experience in using this tool then please tell me where to put my source code files which I have to install.
Thanks again.
Ok,Good(much for me :-)),
Sir,first tell me from where I can download JWS,
I have searched it,but Oracle official site don't show any download link rather then JRE and JDK.only documentation and user guide is available.
Can I suggest that you spend more than 15 minutes reading about the product before you start asking questions?
That one is pretty clearly answered (or rather covered) right at the beginning of the Java Web Start Guide. The purpose of documentation and tutorials is to impart useful information to people, so don't just throw that away.
Paul Sir,
I tried but still I am not able to do what I want.
I am not getting the flow.I have create .jnlp file.
and other html file but how to link them
I have started using IzPack. And am successfully using it.
But there is one problem,I am not able to create shortcut using it.
I have studied the forms related to the problem.
I have Izpack's latest version.
I have put <native> tag,<resources>,shortcutSpec.xml.
But still it is not working.
Also I have added shortcut panel.
but installer that is created, doesn't show shortcut form while installation process.
<!--
A sample installation file.
Use it as a base for your own installers :-)
To compile it :
- go in the bin directory where you installed IzPack
- call "compile ../sample/install.xml -b ../sample"
-->
<installation version="1.0">
<!--
The info section.
The meaning of the tags should be natural ...
-->
<info>
<appname>Sample Installation</appname>
<appversion>1.4 beta 666</appversion>
<authors>
<author name="JPz" email="jpz@superman.org"/>
<author name="Hidden Man" email="hidden@hisdomain.com"/>
</authors>
<url>http://www.anotherworld-inspace-website.net/</url>
</info>
<variables>
<variable name="desktopshortcutcheckboxenabled" value="true"/>
</variables>
<!--
The gui preferences indication.
Sets the installer window to 640x480. It will not be able to change the size.
-->
<guiprefs width="640" height="480" resizable="yes"/>
<!--
The locale section.
Asks here to include the English and French langpacks.
-->
<locale>
<langpack iso3="eng"/>
<langpack iso3="fra"/>
</locale>
<native type="izpack" name="ShellLink.dll"/>
<native type="izpack" name="ShellLink_x64.dll"/>
<!--
The resources section.
The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
-->
<!--
The panels section.
We indicate here which panels we want to use. The order will be respected.
-->
<panels>
<panel classname="HelloPanel"/>
<panel classname="InfoPanel"/>
<panel classname="LicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="ShortcutPanel"/>
<panel classname="InstallPanel"/>
<panel classname="FinishPanel"/>
</panels>
<!--
The packs section.
We specify here our packs.
-->
<packs>
<pack name="Base" required="yes">
<description>The base files</description>
<file src="Readme.txt" targetdir="$INSTALL_PATH"/>
<file src="Licence.txt" targetdir="$INSTALL_PATH"/>
<file src="script.bat" targetdir="$INSTALL_PATH"/>