Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Java runtime / compiler execute difference (http://www.go4expert.com/forums/java-runtime-compiler-execute-difference-t26324/)

askmurphy 20Jul2011 09:13

Java runtime / compiler execute difference
 
(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 ?

ewaldhorn 6Aug2011 15:45

Re: Java runtime / compiler execute difference
 
This is a difficult question to answer without some context.

Are you still having problems with it?

askmurphy 6Aug2011 22:04

Re: Java runtime / compiler execute difference
 
Quote:

Originally Posted by ewaldhorn (Post 85790)
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) ?

ewaldhorn 7Aug2011 21:31

Re: Java runtime / compiler execute difference
 
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/


All times are GMT +5.5. The time now is 22:09.