Java runtime / compiler execute difference

askmurphy's Avatar, Join Date: Jul 2011
Light Poster
(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 ?
0
ewaldhorn's Avatar, Join Date: Feb 2010
Go4Expert Member
This is a difficult question to answer without some context.

Are you still having problems with it?
0
askmurphy's Avatar, Join Date: Jul 2011
Light Poster
Quote:
Originally Posted by ewaldhorn View Post
This is a difficult question to answer without some context.

Are you still having problems with it?
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) ?
0
ewaldhorn's Avatar, Join Date: Feb 2010
Go4Expert Member
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/