Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-11-2012, 12:08 AM   PM User | #1
dan-dan
Regular Coder

 
dan-dan's Avatar
 
Join Date: Aug 2009
Location: England
Posts: 483
Thanks: 22
Thanked 79 Times in 78 Posts
dan-dan is on a distinguished road
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.
Thanks.

Last edited by dan-dan; 04-11-2012 at 12:22 AM..
dan-dan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:18 AM.


Advertisement
Log in to turn off these ads.