Page 1 of 1

"Package animax does not exist"

Posted: Wed Mar 14, 2007 6:01 pm
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)

Posted: Fri Apr 20, 2007 11:23 pm
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