So most Java resources when speaking of packages mention a com.yourcompany.project
setup. However, I do not work for a company, and don't have a website. Are there any naming conventions that are common? An email address, perhaps?
Use a top-level domain like 'bernard' or something else unique. The important part is that the domain is unique so that you avoid clashes, and not that it starts with a real Internet top-level domain like org or com. E.g.
import java.util.*; import bernard.myProject.*; import org.apache.commons.lang.*;
If your creating an open source project, you could register it with Sourceforge and use net.sourceforge.myproject. This is common with a lot of Java projects. An example is PMD http://pmd.sourceforge.net/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With