On Aug 30, 11:49 am, "Norman Ho" <[EMAIL PROTECTED]> wrote:
> I created a directory of foodpackage, and subdirectory fruitpackage; and I
> used notepad to create two java file of Food.java and FoodMain.Java inside
> fruitpackage.  When I try to open the project fruitpackage using NetBean, it
> shows an empty folder.  When I open the file FoodMain.java using NetBean, it
> hightlights the new class "Food" that I have previously created as not
> found.
Netbeans has a special structure for sources and another one for
build, so that the compiled classes are not in the same directory as
the sources. You may use in Netbeans the Files window to see the
structure of an existing Netbeans project.
To create this structure for a program created outside of Netbeans you
can use the Import menu. It will import your files and create a
"Netbeans" structure for it.
You may then recompile the project and then run it.
You cannot use the already compiled classes as they have a different
hierarchy.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to