Hello
I have a program which, at some point, uses jdic to create an internal browser and display a page inside it.
Withing the Netbeans itself everything works just fine. When I build it, though, and run the .jar file I come across a problem: clicking on the button which should trigger opening on the internal browser does not do that and produces no error.
I have been able to trace it down to the point where the line
WebBrowser webBrowser = new WebBrowser();
actually stops the whole thing running. But still no error, no exception, just nothing.
I have read on java.net forums that sometimes jdic might not initialise correctly so I have put jdic.dll next to my .jar file. Now the internal browser window would open but freeze straight away.
My question rather concerns what is the difference between inner NetBeans environment to when I run the program from a .jar file? And how to overcome that difference? Again, my point is that, since inside IDE everything works fine, it should work fine when built into .jar, right?
Thanks.