java can run jar from cmd but not by double clicking

后端 未结 6 599
不知归路
不知归路 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条回答
  •  臣服心动
    2020-12-03 13:22

    Isn't it easier to change your java version to you rnew jdk7 by changing the CLASSPATH environment variable? See how here

提交回复
热议问题