anyBody please share the knowledge.
i am facing this Exception
java.lang.ClassNotFoundException
from this project A
package com.demo.feed;
@WebServlet("/run")
public class ProjA {
String[] args={};
new com.om.demo.ProjB().main(args);
}
i have to call main method of maven Project B
package com.om.demo;
public class ProjB {
public void main( String[] args )
{
hello();
}
static void hello() {
System.out.println("some text");
}
}
I tried these things adding project B to project A and after that on run configuration i have added classPath Variables..
Needed output in console : some text