Results 1 to 4 of 4
  1. #1
    RedSix is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default Debug gives same result when I change the code!

    Hi,

    I'm new to NetBeans, and Java in general.

    When I run some code (click the big green arrow) my program is executed.

    But when I alter the code, even dramatically change it, when I hit the green arrow again, it gives the output from the old code still.

    I have tried clicking Build Main Project and Clean and Build main project, but it still happens.

    How can I update the IDE so it runs the new code?

    Many many thanks for anyone's help.

    It is most appreciated!

    Thanks! :)

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    1. Once you click on the green arrow, IDE runs the main project in your NetBeans project list. Are you sure that you set the main project as the one you are working on?

    2. NetBeans 6.5 have an unusual option. Once you click save only the project is compiled. Disable the option and try. If that option is enable, you can see an image of hammer with the coffee-cup on the project list window.

  3. #3
    RedSix is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default

    Thanks Eranga, I've gone with Eclipse instead.

    Seems to work more like Visual Studio.

    Appreciated :)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Debug challenge: how do you debug a Java program?
    By CJSLMAN in forum New To Java
    Replies: 60
    Last Post: 07-04-2009, 10:28 AM
  2. my code doesn't change background color
    By javanoobita in forum New To Java
    Replies: 5
    Last Post: 02-22-2009, 04:30 AM
  3. Servlet code change
    By joeyxaza in forum Java Servlet
    Replies: 0
    Last Post: 02-20-2009, 05:15 PM
  4. need a code to get the result of avgscan.exe file
    By Michael in forum New To Java
    Replies: 0
    Last Post: 06-11-2008, 11:43 AM
  5. how to debug java code in eclipse
    By rajesh058 in forum Advanced Java
    Replies: 3
    Last Post: 07-25-2007, 11:19 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
  •