Invalid name of Package

What is this error and how do I fix it? I created one package in a class diagram and saved it with a name like this abc.def.ghi.appname.dto. I hope that I do not have to create 5 packages and nest them all to get this affect.