I generated a very simple runnable jar file using Eclipse\'s \"Export-->Java-->Runnable Jar File\" function. My HelloWorld class looks like this:
import ja
In my case, by mistake I had not declared the class containing public static void main() as a public class. After declaring the class as public was able to resolve this issue with the next export as runnable jar via eclipse...
Hope this helps...