简体   繁体   English

Netbeans Web服务客户端仅在从IDE运行时才有效

[英]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.

相关问题 代码在ide上有效,但从.jar运行时无效 - Code works on ide but not when running from .jar Java从IDE Netbeans运行GUI程序 - Java running GUI program from IDE Netbeans 解析日期在IDE中有效,但从可运行的JAR文件运行时则无效 - Parsing a date works in IDE but not when running from a runnable JAR file 通过Jar文件执行时,不显示启动屏幕,但从Netbeans IDE执行时,该屏幕有效 - Splash screen not display when execute by Jar File but it works when execute from Netbeans IDE 我的 Java 代码仅在从 IDE 运行时才有效,而不是终端 - My Java code only works when ran from IDE, not terminal executeQuery从不在NetBeans IDE中返回,但在由Java运行时可以工作 - executeQuery never returns in NetBeans IDE but works when run by java 使用Netbeans 7和Axis2从属性文件配置客户端的Web服务URL - Configure webservice URL for client from properties file with Netbeans 7 and Axis2 在NetBeans IDE中运行测试用例时,将日志级别设置为DEBUG - Set log level to DEBUG when running test case in NetBeans IDE 在NetBeans IDE外部运行时文件无法正确读取/创建 - File is not reading/creating properly when running outside Netbeans IDE 无法从Jboss7中运行的Web服务客户端调用Web服务方法 - Cannot call webservice method from webservice client running in Jboss7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM