Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2007, 06:18 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pleeease Help, two days looking for a solution

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
Code:
AppConstants
and
Code:
DebugWriter
and put them in the same package
Code:
mybeans
.

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

Code:
1. Cannot find symbol: class AppConstants
2. Cannot find symbol: class DebugWriter
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 two days, pleeeeeease help

JOTNARTA

 
Old February 11th, 2007, 08:41 PM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

is ConnectionManager in the mybeans package? Do you get a line number with the errors?

Or maybe you might be looking for something like:
import mybeans.DebugWriter;

Can you post a bit more code and especially full error messages?

Cheers

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old February 13th, 2007, 05:56 AM
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

put all your classes inside the classes folder of your webapp

make sure yur package names match the folder names

for ex:

if your class package is com.org.test;

then your class should be inside classes/com/org/test/YourClass.class






Similar Threads
Thread Thread Starter Forum Replies Last Post
days-from-duration Dinghus XSLT 1 November 21st, 2007 04:05 AM
convert to days khautinh SQL Server 2000 4 September 8th, 2005 02:09 PM
Days in a Month jmss66 Classic ASP Basics 3 April 11th, 2005 05:57 PM
No of days anandham SQL Server 2000 2 March 21st, 2005 01:20 AM
Last records from 7 days only jemacc SQL Server 2000 3 September 28th, 2004 11:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.