`
sunxboy
  • 浏览: 2868598 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

Running Jar file in Windows

 
阅读更多

Easiest route is probably upgrading or re-installing the Java Runtime Environment (JRE).

Or this:

  • Open the Windows Explorer, from the Tools select 'Folder Options...'
  • Click the File Types tab, scroll down and select JAR File type.
  • Press the Advanced button.
  • In the Edit File Type dialog box, select open in Actions box and click Edit...
  • Press the Browse button and navigate to the location the Java interpreter javaw.exe.
  • In the Application used to perform action field, needs to display something similar to C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe" -jar "%1" % (Note: the part starting with 'javaw' must be exactly like that; the other part of the path name can vary depending on which version of Java you're using) then press the OK buttons until all the dialogs are closed.
分享到:
评论

相关推荐

    jar包启动脚本与关闭脚本win+linux

    这里,`JAR_FILE`变量指定了jar包的路径,`JAVA_OPTS`设置了Java虚拟机(JVM)的参数,如活动的Spring配置文件(`spring.profiles.active`)和内存分配。`java -jar`命令用于启动jar包,最后的`pause`是为了在脚本...

    Spring Boot Auth with JWT TOKEN and ROLES

    and Create a JAR file and make that aviable in the project directory $ mvn clean install = JAR FILE = /target/demo-0.0.1-SNAPSHOT.jar Run JAR FILE : $ java -jar target/demo-0.0.1-SNAPSHOT....

    生成JAR包的方法(打包后运行好像不快)

    - `jar cvf JAR_FILE_NAME MANIFEST_FILE CLASS_FILES` - 其中`cvf`表示创建一个新的JAR文件;`MANIFEST_FILE`是指定的清单文件路径;`CLASS_FILES`是需要打包的类文件。 例如,要创建名为`classes.jar`的JAR包...

    windows部署jar服务包结构和脚本

    在Windows环境下部署Java应用程序,通常会涉及到将项目打包成JAR(Java Archive)文件,然后通过脚本自动化启动和管理这个服务。本文将详细介绍Windows下部署JAR服务包的结构和脚本编写方法。 首先,我们需要理解一...

    linux 一键启动 jar包 批处理脚本

    JAR_FILE_PATH="/path/to/your/app.jar" ``` 接着,我们可以定义函数来执行不同的操作。例如,启动Spring Boot应用的命令通常是: ```bash start() { nohup java -jar $JAR_FILE_PATH > /dev/null 2>&1 & } ``` ...

    cvs静态报表jar包

    Running StatCvs StatCvs is run using the command: java -jar statcvs-xml-full.jar This will generate the reports in the html documents in a directory statcvs-xml-out/. The directory will be created...

    教你怎样把class文件打成jar包--用java命令打包

    这里的`cvf`分别是`create`(创建)、`verbose`(详细输出)、`file`(指定JAR文件名)的缩写。 #### 将一个目录下的所有Class文件打包 如果你想要打包一个目录下的所有`.class`文件,可以简化为: ```bash jar ...

    hibernate-shards.jar

    running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a...

    tModLoader.Windows.v0.11.6.2.7z

    To install tModLoader, extract the zip achive containing this README.txt file to a temporary folder and then simply run the tModLoaderInstaller.jar file in that folder. Java 1.8 or higher is required ...

    UE(官方下载)

    A question we often see is "I have a lot of blank lines in my file and I don't want to go through and manually delete them. Is there an easier way to do this?" The answer is: yes! Configure FTP Set up...

    javamail相关jar包.zip

    attachmentPart.attachFile("path/to/your/file"); MimeMultipart multipart = new MimeMultipart("related"); multipart.addBodyPart(attachmentPart); message.setContent(multipart); ``` 在实际应用中,可能还...

    kingdao自动生成DAO/DTO

    specific methods: unzip to D root directory, modify the property file of the database path, driver, user name, password, enter CMD to the D drive is running java-jar kingdao.jar disk in D test folder...

    JavaSoundDemo.zip

    The classes for the Java Sound demo are contained in the JavaSoundDemo.jar file. Running the demo requires the Java 2 SDK, Standard Edition 1.3. To run the Java Sound demo : % java -jar ...

    光纤盘多路复合工具驱动

    1. need to copy both the .jar file and setup executable to /tmp directory on the Unix server 2. change the permission 3. execute the setup. 4. to create Host Based Authentication on the RSM Host Agent...

    Linux jar包启动脚本start.sh

    在Linux环境中,jar包是Java应用程序的打包形式,它包含了所有的类、资源和元数据,使得用户可以直接运行而无需编译源代码。`start.sh`是一个常用的Linux脚本,用于自动化启动Java应用程序,特别是那些以jar包形式...

    详解spring boot 以jar的方式启动常用shell脚本

    nohup java -jar -Dalarm.config.file=$ALARM_CONFIG_FILE $JAVA_OPTIONS_INITIAL $JAVA_OPTIONS_MAX $_JAR_KEYWORDS --spring.config.location=$APPLICATION_FILE > /dev/null 2>&1 & echo -ne "\033[32m ...

    Elasticsearch for Hadoop

    Getting the examples and building the job JAR file Importing the test file to HDFS Running our first job Exploring data in Head and Marvel Viewing data in Head Using the Marvel dashboard ...

    Android Platform Developer‘s Guide.doc

    Building a APK that depends on a static .jar file 16 Building a APK that should be signed with the platform key 16 Building a APK that should be signed with a specific vendor key 17 Adding a prebuilt ...

    apktool documentation

    // builds foo.jar.out folder into foo.jar.out/dist/foo.jar file $ apktool build foo.jar.out // builds foo.jar.out folder into foo.jar.out/dist/foo.jar file $ apktool b bar // builds bar folder into ...

Global site tag (gtag.js) - Google Analytics