Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

I am close to submit - Quetion a bout how to package

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It was mentioned in my Assignment (UrlyBird) that your data access class must be called "Data. Java", must be in a package called "suncertify.db". Any unimplemented exceptions in this interface (DBmain) must all be created as member classes of the suncertify.db package.

-The other classes must be in the same package or must be in a different package? If it is a different package, does this must be suncertify?

-When packaging the classes into a single JAR file (runme.jar), do we have to reflect the packages structure?, for example, Data.class must go under suncertify/db directory?
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The other classes should be under suncertify.xxx, where xxx should only be db for those classes that are concerned with database access.
I, for example, have the following packages:
suncertify.db
suncertify.gui
suncertify.locking
suncertify.rmi
suncertify.util

And yes, the structure needs to be reflected in the jar file. It won't execute otherwise.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic