jamesmurphy 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.