[英]Netbeans webservice client works only when running from IDE
Using Netbeans 6.8 and metro 2.0 I have written a simple application that makes calls to a webservice and displays the results in java swing components. 使用Netbeans 6.8和Metro 2.0,我编写了一个简单的应用程序,该应用程序调用Web服务并在java swing组件中显示结果。 When I run the application in the Netbeans IDE (using F6), the application works perfectly. 当我在Netbeans IDE(使用F6)中运行该应用程序时,该应用程序运行良好。
However, when I attempt to run the compiled application from the .jar file in the dist folder, my swing UI comes up, but when I press the button that causes my web service to be called, nothing happens. 但是,当我尝试从dist文件夹中的.jar文件运行已编译的应用程序时,我的swing UI出现了,但是当我按下导致调用我的Web服务的按钮时,没有任何反应。
Anyone know how I can get this to work? 有人知道我该如何使用它吗?
Try running in a terminal window (CMD.EXE) to see if there are any exceptions printed to the console. 尝试在终端窗口(CMD.EXE)中运行,以查看是否有任何异常打印到控制台。
Does your action listener work when stand alone? 单独使用时,您的动作监听器可以工作吗? Confirm by printing a message to System.out. 通过将消息打印到System.out进行确认。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.