首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何解决jarsigner不能在java中工作,因此构建失败?

如何解决jarsigner不能在java中工作,因此构建失败?
EN

Stack Overflow用户
提问于 2018-08-15 00:16:46
回答 1查看 0关注 0票数 0

jarsigner没有在java中工作,因此构建失败。

代码语言:txt
复制
  [signjar] jarsigner: unable to sign jar: no response from the Timestamping Authority. When connecting from behind a firewall an HTTP or HTTPS proxy may need to be specified. Supply the following options to jarsigner:
  [signjar]   -J-Dhttp.proxyHost=<hostname>
  [signjar]   -J-Dhttp.proxyPort=<portnumber>
  [signjar] or
  [signjar]   -J-Dhttps.proxyHost=<hostname> 
  [signjar]   -J-Dhttps.proxyPort=<portnumber> 

项目生成路径中没有错误,所有依赖项都在构建路径中导入。

EN

回答 1

Stack Overflow用户

发布于 2018-08-15 09:31:16

这是我理解的问题:

  • 尝试使用Ant“build.xml”文件构建项目
  • 在Eclipse中运行构建
  • 在没有Internet访问权限的VM中运行Eclipse
  • jarsigner尝试与时间戳机构(TSA)通信时,在JAR签名期间构建失败,需要访问Internet才能与TSA通信。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100005982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档