• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Part 2 -Upload restrictions and creating the .jar file

 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct me if I'm wrong here:

1. File size should not exceed 1 MB
(I hear png is a good file format to compress the file size of the UML diagrams - linked to the web page)

2. How do I create the .jar?
a - use winzip or some zip software and rename the extension to .jar (or)
b - use eclipse and .jar the .html and image files
 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating the .jar file was easy.
But my images are making the .jar file go past 1 MB.
I am still tyring to find ways to compress the diagrams.
.png format for pictures is one option I am exploring.. Ideas are welcome
 
muhilan govin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try making the diagrams black and white if they are colored.That would decrease the size.

Regards,
Muhilan
 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Point taken.
I only hope that Sun increases the bandwidth to 2 MB or more since the assignment needs deliverables which have graphic content: at least 5 diagrams?
 
Nithi Rajan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also experiment with gif. Sometimes, they are smaller than png.

I have a question to ask.

1. Is it sufficient to have only one html file [index.html] OR
should we have html file for each Diagrams [like Classdiagram.html, ComponentDiagram.html ...]

 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we have only a index.html,
that would mean that the hyperlinks to the diagrams and other deliverables.

But having a separate .html page for each deliverable opens the scope for having some notes along with the diagram.

Hey.. Picasa's export option does a good job of compressing the image file without compromising on its image quality.
 
Eoin Li
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For images, I use *.emf and images file size reduces a lot for my case.
 
Drago Z Kamenov
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prabu Senthyl Arumugam wrote:
2. How do I create the .jar?
a - use winzip or some zip software and rename the extension to .jar (or)
b - use eclipse and .jar the .html and image files


...or
c- command line:

jar -cvf scea-XXXXXXXXX.jar index.html <other files separated by spaces>
 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Drago. I ended up calling jar from command line. Now I am trying to fit the contents within the 1 MB mark
 
Alexandre Santos
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

One question: in the JAR file can I put image files like "jpg", etc, or can I just put "html"'s files?
If just "html"'s files are allowed how I insert a image file inside a "html" file?

Thanks, Best regards.
 
Prabu S Arumugam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have an index.html say in C:/your/folder/index.html and images in C:/your/folder/img
you need to say
This will pick up the html file and all contents in the img folder
This should work assuming you have references to the images (in img folder) from the index.html
Compress images using Export option in Google Picasa. This can reduce the file size upto 50% without loosing a lot on quality
All the best !!
 
Alexandre Santos
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I used Jude (Astah) to make the diagrams, then I used “copy to clipboard” option as .emf files, then I used Image Analyzer software just to paste the images and saved it as .png files.
Using the command line above, my .jar size got about 243 KB and, the images quality is very good!
Thanks all and best of luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic