I�m thinking of putting a math website up. I created an application, which has a 7,712 KB executable jar file. My project looks like this:
Main Frame * A top canvas into which I draw and put images. * A left scroll pane into which I draw. * A right scroll pane into which I draw and put images.
Current Project Structure Along with a large set of support classes, I have about 20 classes with 100 question per class. Each question uses the canvas and two scroll panes.
Advice Needed Will my current project structure �fly� on the internet with 7,712 KB? Should I create a file for each of the 20 classes, and put 100 question into each file? I assume I can write the methods as a file of objects.
You are creating a Math website you say? But you are talking about Frame, Canvas, ...
What is it you are doing? Are you creating an Applet or a WebStart application? If so why are the jars so large? It cannot be the compiled classes that take up so much space! Are you using images? If so, maybe you can try to use smaller images. The size of the jars will not pose a problem but they will have to be downloaded and that takes time. I do not think a user wants to wait for your 7 MB application to be downloaded.
Take a look in your application and see what makes the jars so big.
Joined: Apr 22, 2005
Thanks for trying to help me. As a newcomer to java, I hadn't heard of Java Web Start. The idea of installing an application on a remote computer and maintaining control over it is intriguing, but for now, I'll stick to trying to get an applet running on the internet.
You were rightly confused about the structure of my applications. I referred to MainFrame.class as Main Frame and I draw in JPanels not canvas.
I think most of the 7 MB of my application is taken up by support methods and text files. (Explanations are quite wordy.) At this point, images files account for approximately 200 KB.
Is there anything I can do to make the size of my application/applet smaller: < 7 MB? Does putting the questions in files rather than in classes affect the size of the program?