• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

(NX,URLyBird)About submission packaging:

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all:
I have created a excutable jar file named "runme.jar", and I should also create a jar file including runme.jar,source file,doc,etc.
So, how can I name this jar file, it was not mentioned in the instructions, and how can I package a directory using jar command??
I always use IDE and not familiar with Command line.
One more question:
If all the program files, including db file, are packaged in a jar file, how can a user find the location of db file using a filechooser when the program is running?? The filechooser can not find a file in a jar file!
[ January 19, 2004: Message edited by: biang lin ]
[ January 19, 2004: Message edited by: biang lin ]
[ January 20, 2004: Message edited by: biang lin ]
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Biang,
You will find when you go to upload the assignment that right before you perform the upload they will tell you what name the project jar file must use. It will be something like scjda-XXXXXXXXX.jar, where the XXXXXXXXX is your 9 digit Prometric ID. But don't take my word for it. Go to the site: http://www.certmanager.net/sun_assignment/ and go through the process of uploading your assignment until you see the page that tells you what to name the jar file you need to submit. Then, and this is important, don't actually continue with the upload, but logout from the site. So now you know what your submission jar file should be named. Why Sun couldn't have told us this information in the assignment instructions is one of the mysteries of the universe.
I created a \submission directory into which I put all the things the packaging section of the assignment instructions required in exactly the way it was specified. Then I ran something like the following:
jar cvf scjda-XXXXXXXXX.jar -C /submission .
The Sun grader is going to extract the jar file using something like this:
jar xvf scjda-XXXXXXXXX.jar /install_directory
So I think the problem you're anticipating with finding things in a jar file will disappear.
I strongly recommend, before you submit your jar file, that you take it to a different machine than the one you developed it on and extract the jar to an empty directory and, following the instructions from your userguide document, install your application and get it running. If there are any problems, fix them, and repeat this test until your submission is perfect. Go back to the packaging section in the assignment instructions and make certain each item that is required is actually present in your submission and then check-off the item from the packaging section. What I'm getting at is that there are no second chances. So make sure that your project submission is all there and that it's structured exactly like it's supposed to be before you upload it.
Hope this helps,
George
[ January 20, 2004: Message edited by: George Marinkovich ]
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi George,
Thank you very much for your recommendation, I will follow it.
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic