NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Kenshouten
Joined: 30 Oct 2009 Posts: 1
|
Posted: Fri Oct 30, 2009 7:58 pm Post subject: Program runs differently in NetBeans7.1IDE and from .jar |
|
|
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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|