944,082 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2792
  • Java RSS
Apr 4th, 2007
0

Error in NetBeans

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jamesmurphy is offline Offline
1 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Swing Help
Next Thread in Java Forum Timeline: Error running Java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC