********************** Macromedia Representative **********************
(First off, I'm new here - is it ok to ask generic Java questions or is this
list only for JRUN issues?)

Ok, I'm learning Java here, so forgive me if this is a simple question.

I have a class, Account.java, which contains:

package bank;

At the command line, I type this to compile it:

javac -d .\ Account.java

This creates a folder called bank in my current dir. Account.class is
generated inside the folder.

I have a file called CheckingAccount.java. It does:

import bank.*;

But, when my constructor does:

        public CheckingAccount (String name, double amount, double reserve) {
        super(name, amount);
        overdraftAmount = reserve;
        }

I get:
CheckingAccount.java:8: cannot resolve symbol
symbol: constructor Account(java.lang.String, double)
location: class Account
        super(name, amount);
        ^

Plus some other errors. If I change my import to import bank.Account;, it
works correctly.

Any ideas?

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to