Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Using the word java  as part of a package name

Thread view: 
Mangalaganesh Balasubramanian - 25 Jul 2007 19:05 GMT
Hi,

Is there any restricion on using java as part of my package name.

For eg,

com.test.java.impl

The JDK do not complain when i compile the code but i wanted to hear
what people do?

I was under the impression that the java as part of the package name
should only be used by the JDK libraries/classes.

Appreciate inputs

Manglu
Daniel Pitts - 25 Jul 2007 20:40 GMT
On Jul 25, 11:05 am, Mangalaganesh Balasubramanian <man...@gmail.com>
wrote:
> Hi,
>
[quoted text clipped - 13 lines]
>
> Manglu

There is no technical restriction, but I wonder why you would want to?
If its a java package, then its clear that its java.   The one thing I
would absolutely avoid is having the package name START with "java".
Lew - 25 Jul 2007 23:01 GMT
Mangalaganesh Balasubramanian wrote:
>> Is there any restricion on using java as part of my package name.
>>
[quoted text clipped - 7 lines]
>> I was under the impression that the java as part of the package name
>> should only be used by the JDK libraries/classes.

> There is no technical restriction, but I wonder why you would want to?
> If its a java package, then its clear that its java.   The one thing I
> would absolutely avoid is having the package name START with "java".

Right.  The rule is:
<http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.8.1>
> Names of packages intended only for local use should have a first identifier that begins with a lowercase letter, but that first identifier specifically should not be the identifier java; package names that start with the identifier java are reserved by Sun for naming Java platform packages.

Also, I would suspect that use even further down the package hierarchy,
besides being useless, violates Sun's trademark.
<http://java.sun.com/javase/6/docs/technotes/guides/jni/spec-1.4/copyright.html>
(and any other Sun copyright page)
> Sun, the Sun logo, Sun Microsystems, SunNet Manager, SunCore, SunWeb, Sun Workshop, Sun Workstation, Java, the Java Coffee Cup logo, JavaSoft, JavaBeans, HotJava, HotJava Views, Java WorkShop, Visual Java, JDK and all Java-based trademarks and logos, Solaris, the Solaris sunburst design, SolarNet, Solstice, NEO, Joe, Netra, NFS, PC-NFS, ONC, ONC+, OpenWindows, SNM, The Network Is The Computer, ToolTalk, Ultra, Ultracomputing, Ultraserver, Where The Network Is Going, and XView, are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.

Signature

Lew

Roedy Green - 26 Jul 2007 05:16 GMT
>Is there any restricion on using java as part of my package name.
The restriction is commonsense. Names are meant to make clear the
meaning and use of a package.  If you use word "Java" in there you are
engaging in deception, trying to mislead your users this is somehow a
package from Sun or written with Sun's blessing.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Mike Schilling - 26 Jul 2007 05:33 GMT
>> Is there any restricion on using java as part of my package name.
> The restriction is commonsense. Names are meant to make clear the
> meaning and use of a package.  If you use word "Java" in there you are
> engaging in deception, trying to mislead your users this is somehow a
> package from Sun or written with Sun's blessing.

Not necessarily.  I have, for instance, some code that models and generates
statements in various languages.  I don't think anyone draws that conclusion
from the com.mycompany.tools.generator.java package (nor does anyone assume
the com.mycompany.tools.generator.csharp package comes from  Microsoft.)
Twisted - 26 Jul 2007 09:04 GMT
On Jul 26, 12:33 am, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
> Not necessarily.  I have, for instance, some code that models and generates
> statements in various languages.  I don't think anyone draws that conclusion
> from the com.mycompany.tools.generator.java package (nor does anyone assume
> the com.mycompany.tools.generator.csharp package comes from  Microsoft.)

I don't see a problem with using "java" late in a package name,
especially if it's non-redundant as in Mike's example.

Using "java" at the very beginning may be trademark infringement
however, as it may cause confusion as to whether the contents are
officially endorsed by Sun or officially part of the standard library.
Using "com.sun." at the beginning, likewise, or
"com.anyone.else.that.you.are.not.". where registered trademarks are
involved. This because the very beginning part is generally expected
to identify who makes and maintains a package, and misrepresenting
same clearly may infringe trademarks.

-> Stick to a personally-unique or your-organizationally-unique prefix
on your package names and eschew referring to anything trademarked,
unless it's important to distinguish something, in which case stick it
at the very end as in com.mycompany.tools.generator.java.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.