Knowledgebase
Portal Home > Knowledgebase > Linux Hosting > Where should I put my Java classes ?
Where should I put my Java classes ?
| Java classes need to be arranged in the proper directories in order for the Tomcat server to find them. For example, classes with no package would be in:
/home/username/public_html/WEB-INF/classes
classes in package com.company would be in:
/home/username/public_html/WEB-INF/classes/com/company
classes in package com.company.product.module would be in:
/home/username/public_html/WEB-INF/classes/com/company/project/module
etc.
In addition, you can put classes in JAR files in the following directory:
/home/username/public_html/WEB-INF/lib
|
Add to Favourites
Print this Article
|
Also Read
Powered by WHMCompleteSolution