Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My legal domain name is not a legal Java package name

Tags:

java

package

The name of my domain name is 3DTOPO.com. Apparently java does not allow package domain names to start with a number.

Why doesn't the Java reverse domain name follow the same rules as domain names do? I really don't want to name my package com.threedtopo....

For starters that isn't my domain name! Anyone else would be free to register and use that domain. Besides it is very awkward and not the name of my business.

Does anyone have package name suggestions?

like image 616
Jeshua Lacock Avatar asked Oct 18 '12 00:10

Jeshua Lacock


1 Answers

I think you mean Java doesn't allow package names to begin with a number.

One common alternative is to preface it with an underscore, _3dtopo.

like image 171
Dave Newton Avatar answered Nov 04 '22 08:11

Dave Newton