jQuery in Action, 2nd edition*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Size of jar file to upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Size of jar file to upload" Watch "Size of jar file to upload" New topic
Author

Size of jar file to upload

Amar Thia
Greenhorn

Joined: Dec 20, 2004
Posts: 23
Hi,
The size of my jar file with just the sequence diagram alone is coming to 600KB. In the assignment instructions, Sun says to have the file size between 200k and 400k. How did you guys do it? Sun suggests "optimizing the graphics"... Did you do that? If yes, can you suggest some softwares. Or did you use some other technique.

I am using StarUML. I use the "export the diagram" feature to create jpegs.

HELP!

Thanks,
Amar.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Don't use JPG, use PNG instead.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Ronald Wouters
Ranch Hand

Joined: Apr 28, 2005
Posts: 190
Even when using png the size of my jar was too big.
I used IrfanView to do a "convert to grayscale" on the png color images. That reduced the size of my jar almost by half.
The total size of my upload jar was about 700KB.

Regards


Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Ronald , if use PNG, size of images should be quite small, make sure your work is not too detailed.
You should focus on architecture, and key design, not complete design.

But I wonder, does Sun restrict size of the jar file to not exceed 400K? Or Sun just suggests? If it's only a suggestion, I think no need to worry to much.
Amar Thia
Greenhorn

Joined: Dec 20, 2004
Posts: 23
It appears StarUML can only *.jpg *.jpeg *.bmp *.wmf *.emf


It does not have a png. So, what did you use for creating your diagrams.

Thanks,
Amar
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
I think you can open JPG files in MS Paint and save as PNG.

I used MagicDraw.
Amar Thia
Greenhorn

Joined: Dec 20, 2004
Posts: 23
Kengkaj,
Thank you so much... You are very helpful..

Just FYI... I used MS Paint and saved to PNG - it doubled the size --- But, when I saved it to GIF -- it reduced.

Using MS-Paint:
JPG File of 256 KB was converted to 441 KB .png file

JPG File of 256 KB was converted to 82 KB .gif file

That was a huge relief...

Thanks,
Amar
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Glad to hear you solved the problem, thanks for update .

It's new to me that converting JPG to PNG make file size bigger. I think there is a different between export diagram directly to PNG and export to JPG and then convert to PNG.
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
Is there any size restriction on the assignment? my friend's assignment is around 900KB and still he uploaded and passed the exam.


Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Monu Sharma wrote:Is there any size restriction on the assignment? my friend's assignment is around 900KB and still he uploaded and passed the exam.

For current version, I think no. but I heard that there is a size limit in an old version of SCEA. I think it's a strange restriction, B&W images will be smaller than colored images anyway but that doesn't mean B&W images are anything better.
Anand Ramesh
Greenhorn

Joined: Apr 28, 2009
Posts: 27
Size limit is 1000K when I uploaded my assignment this week.


Ramesh
SCEA 5
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Ram And wrote:Size limit is 1000K when I uploaded my assignment this week.

This is new to me. I passed SCEA 5 Beta which didn't have size limit.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Size of jar file to upload
 
Similar Threads
Regarding SCEA Part-2 Assignment (After checking All answers in Java Ranch)
Passed SCEA with 92%
SCEA part-2 JAR file size limit
Passed part II and III 88%
passed SCEA with 99%