Results 1 to 15 of 15
Thread: Netbeans Issue
- 02-22-2012, 08:32 AM #1
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
Netbeans Issue
I have a problem when I create a java application, for some reason no main class is created, I can follow the HelloWorld tutorial word for word but I still have the same problem. When I first installed NetBeans everything was fine, then the next day this problem appeared out of no where.
What should happen: (from "Hello World!" for the NetBeans IDE (The Java™ Tutorials > Getting Started > The "Hello World!" Application))

What I get:

I hope there's an easy solution because I'm eager to start learning, this is holding me back. Thanks.
- 02-22-2012, 08:37 AM #2
Re: Netbeans Issue
Have you tried looking in the NetBeans help to see whether there's anything about creating/setting the main class? You're going to need more knowledge on that as you continue to use NetBeans, so a simple answer to the immediate problem wouldn't really help you.I hope there's an easy solution
Be curious. Click around. Right-click around. Go through all the sections and tabs in properties dialogs. Look up the Help for anything you don't understand.this is holding me back
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-22-2012, 08:41 AM #3
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
Re: Netbeans Issue
I've looked everywhere for a solution, asked on the netbeans forum but no one replied (thanks for replying by the way).
I can't right click and add a java class, the java folder isn't even there like I'm sure it was before, just java FX and the rest.
I can't find anything online about this problem so I'm pretty stuck.
- 02-22-2012, 09:23 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: Netbeans Issue
Once you create that package is it exist physically in the project folder? Check it with and without closing the IDE.
- 02-22-2012, 09:31 AM #5
Re: Netbeans Issue
What java folder? Could you be more specific?the java folder isn't even there like I'm sure it was before, just java FX and the rest.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-22-2012, 09:36 AM #6
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
- 02-22-2012, 09:40 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: Netbeans Issue
- 02-22-2012, 09:45 AM #8
Re: Netbeans Issue
Um, the <default> package is represented by the /src folder. I don't see any named packages in the screenshot.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-22-2012, 09:49 AM #9
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
- 02-22-2012, 11:08 AM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Netbeans Issue
When you created the project did you ensure the 'Create Main Class' check box was ticked?
I would check myself but I don't have Netbeans here.
- 02-22-2012, 11:40 AM #11
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
- 02-22-2012, 12:07 PM #12
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Netbeans Issue
What version of Netbeans is it, on which OS?
Any idea if there's been an auto-update to it that might have broken it?
- 02-25-2012, 08:24 AM #13
Member
- Join Date
- Feb 2012
- Posts
- 11
- Rep Power
- 0
- 02-25-2012, 02:30 PM #14
Re: Netbeans Issue
I don't know what the big deal is. Even if your project templates have somehow got corrupted and you can't automatically create the main class along with the project, what stops you from creating a class and identifying it as the main class?
If you can't discover from the help file how to do that, then you need a tutor. Anonymous, time-delayed help on a forum just won't cut it.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-28-2012, 10:09 AM #15
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: Netbeans Issue
Similar Threads
-
NetBeans GUI editor (drag/drop) and JTable data issue
By Ceryph in forum AWT / SwingReplies: 6Last Post: 08-16-2011, 09:17 AM -
JMS/NetBeans Issue
By airowe in forum New To JavaReplies: 1Last Post: 06-06-2011, 05:04 AM -
[Linux 11.1 and NetBeans 6.9.1] JProgressBar issue
By soundlord in forum AWT / SwingReplies: 2Last Post: 04-17-2011, 10:54 PM -
Netbeans Issue
By Doctor Cactus in forum New To JavaReplies: 0Last Post: 02-19-2009, 02:18 PM -
Issue using FOR statment with NetBeans
By Deathmonger in forum Advanced JavaReplies: 3Last Post: 07-30-2008, 12:46 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks