Runnable jar file generated by Eclipse wont execute?

前端 未结 3 1230
长发绾君心
长发绾君心 2020-12-18 10:45

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         


        
3条回答
  •  醉酒成梦
    2020-12-18 11:05

    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...

提交回复
热议问题