Results 1 to 2 of 2
  1. #1
    sweetjava is offline Member
    Join Date
    Jul 2009
    Rep Power

    Question general confused about java question (easy!)

    I was writing all my little java programs in eclipse, and I thought I would try messing around with netbeans. But nothing I write in netbeans seems to be recognised. I noticed there is no "run" method in netbeans default template either, but there is a "main".

    I realise some will take this as a silly question, but im doing this on my own, and have no teachers or peers to ask the dumb questions to.

    Can someone please explain the difference between say:

    Java Code:
    println ("the average of all the test scores is " + total / count + "." );
    (which is not recognised by nebeans)


    Java Code:
    System.out.println("the average of all the test scores is " + total / count + "." );
    (which is)

    and why are they different?

    Also when i try to import .acm libraries into my netbeans code, they are not recognised as they are in eclipse.

    ps sorry for sounding retarded. :confused:

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Your NetBeans program must be configured to recognize the acm library files. This likely will require your setting some system properties to allow it to find and compile the libraries.

    edit: try--
    open netbeans,
    right click on your current project
    click on the Properties menu item at the bottom.
    click on the Libraries Category on the left
    Then click on Add Jar/Folder (I think)
    browse for the jar file that as your acm libraries and click on it.
    Last edited by Fubarable; 08-09-2009 at 02:07 AM.

Similar Threads

  1. New to Java and have an easy question
    By JBOY08 in forum New To Java
    Replies: 1
    Last Post: 11-19-2008, 07:40 PM
  2. quick easy question
    By jmHoekst in forum New To Java
    Replies: 1
    Last Post: 06-19-2008, 03:28 PM
  3. Noob question- easy
    By mattonitto in forum New To Java
    Replies: 7
    Last Post: 06-13-2008, 12:26 AM
  4. Easy question
    By JavaNoob in forum New To Java
    Replies: 10
    Last Post: 08-03-2007, 10:28 PM
  5. bit confused on this question
    By money123 in forum New To Java
    Replies: 2
    Last Post: 07-27-2007, 12:14 PM

Posting Permissions

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