NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Program runs differently in NetBeans7.1IDE and from .jar

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Kenshouten



Joined: 30 Oct 2009
Posts: 1

PostPosted: Fri Oct 30, 2009 7:58 pm    Post subject: Program runs differently in NetBeans7.1IDE and from .jar Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo