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?

  • Do you have a blog? You could "craft" a domain-like structure out of your blog URI.
    – sharptooth
    Commented Dec 3, 2012 at 14:59
  • 4
    personal.c_ross? Or get a domain name? Commented Dec 3, 2012 at 15:08
  • @gnat - Yes, this is a duplicate of another question and should be closed, but why is that question closed? I just voted to reopen that one. Clearly this affects more than one person - everyone programming Java who doesn't own a domain is affected. Commented Dec 3, 2012 at 17:15
  • @GlenPeterson I believe both your and SOSJP questions are borderline between shopping and good, and that good parts of them are sufficiently well covered by What is the point of Java’s package naming convention?
    – gnat
    Commented Dec 3, 2012 at 21:09

3 Answers 3


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

  • 1
    To add: the domain is largely arbitrary and, in my experience, used more to ensure a unique application name (kind of like when websites use your email address as the username - it's guaranteed to be unique, because another authority has ensured it to be so). I wouldn't go with a "com." domain unless you own that ".com", though, just to avoid potential confusion with the owner of that HTTP domain. Personally, I like Alex Feinman's suggestion of "personal.[name/username]".
    – Shauna
    Commented Dec 3, 2012 at 15:32

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


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.

  • 8
    ...But what would you do if the one you chose gets bought tomorrow? Commented Dec 3, 2012 at 15:28
  • @FrustratedWithFormsDesigner: The life is full of risks and I took this one. For some time I'd do nothing and when needed I'd switch everything to a new domain. That's surely no easy task and would cost me quite some time, but the only alternative is to buy the domain immediately. It's not expensive, but the probability of somebody buying "my" domain is very low.
    – maaartinus
    Commented Dec 3, 2012 at 16:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.