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

Reply via email to