Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Net Beans IDE 6.9.1

 
Tuesday Ganal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48961
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tuesday Ganal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic