How to open/run .jar file (double-click not working)?

前端 未结 15 1150
陌清茗
陌清茗 2020-12-15 17:26

I can\'t open or run my .jar file.

I just installed java, but I tried to open the .jar with other programs first, so the double-click defaults to something else and

15条回答
  •  悲&欢浪女
    2020-12-15 17:47

    If the intention of the question is to view the contents of the JAR file, then the following java command would help.. (provided, JDK location is added to the environment variables.)

    Windows Command prompt> jar tvf yourJarFile.jar

    • Example:

      jar tvf log4j-extras-1.2.17.jar

    Reference: http://docs.oracle.com/javase/tutorial/deployment/jar/view.html

提交回复
热议问题