I want to develop desktop application in Swing or web start, client's specific requirement is application's executable size should not more than 5 MB. Is it possible to develop desktop application including Java runtime enviorment within 5 MB?
Are there any other ways to develop thic client with very less footprints.
Firstly Swing is a set of Java API's. Webstart is an application delivery mechanism. You can deliver a Swing application with webstart but beyond that there is little more in common.
Not possible to develop this application if the overall size is to include a JRE runtime and remain under 5MB. Current JRE download from the Sun website is 14MB in size.
If you can assume that the JRE is already installed on end-user machines then it is possible to keep the code below 5MB. Note that this has nothing to do with the runtime memory footprint. Our application is around 5MB of jar files but at runtime it blows out to 150MB of memory usage.
You can tell your application to only reserve 5MB of memory at runtime through java command line arguments but you would probably encounter a runtime out of memory error.
Good luck. Jared.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
posted 11 years ago
Thanks for quick reply. Internet speed is basic problem with application end users so client wants to keep minimum size of executable. If size is above 5MB end user will not download application with very less internet speed. we have advised various options other than JAVA like VB 6.0, Adobe AIR.