[英]How to execute a source Code provided as a jar file?
Iam trying to test lattice monitoring framework in my virtual environment. 我正在尝试在我的虚拟环境中测试晶格监视框架。 I downloaded the source monitoring-src-0.6.4.jar from lattice .
我从lattice下载了源代码Monitoring-src-0.6.4.jar。 I executed it using
我执行了
java -jar monitoring-src-0.6.4.jar
but iam getting the message like no main manifest attribute, in monitoring-src-0.6.4.jar 但是我在monitoring-src-0.6.4.jar中收到像没有主清单属性一样的消息
I checked MANIFEST.MF in META-INF it is like this 我在META-INF中检查MANIFEST.MF就像这样
"Manifest-Version: 1.0 “清单版本:1.0
Ant-Version: Apache Ant 1.7.1 Ant版本:Apache Ant 1.7.1
Created-By: 14.3-b01-101 (Apple Inc.)" 创建者:14.3-b01-101(Apple Inc.)”
No main class is there. 那里没有主班。 I dont know which one is the main class.
我不知道哪个是主要的。
Then I downloaded the compiled version monitoring-0.6.4.jar from lattice and executed 然后我从晶格下载了编译版本的监视-0.6.4.jar并执行了
java -jar monitoring-0.6.4.jar
but gives me same error "no main manifest attribute, in monitoring-0.6.4.jar". 但是给了我同样的错误“监视-0.6.4.jar中没有主清单属性”。 I dont know what to do??
我不知道该怎么办?? Could you please help me to solve this problem??
您能帮我解决这个问题吗? I dont know whether iam doing the correct thing.
我不知道我是否在做正确的事。
You can't execute the source code. 您无法执行源代码。 Do exactly what you're already doing, but download the compiled version .
完全执行您已经在做的事情,但是下载编译的版本 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.