I’m a beginner in programming web apps with Java EE. How do you name your packages?
I often saw stuff like com.abc.commons… is there a standard or a common way to do that?
Thanks to seanizer, I gonna use your approach: com.mycompany.myproject.api
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
These parts usually enter into my package names
example:
One good practice is to have a common root package that is distinct for an individual project (jar etc). For example: in the jar myproject-api.jar , the root package would be
com.mycompany.myproject.api. That way you always know where to find your classes.