File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Can't compile servlet with own package import Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can Watch "Can New topic
Author

Can't compile servlet with own package import

Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Hi Ranchers!
When I normally compile a servlet it works fine. Now I want
to import my own package.

When I do this I get a compilation error. My directorystructure looks like this

d:\tomcat4.0\webapps\test\WEB-INF\classes\se\test\database\query\myclass.class
Does anybody know the solution to my problem
I can import my package in a jsp file
[ November 10, 2003: Message edited by: Mathias Nilsson ]

SCJP2 , MCP( 70-229 ) , Preparing For SCWDC
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Did you add this "d:\tomcat4.0\webapps\test\WEB-INF\classes" to your classpath?


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Yes I have
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Oops! My mistake. I had to close the dos prompt before the environment variables took place. Thanks!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
My recommendation: learn how to use ANT - ANT makes it easy to set up the compilation paths for anything without getting all tangled up in the system ENVIRONMENT variables.
Bill
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Thanks!
I'll do that. Right now I'm in the middle of convering access to mySql
// Mathias
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't compile servlet with own package import