LWJGL Forum

Programming => General Java Game Development => Topic started by: bobjob on May 23, 2008, 01:10:43

Title: why org/com package pre-fix?
Post by: bobjob on May 23, 2008, 01:10:43
does anyone know why alot of custom api's have com. or org. at the start of there package directory?

Title: Re: why org/com package pre-fix?
Post by: aldacron on May 23, 2008, 01:26:13
It's the Sun-recommended package naming convention (http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html#40169):

Quote
You form a unique package name by first having (or belonging to an organization that has) an Internet domain name, such as sun.com. You then reverse this name, component by component, to obtain, in this example, com.sun, and use this as a prefix for your package names, using a convention developed within your organization to further administer package names.
Title: Re: why org/com package pre-fix?
Post by: bobjob on May 23, 2008, 07:24:54
cool thanx, now i think i actually remember that when i was learning java, but i skimmed over it, thinkn i would never make my own package :D