• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No access to classes

 
Dave Berkheimer
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm running Tomcat 5.5.12 and I'm having issues when attempting to instantiate my own classes.

My source is located in c:\testapps. Jsp's are working just fine. My class is in the usual, c:\testapps\WEB-INF\classes. My CLASSPATH includes the pre-stated path to the class. The class in question (SiteParams.class) fails on this line...

SiteParams sp = new SiteParams();

The error message is as follows:

"SiteParams cannot be resolved to a type"

by the way, this class has worked fine in other hosting environments. This is the first time that I've set up Tomcat locally.

Any ideas as to what I'm missing?

Thanks
D.B.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your class in a package?

Thee has been a tightning of the spec for JREs starting with version 1.4.1.
Starting with this version, you can't import a non-packged class (default package) from a packaged one.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic