Here is an interesting article about how to create an exe from izpack jar
installer with bundled java:
http://mark.koli.ch/2009/10/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx.html
What is misisng here is how to make the bundled java available for the
installed application ( for installer itself will work, but not for the
installed application ). I saw many peoples looking for a solution for this.
It would be nice to include more documentation with IZpack.
Java is right now very spread for Web applications, but not for desktop
applications. Most of the users downloading a java desktop application have
no java installed or have an old version of java. Providing an executable
with java inside would be great. On izpack website there is no documentation
how to generate exe with java included ( this would start the installer )
and how than to start the installed application using the same java.
-r
Dragos
--
View this message in context: http://old.nabble.com/Build-exe-from-installer-with-JRE-bundled-tp32830274p32830274.html
Sent from the izpack - users @ codehaus mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Thank you for you share this.
How to install JRE for installer and installed app.
It is my app's problem too.
I think we can package the JRE installer to 7z file.
After unpack, the installer use bat/shell script to check JRE.
If not install yet, install JRE first.
Then invoke "javaw -jar ****.jar"
-----------------------------------------
Quan Zongliang(qua...@highgo.com.cn)
HighGo Tech Co., Ltd.
On 2011/11/12 15:56, dprutean wrote:
>
> Hi,
>
> Here is an interesting article about how to create an exe from izpack jar
> installer with bundled java:
>
> http://mark.koli.ch/2009/10/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx.html
>
> What is misisng here is how to make the bundled java available for the
> installed application ( for installer itself will work, but not for the
> installed application ). I saw many peoples looking for a solution for this.
> It would be nice to include more documentation with IZpack.
>
> Java is right now very spread for Web applications, but not for desktop
> applications. Most of the users downloading a java desktop application have
> no java installed or have an old version of java. Providing an executable
> with java inside would be great. On izpack website there is no documentation
> how to generate exe with java included ( this would start the installer )
> and how than to start the installed application using the same java.
>
> -r
> Dragos
>
---------------------------------------------------------------------
@echo off
SET ReqVer=1.6
FOR /F "tokens=1,2 delims=." %%A IN ("%ReqVer%") DO (
SET ReqMajorVer=%%A
SET ReqMinorVer=%%B
)
FOR /F "tokens=3" %%A IN ('JAVA -version 2^>^&1 ^| FIND /I "java
version"') DO (
FOR /F "tokens=1,2 delims=." %%B IN ("%%~A") DO (
SET JavaMajorVer=%%B
SET JavaMinorVer=%%C
)
)
IF %ReqMajorVer% GTR %JavaMajorVer% (
ECHO Please install Java %ReqVer% or later
) ELSE (
IF %ReqMinorVer% GTR %JavaMinorVer% (
ECHO Please install Java %ReqVer% or later
) ELSE (
ECHO Java %ReqVer% or later is already installed
REM java -jar file_exchange_api.jar fex.properties %*
)
)
On 2011/11/12 15:56, dprutean wrote:
>
> Hi,
>
> Here is an interesting article about how to create an exe from izpack jar
> installer with bundled java:
>
> http://mark.koli.ch/2009/10/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx.html
>
> What is misisng here is how to make the bundled java available for the
> installed application ( for installer itself will work, but not for the
> installed application ). I saw many peoples looking for a solution for this.
> It would be nice to include more documentation with IZpack.
>
> Java is right now very spread for Web applications, but not for desktop
> applications. Most of the users downloading a java desktop application have
> no java installed or have an old version of java. Providing an executable
> with java inside would be great. On izpack website there is no documentation
> how to generate exe with java included ( this would start the installer )
> and how than to start the installed application using the same java.
>
> -r
> Dragos
>
---------------------------------------------------------------------
The idea was to provide the jre one time in the setup.exe and make available
for installer and application.
In all this workflow there is no call to the installed java on the computer.
In this way the workflow is independent from whatever java is installed.
Let me share a bit also my experience regarding about the user expectations.
Many users don't want to hear about java desktop application. They think
Java is slow, hard to install, etc. Still, Android is Java and is fast. As
soon as I ask them to install Java by themselfs they give up by using the
application. They don't care if my application is 20M larger. The want only
to download, install and everything to work. Many times the Java is
installed, but is 1.5 and I need 1.6. If I tell the users 'upgrade your
Java' they give again up. So my target is: embed java in my application, no
dependency to the user system, no installation of Java, just my application
work in any situation. The users doesn't even to know in which language is
the software written. They will simply use it !
This workflow could be used to make a self-extracting archive also for
linux.
I am looking forward to implement this stuff and the best would be later to
add it or similar to the izpack documentation. In this way can be used also
by other users, improved and due many usages will become stable.
-r
Dragos
--
View this message in context: http://old.nabble.com/Build-exe-from-installer-with-JRE-bundled-tp32830274p32832754.html
Sent from the izpack - users @ codehaus mailing list archive at Nabble.com.