Forums Register Login

How to make java as install-able like other software set ups

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
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.


+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Paul Sir,your suggestion seems to be interesting.
I will Google it.
If you have experience of using JWS then help me(Why to ask Google :-) ).
Thanks.
+Pie Number of slices to send: Send
Robbins Sir,
One more this,IzPack only copies the file to the desired location.How it is installation?
And if we have to create a shortcut etc?
+Pie Number of slices to send: Send
 

Gursewak Singh wrote:If you have experience of using JWS then help me



Yes, I have used it. It does work for distributing Java-based software. And I believe that fully answers the question you asked.

However, I did spend the 15 seconds to Google it. Here's a link to the Oracle tutorial: http://docs.oracle.com/javase/tutorial/deployment/webstart/, which includes links to other useful pages.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send

Yes Yes.
Again Thanks
+Pie Number of slices to send: Send
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
1
+Pie Number of slices to send: Send
I think this question is too difficult for “beginning”, so I shall move it.
+Pie Number of slices to send: Send
Usually when I have a question about how to do something in HTML, I look for an existing HTML on the web which does the same sort of thing.

Here's an example of an HTML which links to a JNLP file: http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html.
+Pie Number of slices to send: Send
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.

given blow is my install.xml


<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<!--
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.
-->

<resources>
<res id="LicencePanel.licence" src="Licence.txt"/>
<res id="InfoPanel.info" src="Readme.txt"/>
<res id="shortcutSpec" src="shortcutSpec.xml" />
</resources>

<!--
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"/>

<parsable targetfile="$INSTALL_PATH/script.bat"/>

<!-- The file will be parsed -->
</pack>
<pack name="Docs" required="no">
<description>The documentation</description>
<file src="doc" targetdir="$INSTALL_PATH"/>
<!-- Reccursive adding -->
</pack>
<pack name="Sources" required="no">
<description>The sources</description>
<file src="src" targetdir="$INSTALL_PATH"/>
</pack>
</packs>

</installation>

this is shortcutspec.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<shortcuts>

<programGroup defaultName="MyApp"
location="applications"/>
<shortcut
name="wekautils"
target="$INSTALL_PATH\src\com\myCompany\tools\install\listener\Issue_Tracker.jar"
description="Launch app"
workingDirectory="$INSTALL_PATH"
iconFile="$INSTALL_PATH\images\logo.ico"
initialState="normal"
programGroup="yes"
desktop="yes"
applications="no"
startMenu="no"
startup="no">

<createForPack name="Base"/>
</shortcut>

<shortcut
name="Documentation"
target="$INSTALL_PATH\doc\doc.txt"
description="Launch documentation"
initialState="normal"
programGroup="yes"
desktop="no"
applications="no"
startMenu="no"
startup="no">

<createForPack name="Base"/>
</shortcut>

</shortcuts>
Forget Steve. Look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2869 times.
Similar Threads
new to java
Struts and JSP problem
Passed SCJP with 90%
validatation should not work for some actions
.NET dataset in java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:05:16.