简体   繁体   中英

open .Jar file with java and not javaw via Double Click

I have a .jar file that I would like to open via double clicking it and not the command line. When I double click it however it opens with Javaw.exe, I would like it to open with Java.exe when I double click it.

Note: I do not want to change the default program it opens with (Java TM Platform SE binary) because I still want my other .jar files to open with Javaw.exe.

Thanks

I would have suggested changing the file associations, but you say you don't want other .jar files to open with java.exe . So your best option might be to create a batch file and double click that instead.

eg my_jar.bat with contents:

C:\Program Files\Java\jre7\bin\Java.exe my_jar.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM