Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By pkjana

Thread: Netbeans 7 - problem in output window

  1. #1
    GESAN is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default Netbeans 7 - problem in output window

    Good day everyone!

    My problem in Netbeans 7 was when I run my java program it will not display an output...Here's my simple source code:

    public class DisplayingText
    {
    public static void main(String[] args)
    {
    System.out.println("Is this s a bug...?");
    System.out.println("Please fix it");
    }
    }

    By the way I can run the program if i will change the location of the Java Project to C:\Program Files\Java, BUT HOW WILL I RUN MY JAVA PROJECT IN MY "DOCUMENTS"?

    Questions:
    1. Do you think I need to configure the Netbeans 7 to run my java program in the NetbeansProjects of Documents?
    NetbeansProjects locaction: C:\Users\Gesan G Sarupan\Documents\ NetbeansProjects

    2. Do you think an antivirus and firewall could also be a factor that it will not display an output? Anent to this, how about my MS-DOS version?

    Notes: *I already set the path in Environment Variables and watched a lot of tutorials in Youtube how to make and compile a java project…
    *Antivirus: COMODO
    *OS: Windows 7
    *System type: 32 bit
    *MS-DOS: Version 6.1.7600

    Please e-mail me @ gesan.gomez.sarupan@gmail.com or post your reply. I’ll be waiting…
    Thanks in advance for the help.
    Peace.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Please post your Netbeans questions in a Netbeans forum.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,238
    Rep Power
    19

    Default

    Moved here from 'New to Java'

    db

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,010
    Rep Power
    20

    Default

    What exactly happens when you try to run this?
    What does Netbeans say?

  5. #5
    pkjana is offline Member
    Join Date
    Aug 2011
    Posts
    2
    Rep Power
    0

    Default

    1. create a new project
    2. create a package under source package of your project
    3. Right click on the package and add a java class
    4. write your code
    5. right click on the file and click on Run
    6. see the output window
    nandhinianand likes this.

  6. #6
    GESAN is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default Quest for an answer why my program will not display an output in Netbeans 7

    hi pkjana and Tolls.
    *To Tolls:
    1. When i run the program the messages in the output window were:
    run:
    BUILD SUCCESSFUL (total time: 0 seconds)

    *To pkjana:
    I already tried that procedures but still it will not display an output.

    By d way here are my steps in making a Java Project using Netbeans 7...Please comment..Tnx
    1. Click File
    2.Select "New Project"
    3.Under Categories, I selected "Java" then chose "Java Application" under Projects.
    4.Click the "Next" button.
    5.I activated all the check boxes.

    Note: by d way i also tried not to activate "Create Main Class" and "Set as Main Project" then just type the main method which is "public static void main(String[] args)"...

    6.Then click the "Finish" button.
    7. Create a package under "Source Packages" of my project

    8. Right click on the package and add a java class

    *Note: by d way i also tried to create "Java Class" and the "Java Main Class" under default package of my project...

    9. write your code
    public class DisplayingText
    {
    public static void main(String[] args)
    {
    System.out.println("New to Netbeans 7");
    System.out.println("Is this s a bug...?");
    System.out.println("By d way i also tried reinstalling netbeans and jdk");
    System.out.println("Please fix it or ain't really understand the error...whatsoever");
    }
    }

    10. right click on the file and click on Run

    *By the way I also tried to "Clean and Build" my Project

    same error...no display in Output Window




    For the moment, i just saved all my Java Projects to C:\Program Files\Java because it will not display an output if i will save my Java Project to C:\Users\Gesan G Sarupan\Documents\ NetbeansProjects

    I'm so grateful for the reply...I'm still searching for an answer why it will not display an output...

    Thanks and Peace.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,238
    Rep Power
    19

    Default

    GESAN, please keep on-topic discussions on the forum. I've deleted the private message you sent me and shall not be replying to it.

    Please do not misuse the PM feature again.

    db

  8. #8
    GESAN is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default

    To: DarrylBurke
    Moderator

    Its okay...
    Sorry for sending you a private message regarding my problem in Netbeans 7 because I'm thinking you can help me in my problems...

    thanks and peace.

  9. #9
    GESAN is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default

    To: Junky
    Senior Member...
    <Improving the world one idiot at a time!>

    Its okay...
    Sorry for sending you a private message regarding my problem in Netbeans 7 because I'm thinking you can help me in my problems...

    thanks and peace.

Similar Threads

  1. Change GUI Window Style in netbeans
    By helptoall in forum NetBeans
    Replies: 1
    Last Post: 03-23-2011, 05:31 AM
  2. Netbeans output window won't display
    By jujubinaj in forum New To Java
    Replies: 1
    Last Post: 12-16-2010, 02:51 AM
  3. Replies: 1
    Last Post: 08-25-2010, 07:57 PM
  4. Compiler Output Window Issue
    By sweetpea123 in forum New To Java
    Replies: 2
    Last Post: 04-10-2010, 05:56 PM
  5. Scrollbar on graphics output window
    By ann123 in forum AWT / Swing
    Replies: 3
    Last Post: 06-27-2009, 08:47 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
  •