Do any of you know how to use NetBeans?

I downloaded NetBeans 4.0 and tried to start a new project and entered my Hello World code in the code window but it said something like "No main class set". I was wondering if someone could post some step by step instructions of how to create a simple program using the IDE or is it not intended for beginners like me?

I did look through that info and it did not appear to tell me what I wanted. However I opened up my book tonight and in the back it had a chapter on using NetBeans. Their version is slightly older but kind of similar so I followed their instructions and I think I got it to work, although it still said "No main class set." After that though it did display the output to the console window.
I would like to ask why there are differences in these IDE's. For example in Eclipse I will type:
public class Welcome {
public static void main(String args[ ])
System.out.println("Welcome to Java!");
And then I will click Run and it ouputs "Welcome to Java!".
But in NetBeans I will see a bit more code like this:
public class Welcome {
/** Creates a new instance of Welcome */
public Welcome() {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Welcome to Java!");
So NetBeans is adding public Welcome( ). Which I think is a constructor?
I'm wondering why one IDE won't show that yet another IDE will? And I don't think the books tell you to type that in either. I'm wondering is that important to know what it is and what it does or should I not worry about it? Actually I'd like to know what every piece does, it makes me feel better knowing.

Similar Messages

  • Do you know how to use Flash? can you help?

    hi all,
    Do you know how to use Flash?
    I have been trying for months to find someone who can use
    flash, who can help me, with no luck.
    I need my links on my website updating, just a couple of them
    need the text changing as i need
    to change the name/title of some pages. I have tried to do it
    myself (using a trial version of flash,
    as i dont have flash). the site was made using dreamweaver.
    the files are .FLA
    and before anyone says 'get the person who made the site to
    do it'....He wont, ive tried.
    when i tried to change them myself i cocked them up and now
    they dont work at all, see my
    website and you will see; www.stevenallenphotography.co.uk
    so, if you can use flash please can you help me? all i need
    doing is the file updating with some
    of the link titles/names changing, i.e. one link is
    'exhibitions' which needs changing to 'published work',
    please get in touch if you can help.
    thanks,
    steven.

    I used divx in my site once its really very nice! but i use it in different host not .mac...try this divx web player with video selector code --------<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
    width="640" height="480"
    codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
    <embed id="np_plugin" type="video/divx"
    width="640" height="480"
    pluginspage="http://go.divx.com/plugin/download/">
    </embed>
    </object>
    <script type="text/javascript">
    // This code detects which browser we are
    // running into (IE or others) and assigns
    // the correct element (object or embed) to
    // the "plugin" variable, that we will use.
    var plugin;
    if(navigator.userAgent.indexOf('MSIE') != -1)
    plugin = document.getElementById('ie_plugin');
    else
    plugin = document.getElementById('np_plugin');
    // This is a local JS function used by our form
    // element to call the plugin functions using
    // the "plugin" variable that we defined above
    function openNewMovie()
    var url = document.forms['videoSelector'].movie.value;
    if(url != '')
    plugin.Open(url);
    </script><form name="videoSelector">
    Choose a video to play:
    <select name="movie" onChange="javascript:openNewMovie();">
    <option value="" selected>Video Selector
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title1 divx
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title2 divx
    </select>
    </form> ---------------------
    Hope this help!

  • Hey Guys, does any of you know how to change the  Click sound?

    I was wondering if any of you know how to make the cursor say that pop sound when you click anything

    Like the Windows annoyance that makes a mouse click sound long after you actually clicked the mouse?
    If you really want to do that here is an app for you: Did I Click
    There may be others.

  • Do you know how to use .divx in iWeb ?

    Hi,
    I need some information for how to use .divx movie in iWeb. I try many things. Please Help.
    Thank you.

    I used divx in my site once its really very nice! but i use it in different host not .mac...try this divx web player with video selector code --------<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
    width="640" height="480"
    codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
    <embed id="np_plugin" type="video/divx"
    width="640" height="480"
    pluginspage="http://go.divx.com/plugin/download/">
    </embed>
    </object>
    <script type="text/javascript">
    // This code detects which browser we are
    // running into (IE or others) and assigns
    // the correct element (object or embed) to
    // the "plugin" variable, that we will use.
    var plugin;
    if(navigator.userAgent.indexOf('MSIE') != -1)
    plugin = document.getElementById('ie_plugin');
    else
    plugin = document.getElementById('np_plugin');
    // This is a local JS function used by our form
    // element to call the plugin functions using
    // the "plugin" variable that we defined above
    function openNewMovie()
    var url = document.forms['videoSelector'].movie.value;
    if(url != '')
    plugin.Open(url);
    </script><form name="videoSelector">
    Choose a video to play:
    <select name="movie" onChange="javascript:openNewMovie();">
    <option value="" selected>Video Selector
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title1 divx
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title2 divx
    </select>
    </form> ---------------------
    Hope this help!

  • I just upgraded to Lion. When I import photos it imports the same photo over and over. Not even one of the photos selected!! Do you know how to fix this?

    I just upgraded to Lion. I just installed iLife'11 last night. When I import photos into iMovie (version 9.0.4.) , it imports the same photo over and over as if it were the ones I selected. Not even one of the photos selected!! The thumbnais show that unselected photo,  if I preview then I just see the preview screen all black.
    I even tried making an iPhoto album and importing straight from there. Exact same thing. I have restarted the application, restarted the computer, and googled half-to-death. No answers.
    Do any of you know how to fix this?
    I am working on OS X Lion (10.7.1) , a 2009 15" MacBook Pro. 4GB Memory. 2.4 GHz Intel Core 2 Duo. 4GB Memory 1067 MHz DDR3.
    Hope someone can help!!!

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • Hi my name is steve arsenault  i am looking for a short keys for  apple and if someone has one i like to know how to use it please e-mail me has soon has posible thank you

    hi my name is steve arsenaulti am looking for a short keys for  apple and if someone has one i like to know how to use it please e-mail me has soon has posible thank you
    <E-mail Edited by Host>

    It sounds like you are looking for a program like Typinator.
    It isn't free, and the site doesn't specify compatibility with any OS above 10.7.
    As of today, the latest release is dated May 29th, 2012.

  • Hi Any body Knows How to use CAT Tool for Up Loading?

    Hi
    If any body knows how to use CAT Tool for up loading transactions, explain the steps.
    Our requirement is, we want to up load transactions like Oppor , Quotation,Order etc...we want to up load these transcations from Local system to CRM Server
    how to do this? Let me know the steps.
    Regards
    Venkat

    If you have 10,000 or less, CATT is a reasonable method, but I would suspect that you have far more than that if you're needing to load transactions.
    LSMW is probably a better way to go if you have more than 10k, but I am not familiar with LSMW

  • Any one know how to use "custom" option present under the data access tab in XLS file format of Data Services

    Hi Experts,
            Any one know how to use or what is the purpose of "custom" option present under the data access tab in Excel workbook file format of Data Services
    Thanks in Advance,
    Rajesh.

    Rajesh, what is the Custom Protocol you are trying to use? It should be  something like PSFTP, etc.,
    Cheers
    Ganesh Sampath

  • When using restart firefox you get a folder on the desktop called old firefox data i need to know how to use this folder to get my old firefox preferences back

    i've recently reformatted my computer and i've taken the old firefox folder from before the reformat and put it on the new one but i dont know how to use it to restore my old settings
    by the way im not using a different operating system im running windows 7 like i was previously

    Here's my suggested profile resurrection procedure using the old profile folder that's inside the Old Firefox Data folder.
    '''Overview'''
    These are the steps:
    # Create a new Firefox profile
    # Remove everything from that new profile folder
    # Copy in everything from the old profile folder
    '''Create a new Firefox profile (Windows)'''
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    ''Note: Any time you want to switch profiles, exit Firefox and return to this dialog.''
    Click the Create Profile button and skip the option to change the folder location. Then select that new profile in the dialog and start Firefox.
    '''Open the New Profile folder in Windows Explorer'''
    Firefox in the new profile should look like a factory fresh installation. Open the Troubleshooting Information page using either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    In the first table, click the "Show Folder" button. Firefox will launch your brand new profile folder in Windows Explorer.
    Leaving this folder open, switch back to Firefox, and Exit. This will leave that profile folder open in Windows Explorer.
    '''Copy Old Data in Place of New'''
    In that new profile folder, select all the contents and delete.
    Leaving that window open, open or switch over to your Old Firefox Data folder. Drill down into your old profile folder. At this level you should see a folder named bookmarkbackups among other things.
    Select everything (Ctrl+a) and Copy (either right-click > Copy or Ctrl+c).
    Switch to the empty new profile folder in other window and Paste (either right-click > Paste or Ctrl+v). This may take a minute since some of the files are large.
    '''Start Firefox'''
    Firefox should start up in that new profile with the resurrected old profile data. Success?

  • I use the same Apple ID on my iPad mini and my iPhone 5. My iPhone 5 was stolen on may 12, 2013. Do you know how to get it back?

    Dear Apple,
    I use the same Apple ID on my iPad mini and my iPhone 5. My iPhone 5 was stolen on may 12, 2013. Do you know how to get it back?

    Click here for information.
    (83340)

  • Does any one know how to connect itunes up? when i click on store it always says 'itunes could not connect to the store. Make sure your network connection is active and try again.' if you know how to fix tell me please, please!

    does any one know how to connect itunes up? when i click on store it always says 'itunes could not connect to the store. Make sure your network connection is active and try again.' if you know how to fix tell me please, please! thanx

    Work through all the troubleshooting here: iTunes: Advanced iTunes Store troubleshooting
    B-rock

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help

    Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.

  • So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    So when I try to update or download an app it says I don't have enough storage. I don't know how to use iCloud and stuff soo what do I do? Help! I don't wanna delete any pics either.

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • Hi, you know how i can fix the problem that my iPhone5s not have any coverage in place? Please.

    Hi, you know how i can fix the problem that my iPhone5S not have any coverage in place?
    Please, and thanks.

    If it's out of warranty, Apple will replace your phone for $269.

Maybe you are looking for

  • Sound missing from half of One Step DVD

    I have tried a couple times to make a one step DVD directly from my mini DV tape camera. I've done this plenty before and do not know why, but this time the sound is missing from the last half of the DVD. It is on the tape, but not the DVD.

  • SQL script with a prompt functionality.

    Hello experts, I tried searching this on the net but was unsucessful... Bascially I need to update an sql script with a prompt functionality..Basically I would like a user prompt that would enter 'Yes or No' to compile invalid objects using utlrp. If

  • F107 HOW TO REVERSE

    Hello all: how to reverse if I run F107 already. how to prevent if I run 2 times , it's double. Best Regards, Manthana

  • Copy and Paste Question

    I have old documents that I want to copy the data out of and paste it into my new document using the form I have created. The problem is if I have the form open, I can't copy the data from the old document into the new form. Is there a way to get aro

  • SUN IDM Role removal does not remove the set atributes

    Hi, I am using SUN IDM Roles to set a multi valued attrubute on a resource using merge with value property. But when I remove any of the assigned role the corresponding ATTRIBUTE value is not getting removed. Is there anything specific which needs to