Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes TableLayout and packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "TableLayout and packages" Watch "TableLayout and packages" New topic

TableLayout and packages


Joined: Apr 09, 2002
Posts: 1
Hi there
I extract the file in order to study it. Java files were already compiled. It runs ok, but when I tried to do minor changes (in fact, System.out.printl(....) ) and save it and then compiled. There were a compile error about the import statement which was:
import layout.TableLayout;
the error was no package was found with this name.
I read about package and it needs to set it in CLASSPATH variable, but if this is the case, why it runs at the beginning without any setting to the CLASSPATH?
Any idea?

Jose J.<br />SCJP<br />=============================<br />Good bye Stars, Good bye Moon
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch!
We ain't got many rules round these parts, but we do have one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner!
Rather than try to first work out the details of what you are doing, I'd suggest you try a quick search on this forum for "classpath" and maybe "package". The search page link is at the top right of this page. I'm going to guess that your problem concerns the package structure (and consequently the directory structure of the compiled class files) as well as any classpath settings.
If your search doesn't help you out much (and I'm fairly confident that it should), does your directory structure match your package structure?
Good Luck.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: TableLayout and packages
It's not a secret anymore!