954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Error in NetBeans

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

jamesmurphy
Newbie Poster
1 post since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You