Can't execute jar- file: “no main manifest attribute”

后端 未结 30 1898
不知归路
不知归路 2020-11-21 22:30

I have installed an application, when I try to run it (it\'s an executable jar) nothing happens. When I run it from the commandline with:

java -jar \

30条回答
  •  甜味超标
    2020-11-21 22:57

    I had this problem and i solved it recently by doing this in Netbeans 8 (Refer to the image below):

    Netbeans project properties

    1. go to properties of your project.
    2. click on Run.
    3. specify the main class of your project using browse.
    4. build and run the Jar file.

提交回复
热议问题