aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Final Jar 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 "Final Jar" Watch "Final Jar" New topic
Author

Final Jar

Matt Pavlovich
Ranch Hand

Joined: Aug 14, 2010
Posts: 98
Hey everyone,

I am reading the last bit of the instructions, and they state that I should have a directory called code, "containing all the source code and related parts of your project." I understand they want my .java source code, but what exactly might they mean by the last part "and related parts"?

Thanks everyone.
Matt
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5599
    
  15

Could be everything:
  • images you have used as icons
  • files containing translations (if you have applied i18n in your assignment)
  • each of my packages has a package.html (for javadoc)
  • ...


  • SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
    http://www.javaroe.be/
    Matt Pavlovich
    Ranch Hand

    Joined: Aug 14, 2010
    Posts: 98
    Understood...thanks, Roel.
    Matt Pavlovich
    Ranch Hand

    Joined: Aug 14, 2010
    Posts: 98
    I am noticing now, too, that the instructions don't say anything about placing the .properties file in the final jar. However, they do say, "All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory." That led to me to believe it should be included in the final jar at the same level as the runme.jar. However, they don't say anything about it in the deliverables section. Am I missing something?

    Thanks,
    Matt
    Roel De Nijs
    Bartender

    Joined: Jul 19, 2004
    Posts: 5599
        
      15

    Matt Pavlovich wrote:Am I missing something?

    I don't know, maybe a bit of money

    No need to add the file to the runme.jar (otherwise you would have a lot of trouble to try to save changes to this file in the jar). The 1st time no file exists, so you'll create this properties file (with the data entered by the user) and the 2nd time you'll use the created file to retrieve the necessary information. When the user makes a change, you update the appropriate line in the file with the new value.
    Matt Pavlovich
    Ranch Hand

    Joined: Aug 14, 2010
    Posts: 98
    So long as I pass on the the first try I won't be missing any $$.

    The file creation makes sense. Thanks.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Final Jar