Re: Using the word java as part of a package name
Mangalaganesh Balasubramanian wrote:
Is there any restricion on using java as part of my package name.
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.
Daniel Pitts wrote:
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:
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.
(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.