Thanks for your tips, jiucai
I don't know jar file is viewable untill your mail.
I compared the storm-starter-standalone jar and my self-made jar, and it's
exactly the problem of package path.
Now things works fine.
Thanks
Jilin
On Tue, Aug 4, 2015 at 6:28 PM, 韭菜 <[email protected]> wrote:
> Your jar manifest file must not contain main class , and check if
> my.test.ExclamationTopology.class
> is in your jar and in the right package.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Jilin Xie";
> *发送时间:* 2015年8月4日(星期二) 下午4:47
> *收件人:* "user";
> *主题:* Storm-starter "could not find main class" problem
>
> Hi
>
> with mvn , i can get:
> storm-starter-0.9.5-jar-with-dependencies.jar
>
> And I'm able to do:
> storm jar storm-starter-0.9.5-jar-with-dependencies.jar\
> storm.starter.ExclamationTopology test1
>
> Then, I moved ExclamationTopology to a seperate folder:
> my/test
> and modified the package name of the topology to:
> package my.test;
>
> Then
> jar cf ex.jar ExclamationTopology.java
>
> But when I try:
> storm jar ex.jar my.test.ExclamationTopology test2
>
> I get the "could not find or load main class" error.
>
>
> Can someone tell me what I'm doing wrong.
> Or some recommendation
>