1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java runtime / compiler execute difference

Discussion in 'Java' started by askmurphy, Jul 20, 2011.

  1. askmurphy

    askmurphy New Member

    Joined:
    Jul 7, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    (Java runtime / compiler execute difference)

    I have made a little Java program (NetBeans).
    When I RUN the builded RUNTIME version (myprogram.jar) on a Windows 7 (32bit, 3Ghz) computer, so not inside the NetBeans environment, it works but a part of the program doesn't work at all.

    (some selection to open a new Dialog, it doesn't open the new Dialog).
    Don't understand how this is possible, any ideas ?
     
  2. ewaldhorn

    ewaldhorn New Member

    Joined:
    Feb 16, 2010
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    Cape Town, South Africa
    Home Page:
    This is a difficult question to answer without some context.

    Are you still having problems with it?
     
  3. askmurphy

    askmurphy New Member

    Joined:
    Jul 7, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    I solved the problem, it was a bug (assignment of variables from different kinds).
    Strange thing was that it works inside netbeans, but not as a runtime.

    Some bug checking would be nice, who can advise an option or tool for this (netbeans) ?
     
  4. ewaldhorn

    ewaldhorn New Member

    Joined:
    Feb 16, 2010
    Messages:
    36
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    Cape Town, South Africa
    Home Page:
    Interesting.

    It might be worth-while posting a sample so someone could figure out why it worked in NetBeans and not outside.

    Bug checking is difficult, you could try FindBugs - it helps you locate many of those hard-to-spot bugs. There is a NetBeans plugin, but I prefer running it from the command-line though.

    Get more information from http://findbugs.sourceforge.net/
     

Share This Page