16

Possible Duplicate:
What is the point of Java’s package naming convention?
What package name to choose for a small, open-source Java project?

I write Java (and derivative languages with package names) for personal use, but I don't have a personal domain name, so the standard packaging naming convention doesn't hold. Since the same convention is used in Maven group-id's, the problem is the same there.

What should I use for the root of my package name?

C. Ross
  • 2,926

3 Answers3

8
com.ross
org.ross
personal.ross

Really, who cares? It's probably not important if you don't know what to choose. Or you wouldn't ask.

2

One idea would be to use your name, like org.cross.

1

Imagine you'd get a domain. I'd bet neither org.cross nor com.ross from the other answers are free, but something more complicated is. Go to a web domain registrator page and query what's free (you don't need to buy or reserve the domain). This is how I'm doing it since years; I still need no domain, but the one I chose is still free.

maaartinus
  • 2,713