File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes jar size & upload... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "jar size & upload..." Watch "jar size & upload..." New topic
Author

jar size & upload...

Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
I have packaged the entire application as required, but the size of the myapp.jar is about 1200 KB...! what happen if the upload fails??
Thanks


Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : a.gazzarini@gmail.com<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
"If at first you don't succeed, try, try, again..."
It may be a good idea to put your upload file size into the name of your upload file; e.g., AndreaGazzarini(1209586Bytes).jar


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
So the naming of the submission jar-file is free ? I've seen somewhere that the name have to be scjda-xxxxxxxxx.jar where xxxxxxxxx is your identity at certmanager.
Cheers
Torgny
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
You may be right about that Torgny- it wasn't in my requirements, and I'm giving my code one more read thru before I upload.
If you can't edit the upload .jar filename- e.g., scjda-xxxxxxxxxAndreaGazzarini(1209586Bytes).jar or scjda-xxxxxxxxx(1209586Bytes).jar- then you might want to embed a 0 bytes file "FileSizeShouldBe1209586" in your .jar, and perhaps also include the file size in your README.
Normally it should be evident if the file didn't upload correctly, but the above safeguards may save some headaches if indeed the .jar doesn't.
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hi Andrea,
when I tried to upload my assignment for the first time, I kept getting an error message such as "you are not entitled to submit this kind of I don't know what". I complained and two days later I was able to submit the jar file.
READ THE INSTRUCTIONS CAREFULLY!!! Because they tell you how to name your jar file before submitting it.
Good luck!!!
Mag (SCJD)


Mag
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
Thanks everyone...I don't speak english very well...my problem was about the size of the jar, not about the name...
Thanks anyway.!
 
Consider Paul's rocket mass heater.
 
subject: jar size & upload...