How to bundle JRE with application..

Hi all,

Anybody knows that how to bundle the JRE with swing application.

I had used the launch4j to create a exe of the jar file. If the on target machine JRE is not installed then it should be point to the jre dierctory of the application or should launch the JRE setup....

currently it will redirecting to the SUN's website...

Any one having better idea then please let me know..

Thanks in advance

[437 byte] By [Bnahirraoa] at [2007-11-27 1:11:11]
# 1
If you are going to bundle the JRE with the application, I would launch the application from the bundled JRE whether or not they had one already installed. This would also prevent JRE version conflicts (e.g. trying to run an application written under 1.5 or 1.6 using a 1.4 JRE).
kmangolda at 2007-7-11 23:46:32 > top of Java-index,Desktop,Runtime Environment...