This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "TableLayout and packages" Watch "TableLayout and packages" New topic
Author

TableLayout and packages

Jose4nz
Greenhorn

Joined: Apr 09, 2002
Posts: 1
Hi there
I extract the TableLayout.zip 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
Sheriff

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]
 
 
subject: TableLayout and packages