Ant 1.8.4在SpringToolSuite 3.2.0中不起作用。使用SocketTimeoutException崩溃

时间:2013-06-04 05:22:30

标签: java eclipse ant spring-tool-suite

我正在使用基于Eclipse 4.2.0的SpringToolSuite 3.2.0。当我执行ALT + SHIFT + X + Q,这意味着“使用Ant构建”时,控制台视图只会冻结并出现错误日志错误:

Error logged from ANT UI
java.net.SocketTimeoutException: Accept timed out
...
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListeners$ServerConnection.run(RemoteAntBuildLIstener.java:91)

会话数据:

eclipse.buildId=3.2.0.201303060835-RELEASE-e43
java.version=1.6.0_31
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Command-line arguments: -os win32 -ws win32 -arch x86

有什么不对?

2 个答案:

答案 0 :(得分:0)

这似乎是您的eclipse和项目构建路径的问题。检查是否可以修复它。如果没有,如eclipse forum所示,重新安装eclipse并再次导入项目

答案 1 :(得分:0)

只需右键点击我的build.xml - > Run As - > External Tools Configuration - >我的文件配置上的JRE标签。然后选择Run in the same JRE as the workspace。它在Separate JRE上。切换到Run in the same JRE as the workspace后一切正常。