How to make standalone java application without installing JRE on machine ?
807589Jul 25 2008 — edited Jul 25 2008HI,
Iam going through a some serious issue here with my project,I have made an small application which have just 2 forms in Swings,this application generates HTML report,now i have made this application for windows and my application also dont needs JRE to be installed on user machine,User can copy that application and run batch file and my applications starts working, i have embeded JRE files with that application,What i did i put Jre files into one folder,Jre's bin and Lib folder and place my application jar file with that,all these three folder and files are in one folder and alongwith that folder i provide user with batch file which run javaw.exe command from bin folder which make my application working without Jre,My serious issues are as following if anybody can help on that
1.My application JAr file size is jus 445 kb,but i have embeded JRE required files it makes my application file 20 mb,which is not a gud size for small application,if i remove any more file from my Jre bin or lib folder my application stops working.I want my application file not more than 5 MB.
2.I want to make exe file of my whole application,i know we can make Jar to exe but as i told you people my applicatioon contains Jre required folder too and batch file to run it,how can i make one exe file that call my batch file.
If anybody can please help me on that it wil be a great releif for me.
Thanks.
Simer.