aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes deploy jar size, please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "deploy jar size, please help" Watch "deploy jar size, please help" New topic
Author

deploy jar size, please help

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi people,

I am very very close to upload my assignment and I have a small problem, its size. More precisely I choose to use user guide in HTML format and here I use a lot of pictures. I use this HTML pages also in my online help - so I pack them in my jar and in the code directory. If I put all together I get this HTML files (and the related pictures) in three locations :
1.in my runme.jar - needed from the online help system.
2.in my code - required by the specification ("A directory called code, containing all the source code and related parts of your project")
3.in my docs directory - the User documentation for the database server and the gui client.

and for this my deploy jar goes 2975 K.
The upload side advice us to use "small" files ("Some student experience problems uploading files greater then 1000K") so I can get in problem.

I hope that there is no size limitation ?
What king of problems I can get with bigger files ? and why ?

What I should do ?

1.Ignore it I try it ?
2.Remove some pictures until the size goes smaller?
3.remove the user guide files from the docs directory, because this material is already available in the online help ?

Thanks,
M
[ May 16, 2007: Message edited by: Mihai Radulescu ]

SCJP, SCJD, SCWCD, OCPJBCD
Romeo Son
Ranch Hand

Joined: Mar 12, 2007
Posts: 92

Hi Mihai,

About your concerns:


1.Ignore it I try it ?
2.Remove some pictures until the size goes smaller?
3.remove the user guide files from the docs directory, because this material is already available in the online help ?


1. If you choose just to ignore, you are doing it on your own risk, Sun's warning is pretty clear, so you might not have problems when uploading, but you might fail you upload (that is my understanding).
2. This is better than 1 in my opinion, but anyway, it shouldn't be in three places (same thing).
3. In instructions.html they say clearly:
If your user documentation is online then you may omit this file. However, if the documentation is not online, you must provide either a single plain ASCII (not word processor format) text document, which must be called userguide.txt, or multiple HTML files which must all be accessible from a starting point document that must be called userguide.html.

So I guess 3 is the most suitable. However, I don't understand what they mean by online, to put it on a web server or to have it in your runme.jar.

Regards,

Romeo
[ May 16, 2007: Message edited by: Romeo Son ]

SCJP 1.4, SCJD, OCE EJBD 6
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Mihai Radulescu:
Hi people,

I am very very close to upload my assignment and I have a small problem, its size. More precisely I choose to use user guide in HTML format and here I use a lot of pictures. I use this HTML pages also in my online help - so I pack them in my jar and in the code directory. If I put all together I get this HTML files (and the related pictures) in three locations :
1.in my runme.jar - needed from the online help system.
2.in my code - required by the specification ("A directory called code, containing all the source code and related parts of your project")
3.in my docs directory - the User documentation for the database server and the gui client.

and for this my deploy jar goes 2975 K.
The upload side advice us to use "small" files ("Some student experience problems uploading files greater then 1000K") so I can get in problem.

I hope that there is no size limitation ?
What king of problems I can get with bigger files ? and why ?

What I should do ?

1.Ignore it I try it ?
2.Remove some pictures until the size goes smaller?
3.remove the user guide files from the docs directory, because this material is already available in the online help ?

Thanks,
M

[ May 16, 2007: Message edited by: Mihai Radulescu ]



I had none of these problems as the size of my jar was only 200k. . Have you duplicated all the HTML and image files in the code directory> In my opnion the code directory should be for java source files only, duplication in here is not nescessary.

What I would also be looking at is doing is trying to compress the images contained in your help files as much as possible. Of course if this is already done then you may have to start removing some images from the documentation. If you have online help then you do not need the text userguide in the docs directory, but I would be very surprise if this helped with the size issue in any way.

Regards,
Mark


SCJP<br />SCJD
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

This is my dir structure :
101K code/help/client
12K code/help/server
113K code/help
129K code/suncertify/db/io
201K code/suncertify/db/client
36K code/suncertify/db/server
442K code/suncertify/db
1.1M code/suncertify/gui
28K code/suncertify/util
48K code/suncertify/lockmanager
1.6M code/suncertify
1.7M code
8.0K db-1x3.db
101K docs/client
12K docs/server
137K docs/javadoc/suncertify/db/io/class-use
493K docs/javadoc/suncertify/db/io
309K docs/javadoc/suncertify/db/client/class-use
858K docs/javadoc/suncertify/db/client
52K docs/javadoc/suncertify/db/server/class-use
176K docs/javadoc/suncertify/db/server
76K docs/javadoc/suncertify/db/class-use
1.8M docs/javadoc/suncertify/db
1.3M docs/javadoc/suncertify/gui/class-use
4.2M docs/javadoc/suncertify/gui
24K docs/javadoc/suncertify/util/class-use
108K docs/javadoc/suncertify/util
36K docs/javadoc/suncertify/lockmanager/class-use
156K docs/javadoc/suncertify/lockmanager
6.2M docs/javadoc/suncertify
4.0K docs/javadoc/resources
741K docs/javadoc/index-files
7.1M docs/javadoc
7.3M docs
360K runme.jar
4.0K version.txt
9.3M total

as you can see the biggerst is the docs dir.
I think I'll risk it.
[ May 16, 2007: Message edited by: Mihai Radulescu ]
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Mihai Radulescu:
This is my dir structure :
101K code/help/client
12K code/help/server
113K code/help
129K code/suncertify/db/io
201K code/suncertify/db/client
36K code/suncertify/db/server
442K code/suncertify/db
1.1M code/suncertify/gui
28K code/suncertify/util
48K code/suncertify/lockmanager
1.6M code/suncertify
1.7M code
8.0K db-1x3.db
101K docs/client
12K docs/server
137K docs/javadoc/suncertify/db/io/class-use
493K docs/javadoc/suncertify/db/io
309K docs/javadoc/suncertify/db/client/class-use
858K docs/javadoc/suncertify/db/client
52K docs/javadoc/suncertify/db/server/class-use
176K docs/javadoc/suncertify/db/server
76K docs/javadoc/suncertify/db/class-use
1.8M docs/javadoc/suncertify/db
1.3M docs/javadoc/suncertify/gui/class-use
4.2M docs/javadoc/suncertify/gui
24K docs/javadoc/suncertify/util/class-use
108K docs/javadoc/suncertify/util
36K docs/javadoc/suncertify/lockmanager/class-use
156K docs/javadoc/suncertify/lockmanager
6.2M docs/javadoc/suncertify
4.0K docs/javadoc/resources
741K docs/javadoc/index-files
7.1M docs/javadoc
7.3M docs
360K runme.jar
4.0K version.txt
9.3M total

as you can see the biggerst is the docs dir.
I think I'll risk it.

[ May 16, 2007: Message edited by: Mihai Radulescu ]


Two things that strike me is firstly how come the javadoc directory is 7.1 MB in size . That seems absolutely massive, I would have thought it would have to come to a maybe of 600-700K at the most. Secondly the code directory seems a little on the large size also (especially the gui subdir), have you things other than source files in here? Also I do not think this is the most approprite location for help files.

Just to give you a comarison I checked my project and the total size was 237Kb for the jar file (I had no HTML help or icons in the GUI). Unzipped this amounts to just 937 Kb altogether. And I got full marks for documentation so sometimes less is more .

A rough breakdown is as follows:

/runme.jar - 46K
/db file - 5K
/version.txt 1K
/code dir - 168K
/docs - 782 K
/userguide.txt - 16K
/Choices.txt - 40K
/instructions - 24K
/javadoc dir - 703K

Of course it is up to you if you wish to upload as is, but I think you definately have scope for improvement in the file size before submission. If the upload fails you may have to wait for some time for prometric to reset the upload permissions.

Regards,
Mark.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Mark,

I submit it, it has 1.6 M and was successful accepted by the cert manager.
If there will be no problem I can start to think on other certification objectives .

Regards,
M
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Ok, I summited my assignment an now I'll schedule the exam.
Where I follow the results ? on the Cert Manager - from where I download/upload my assignment ? or on Promentrics ?

Regards,
M
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Mihai Radulescu:
Ok, I summited my assignment an now I'll schedule the exam.
Where I follow the results ? on the Cert Manager - from where I download/upload my assignment ? or on Promentrics ?

Regards,
M


Glad the assignment went up ok . The results will show up in certmanager in the next 4 weeks or so (hopefully no longer), under the test history button. Best of luck with the essay exam.

Regards,
Mark
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Thanks!
Lucy Hummel
Ranch Hand

Joined: Apr 07, 2005
Posts: 232
Hi Miahi,

When are you going to your exam?

I scheduled my exam tomorrow.

Both of us luck


----------------------------------<br />| SCJP, SCWCD, SCBCD, SCEA, SCJD |<br />----------------------------------
Romeo Son
Ranch Hand

Joined: Mar 12, 2007
Posts: 92

Hi Lucy, Mihai

I wish you both good luck too and thanks for your replies to my problems, it helped a lot!

Regards,

Romeo
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi,

My next exam is on 4 -jun-2007, that was the first date free here, here are a of holidays so a lot of people are free - so they took over the prometics test centers (all over the Munchen).

Lucy , good lock. wait you with details about the essay exam - I can no longer wait for my.

Romeo,
Thanks for good wishes - if I can still help you don't hesitate to ask.

Regards,
M
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploy jar size, please help
 
Similar Threads
non java files in the code direcotry, a deploy question
About the file Delivery
NX:What is the name of uploaded jar file?
Format for Design Documentation
Read file from Jar - Exception