Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder dan-dan's Avatar
    Join Date
    Aug 2009
    Thanked 79 Times in 78 Posts

    Netbeans class path inconsistancy

    I've been having problems with Netbeans recently, in that whenever I create a new java project it's inconsistant about creating a class path.
    I'll write my class then when I come to compile and run it I'll occasionally receive the message <No main class found>.

    I discovered that when this happened I'd need to go to the Ant settings within the run panel, and manually select the class path to the project. I would then need to go to
    file > project properties > run and set the main class.

    I didn't find much on Google that helped me with this. So I was just wondering if anyone else had experienced this? And if so, did they find a way to permanently fix it?

    Thanking you

    Edit: Just to be clearer, I want to add that I always check 'Create main class' and 'Set as main project' when I create a new project.
    Last edited by dan-dan; 04-11-2012 at 01:22 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts