packaging a java application alongwith jdk/jre

Hello

I have developed an application in java using netbeans. I have created a jar file of my application. Now for deployment of my application on other user machines, i need to somehow package the entire jdk along with my application. The condition put on me is that this whole package size should not exceed 1 MB. The reason I am asked to package jdk is that even if the end user does not have jdk installed on his machine, he should be able to run my application. As you know jdks and jres are 100-180 MB, so can anyone please tell me if there is a way to package the entire jdk/jre along with my application in less than 1 MB space. This is very important for me, please help me out. Thanks.

[708 byte] By [preetimalika] at [2007-11-26 17:28:54]
# 1

I can't see a method to package a JDK/JRE along with your application in less that 1 MB.

What I can suggest you is to go for java WebStart. It will automatically check for your jar files if you have made any changes to it. The user will be automatically able to download the latest version of your application.

Another thing you can do is provide a link to the user on a intranet page to install the JDK on the system.

Other wise wait and see if any body has a great idea of doing it.

sabya at 2007-7-8 23:56:50 > top of Java-index,Desktop,Deploying...