Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation Error

 
Jotnarta Jot
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic