This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "jar size & upload..." Watch "jar size & upload..." New topic

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??

Regards,<br />Andrea<br /> <br /><a href="" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID :<br /><a href="" 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="" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
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.
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)

Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
Thanks everyone...I don't speak english very problem was about the size of the jar, not about the name...
Thanks anyway.!
I agree. Here's the link:
subject: jar size & upload...
Similar Threads
Error while upload image after validation fail
Struts 2 FileUpload Interceptor Problem for Large File Size Upload....
Regarding Upload a file
File Uploaod Size Limit exceeded exception
Images is too big....