create a class

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jackdegreat
Posts: 1
Joined: Thu May 24, 2007 3:49 pm

create a class

Post by jackdegreat »

I am not able to create / instantiate a new class with text pad:
example - // Create an empty account
Account my_account = new Account();

I am having this compile error:
F:\java3\wk3\AccountDemo.java:13: cannot find symbol
symbol : class Account
location: class AccountDemo
Account my_account = new Account();
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Re: create a class

Post by Nicholas Jordan »

jackdegreat wrote:I am not able to create / instantiate a new class with text pad ....
Textpad is an editor. The Java Compiler is the compiler and any error messages or anything else the java compiler tells you is from the java compiler, not Textpad.

Code: Select all

F:\java3\wk3\AccountDemo.java:13: cannot find symbol
symbol  : class Account
location: class AccountDemo
Account my_account = new Account();
So where is Account ? in the same file or in another file ....

What you are doing here is instantiating an Account thingamabobwhatchamacallit and that will have to be defined somewhere.
Post Reply