This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Net Beans IDE 6.9.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Net Beans IDE 6.9.1" Watch "Net Beans IDE 6.9.1" New topic
Author

Net Beans IDE 6.9.1

Tuesday Ganal
Greenhorn

Joined: Oct 27, 2010
Posts: 12
Hi everybody! Isn't it weird? I was trying to create my first project in Net Beans and the classes I've created were built and run successfully. However if you see the project name, source package and default package have exclamation sign and it says contains files with errors I tried to re-create the project many times and still the same.

Thanks.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39092
    
  23
Don't know why. Have you tried the rebuild or clean and build options in NetBeans? Have you tried running the app from the command line? Have you exported it as a jar and run that from the command line?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Are you using some external jars? Or some dependency might be missing. You can hover over the package to find out what the error is.


Mohamed Sanaulla | My Blog
Tuesday Ganal
Greenhorn

Joined: Oct 27, 2010
Posts: 12
Thanks, Campbell! I tried to rebuild or clean. I also tried to compile and run in command line and it was successful. It doesn't say I have an error when I compile in Net Beans, but the project names and classes (I can see in the left side of my screen) have this exclamation point sign and when you click them. It says there were errors.

Campbell Ritchie wrote:Don't know why. Have you tried the rebuild or clean and build options in NetBeans? Have you tried running the app from the command line? Have you exported it as a jar and run that from the command line?
Tuesday Ganal
Greenhorn

Joined: Oct 27, 2010
Posts: 12
Thanks, Mohamed! I am not using external jars. I'm created a simple package with 2 classes. It's not showing that I have an error when I compile it, but I can see in the left side of my screen, there's a sign in right beside my package name and classes name that there are errors.

mohamed sanaullah wrote:Are you using some external jars? Or some dependency might be missing. You can hover over the package to find out what the error is.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Tess Bueno wrote:Thanks, Mohamed! I am not using external jars. I'm created a simple package with 2 classes. It's not showing that I have an error when I compile it, but I can see in the left side of my screen, there's a sign in right beside my package name and classes name that there are errors.

Try to refresh the contents of the project. Right click on the project should have that option.
 
GeeCON Prague 2014
 
subject: Net Beans IDE 6.9.1