"Package animax does not exist"

Using the Java SDK with TextPad

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

Post Reply
LabtecPenguin
Posts: 1
Joined: Wed Mar 14, 2007 5:54 pm

"Package animax does not exist"

Post by LabtecPenguin »

Hiya, just a quick question.
Im using Textpad to write Java files at home but it fails to recognise the Animax package i need to use (imported using "import animax.*;" statement)

Does anyone know how to either get Textpad to look at these files or know where its looking so i know where to put them?

Thanks in advance
LP 8)
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post by Nicholas Jordan »

What do you mean: "fails to recognize (package name)" ?

Java works with imports, not the editor. It takes a lot of reading to acclimatize to just exactly how javac looks for packages, it has to do with directories and I have forgotten just exactly how I solved this problem ... but from memory it would be that I placed all source files for a package in a directory named exactly the same as the package name.

I tried to ignore or skip this way of doing things, then ended up using it for just exactly the reasons it was originally designed.

Score one, Old Codgers Coding Club

//eof
Post Reply