• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compilation Error

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:confused:, 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 ]
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic