[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Larry Evers wrote:Tryed setting up the new project "from existing sources" in the IDE, using the Mines.java and Board.java files held in a C:\JavaProject\Mines\MinesSource folder.
This loaded both sources into the IDE Project section.
However, the first line of each source is underlined in red giving an "incorrect package" error. Any ideas on why that is?
Larry Evers wrote:In the IDE Project window, the Snake.java and Board.java both show errors if the first line of each: "package snake;" is left in. If taken out, the source builds and runs ok.