I have a hobby opne source Java project hosted at google code (linkset).
May I use a prefix "com.google.code.linkset" as a package name for this project?
P.S. I dont own "org.linkset" domain :( but i like the name :)
I have a hobby opne source Java project hosted at google code (linkset).
May I use a prefix "com.google.code.linkset" as a package name for this project?
P.S. I dont own "org.linkset" domain :( but i like the name :)
the name of your packages does not have to reflect the domain it's hosted at.
I think using com.google prefix will mislead your users into thinking the code was developed at google. don't do it unless you want to handle the backfire from your users when they realize it's not.
You can use pretty much anything as a package name, provided that it respects the java spec (no keywords, not starting with a number ...) But really you shouldn't unless you work at Google!
Since it would be misleading as Omry already mentioned, why not use org.lbownik.util.linkset
?
If you name your package com.google.code.linkset
it is possible that sometime in the future you will receive a "cease and desist" letter from Google's lawyers, citing your package name as infringing Google's registered trademarks.
EDIT
If you ever do receive such a letter, do not ignore it based on some amateur legal theorizing you read on some website. If you want to resist the demand, you should first talk to a professional lawyer.
I think using com.google in your domain is a mistake, since it will imply that your project is owned/endorsed by Google. However, people have been using net.sourceforge in their Sourceforge-based projects for years, and this is really the same thing. I didn't think that was a good idea, either. So while you can use com.google in your domain, I think it's a bad idea and you should use something else.