permaculture playing cards*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 5122
    
  12

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: 5122
        
      12

    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.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: Final Jar
     
    Similar Threads
    include the compiled code in submission?
    code directory question
    Number of classes/interfaces
    non java files in the code direcotry, a deploy question
    JSP-ASP