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

 

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

What do I need to do to put Flash on my website?

Flash is a client side feature - it runs on the user's computer, not on your web host. As long as...

How do I track how many hits my website gets?

Tracking on your site can be either done server-side or remotely. With server-side statistics,...

What are PHP, ASP, perl, etc?

These are all programming languages which are referred to by their acronyms.PHP - PHP: Hypertext...

How do I login to my domain's cPanel?

you can login to your cPanel by going to www.yourdomain.com/cpanel (yourdomain is...

Do I have to change my domain if I get a new host?

No. Provided that the domain is registered in your name (as it should be), you can simply update...

Powered by WHMCompleteSolution