Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by gnat, Thomas Owens Dec 3 '12 at 15:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Do you have a blog? You could "craft" a domain-like structure out of your blog URI. –  sharptooth Dec 3 '12 at 14:59
    
3  
personal.c_ross? Or get a domain name? –  Alex Feinman Dec 3 '12 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. –  GlenPeterson Dec 3 '12 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 Dec 3 '12 at 21:09

3 Answers 3

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.

share|improve this answer
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 Dec 3 '12 at 15:32

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

share|improve this answer

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.

share|improve this answer
5  
...But what would you do if the one you chose gets bought tomorrow? –  FrustratedWithFormsDesigner Dec 3 '12 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 Dec 3 '12 at 16:07

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