Both lmn and xyz are in the same package so you don't need to use an import statement. Besides, the import statement imports a class lmn from package nine but the class you showed is in package p9. If you simply remove the "import nine.lmn" statement, it will fix this particular error.
As a side note, it would be helpful if you start class names with uppercase and use CamelCase if the name contains more than one word. Also, variable names should use camelCase but start with a lowercase letter instead. Finally, package names are typically all lowercase.
If you follow these conventions, it will be much easier for us to read your code when you ask for help here. You may also find it helps YOU read your own code more easily.
1) create xyz.java file 2) create a folder called p9 that supend from directory where xyz is included 2) create file Lmn.java in this folder (the package name refer to directory p9) and compile 3) compile now xyz.java file 4) execute xyz.
this should work.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com