aspose file tools*
The moose likes Beginning Java and the fly likes A mystery... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A mystery..." Watch "A mystery..." New topic
Author

A mystery...

Dawn Allestad
Greenhorn

Joined: Aug 30, 2003
Posts: 12
This will be my last question... well I hope it will be! I have a two programs, Tax and TaxReturn. When pulling them off my desktop and into JGrasp the programs compile and work perfectly. I then moved them into my JGrasp bin. Now they no longer compile telling me it has a problem with "ConsoleReader". When placing the programs on a floppy, and opening them in JGrasp from my A drive, I get the same message about the "ConsoleReader". What in tarnation is happening?
Dawn
Dawn Allestad
Greenhorn

Joined: Aug 30, 2003
Posts: 12
Here's the programs and the error message I keep getting:

Here's the error message:
symbol : class ConsoleReader
location: class Tax
{ ConsoleReader console = new ConsoleReader (System.in);

symbol : class ConsoleReader
location: class Tax
{ ConsoleReader console = new ConsoleReader (System.in);
I bolded where it is the pointer is pointed at and it says it cannot resolve symbol.

^
[ edited to to format code and to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ August 31, 2003: Message edited by: Dirk Schreckmann ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What is JGrasp?
Where is ConsoleReader?
The problem is that the Java compiler cannot find the ConsoleReader class. It needs to be locatable through the CLASSPATH setting. So, you may need to find ConsoleReader and anything that it uses, and add them to your CLASSPATH when compiling and running this application.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dawn Allestad
Greenhorn

Joined: Aug 30, 2003
Posts: 12
Yep... I got it to work! I just had to stop and think about it!
JGrasp is the compiler, builder thingy I use! LOL
Dawn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A mystery...
 
Similar Threads
Website to compile and run Java programs
Nobody mentioned jEdit?
simple question, drawing a blank
Start: Applet not initialized
New to Java and need help