• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Net Beans IDE 6.9.1

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic