jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Compilation Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Compilation Error" Watch "Compilation Error" New topic
Author

Compilation Error

Jotnarta Jot
Greenhorn

Joined: May 18, 2006
Posts: 24
Hi All

I am learning Java Bean Technology, using Tomcat. I want to develop a connection manager to connect to a database.

I have created two classes and and put them in the same package .

I created a third class that implements interface AppConstants and initiate a DebugWriter Object, when compiling I got the following errors:



After searching for a solution, I found that I have to include mybeans folder in classpath so that, other classes want to use any class can find them. Despite that, the program didn't compile.

I have lost, I am trying to find a solution from 8:00 AM and it's 3:00 PM now, any advice please.

JOTNARTA
[ February 06, 2007: Message edited by: Mohammed Zabin ]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Cannot find symbol: cause of this error if compiler didn't find the class in your context path or in your package.

put your .class file in your classes folder under WEB-INF in your application folder.

path = MyApp/WEB-INF/classes

or check your code.. whether you specified the package name on the top of your code or not...?

hope it helps..


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Mohammed Zabin:

I created a third class that implements interface AppConstants and initiate a DebugWriter Object, when compiling


is your AppConstants is a interface or class?

can you show me your code Snippet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compilation Error