java can run jar from cmd but not by double clicking

后端 未结 6 592
不知归路
不知归路 2020-12-03 12:26

I just created a jar file using jdk7. I tried running it but kept getting an error. It turned out it was pointing at a jre6 and not the jre in jdk7. So, I used the following

6条回答
  •  Happy的楠姐
    2020-12-03 13:11

    Check if the file type jarfile is actually registered with the *.jar extension using

    assoc .jar
    

    Seems like .jar is not linked to jarfile.

提交回复
热议问题