Ant build jar from multiple packages

I am attempting to create a JAR based on two separate Java packages. I can compile and run within Eclipse, but cannot get the code to function from the command line. I have Ant and the JDK correctly configured for usage, as I have an almost working Ant build script. The only problem is that the resulting JAR throws a _**ClassNotFoundException**_ when I attempt to execute it. The archive contains all the __*.class*__ files from both packages in the correct directory hierarchy. Regardless, the JAR will throw the above mentioned exception. The idea is to run this script from the top level directory that contains both packages. Here are the relevant lines from my build script:
how does the jar -tvf jarfile.name look?

以上就是Ant build jar from multiple packages的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏