Error in NetBeans

Reply

Join Date: Apr 2007
Posts: 1
Reputation: jamesmurphy is an unknown quantity at this point 
Solved Threads: 0
jamesmurphy jamesmurphy is offline Offline
Newbie Poster

Error in NetBeans

 
0
  #1
Apr 4th, 2007
I wrote a java program, it comprised of a file for the main class and a file that is a package that consists of a class, a subclass and some methods in each. The class, subclass and all methods are public. I compiled the main class and the package on the command line with no errors on either, and the program works fine. I wanted to start using NetBeans. I put the same files in NetBeans 5.5 it shows no errors in the package, but in Main.java it shows an error (cannot find symbol) where an instance of the subclass is made ( Inventory_Sub Inventory1 = new Inventory_Sub(); ). I know that it finds the package ok because I do not get an error where the package is imported (import inventoryPackage.murphy.james.*; ). There must be something simple I am overlooking, I would appreciate someone helping me as soon as possible, I have to turn this in for a school assignment.

Thank you,
Jim
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC