[nbusers] Re: Could not find the main class. Even on hello world!

  • From: Wade Chandler < >
  • To:
  • Cc: leigero < >
  • Subject: [nbusers] Re: Could not find the main class. Even on hello world!
  • Date: Mon, 26 Nov 2012 10:11:04 -0500

On 11/25/2012 12:28 AM, leigero wrote:
I have done all of the steps everybody above have suggested and have yet to 
find a solution to this problem.

I don't know why NetBeans would have an automatic setting somewhere that 
keeps any projects from working. It is quite frustrating.

I DEFINITELY have a main class this happens on every project I create down to 
the simplest project (brand new project with nothing changed, maybe add a 
hello world line in there) still won't find main class.

I tell it to create a main class upon creating the project, I check the main 
class in the properties and the main class listed there is the class that 
contains the public static void main (String[] args) line.

I've tried unchecking that block I've tried renaming the main classes I've 
done everything I can think of and i still cant get a single .jar file to run.

What is most baffling is that it LOOKS like all the parts are there. I see 
the main class, the properties has the correct main class listed and yet it 
still won't run.




Attachments:
http://forums.netbeans.org//files/broken_159.png


Some of these simple hello world projects which will not work, can you zip them up and share them with us some where? We may be able to help you track it down if it is something in the project. If it is environmental, then it may be a harder nut to crack.

Wade

--

=================
Wade Chandler

Software Engineer and Consultant
NetBeans Contributor
NetBeans Dream Team Member

wadechandler.com
netbeans.org



[nbusers] Could not find the main class. Even on hello world!

leigero 11/25/2012

[nbusers] Re: Could not find the main class. Even on hello world!

Benno Markiewicz 11/25/2012

[nbusers] Re: Could not find the main class. Even on hello world!

Stadelmann Josef 11/26/2012

[nbusers] Re: Could not find the main class. Even on hello world!

Ion Iovu 11/26/2012

[nbusers] Re: Could not find the main class. Even on hello world!

Ion Iovu 11/26/2012

[nbusers] Re: Could not find the main class. Even on hello world!

Wade Chandler 11/26/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close