使用 Ant 的 Jar 文件
好的,为了找到一种更简单的方法来构建 jar 文件,我听取了用户的建议并尝试采用 Apache Ant 方式。 我将逐步完成本教程 http://ant.apache.org/ Manual/tutorial-HelloWorldWithAnt.html#prepare
一切都很好,直到我到达该行:
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes
在那行之后我收到一条长消息,内容如下...
“Useage: jar {ctxui}[vfm0me] [jar-file] [manifest-file] [entry-point] [-C dir] files...”然后列出选项。
我试图找出我出错的地方,因为我认为遵循教程单词文件单词文件目录文件目录目录会很简单。 我做错了什么还是教程遗漏了什么?
Ok, so in order to find an easier way to build jar files I took a users advice and tried to go the Apache Ant way.
I am going step by step through this tutorial http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#prepare
Everything is fine until I get to the line:
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes
I get a long message right after that line that goes something like this...
"Useage: jar {ctxui}[vfm0me] [jar-file] [manifest-file] [entry-point] [-C dir] files..." Then it lists Options.
I am trying to figure out where I am going wrong as I thought following a tutorial word for word file for file directory for directory would be simple. Am I doing something wrong or is the tutorial missing something??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在教程中,我看到
你是不是漏掉了“.”最后可能吗?
In the tutorial, I see
Are you missing the "." at the end possibly?
我猜你错过了点
I guess, you missed dot