Opening a .jar file

Harry

I can't open .jar file on Windows 10 (I have tried everything like reinstalling Java and setting the default app to open it to be javaw.exe) and I don't exactly trust jarunner/jarfixer so I want to make a batch program which would detect whenever a .jar is being opened it would get the path of it and would run java -jar [pathtofile].

npocmaka

You'll need to execute this as administrator:

ASSOC .jar=jarfile
FTYPE jarfile=c:\java\java.exe -jar "%1" %*
setx PATHEXT "%PATHEXT%;.jar"

Just put the correct path to the java.exe . Mind that you'll have to keep all your dependencies in the %classpath% vatiable.

More for ASSOC and FTYPE commands.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Opening pdf file

From Dev

Google App Engine Eclipse Error: Error opening zip file or JAR manifest missing : /Applications/eclipse

From Dev

Sorting and opening and writing a file

From Dev

Opening a numbered file in c

From Dev

Error opening zip file or JAR manifest missing : C:\Program

From Dev

Opening a PDF file that is packaged in a JAR

From Dev

Get a file in a jar in jar

From Dev

Espresso-android jar - 'Error in opening zip file' in android studio 8.x

From Dev

netbeans jar build file not opening

From Dev

opening a jpg file in python

From Dev

Opening a HDFS file in browser

From Dev

Opening a PDF file stored in a jar file with the desktop's default app

From Dev

Opening a File from a FileInfo

From Dev

Error opening zip file or JAR manifest missing : jrebel.jar

From Dev

Opening a file from a hyperlink

From Dev

SQLiteManager: Error in opening file?

From Dev

Opening file for reading in COBOL

From Dev

Cassandra: Error opening zip file or JAR manifest missing : D:\cassandra\lib\jamm-0.3.2

From Dev

Google App Engine Eclipse Error: Error opening zip file or JAR manifest missing : /Applications/eclipse

From Dev

Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jar

From Dev

Running grails from STS shows Error opening zip file or JAR manifest missing

From Dev

Opening a PDF file that is packaged in a JAR

From Dev

Runnable JAR file not opening JFrame

From Dev

Changing which java file runs first when opening jar

From Dev

a java exception has occured while opening .jar file

From Dev

Script after opening jar file doesn't execute code after and not throwing any error

From Dev

Opening a .jar .desktop file duplicates the icon on the favorite bar

From Dev

Mac not opening .jar files

From Dev

Translating a Jar-opening Batch file into its MacOS Equivalent

Related Related

  1. 1

    Opening pdf file

  2. 2

    Google App Engine Eclipse Error: Error opening zip file or JAR manifest missing : /Applications/eclipse

  3. 3

    Sorting and opening and writing a file

  4. 4

    Opening a numbered file in c

  5. 5

    Error opening zip file or JAR manifest missing : C:\Program

  6. 6

    Opening a PDF file that is packaged in a JAR

  7. 7

    Get a file in a jar in jar

  8. 8

    Espresso-android jar - 'Error in opening zip file' in android studio 8.x

  9. 9

    netbeans jar build file not opening

  10. 10

    opening a jpg file in python

  11. 11

    Opening a HDFS file in browser

  12. 12

    Opening a PDF file stored in a jar file with the desktop's default app

  13. 13

    Opening a File from a FileInfo

  14. 14

    Error opening zip file or JAR manifest missing : jrebel.jar

  15. 15

    Opening a file from a hyperlink

  16. 16

    SQLiteManager: Error in opening file?

  17. 17

    Opening file for reading in COBOL

  18. 18

    Cassandra: Error opening zip file or JAR manifest missing : D:\cassandra\lib\jamm-0.3.2

  19. 19

    Google App Engine Eclipse Error: Error opening zip file or JAR manifest missing : /Applications/eclipse

  20. 20

    Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jar

  21. 21

    Running grails from STS shows Error opening zip file or JAR manifest missing

  22. 22

    Opening a PDF file that is packaged in a JAR

  23. 23

    Runnable JAR file not opening JFrame

  24. 24

    Changing which java file runs first when opening jar

  25. 25

    a java exception has occured while opening .jar file

  26. 26

    Script after opening jar file doesn't execute code after and not throwing any error

  27. 27

    Opening a .jar .desktop file duplicates the icon on the favorite bar

  28. 28

    Mac not opening .jar files

  29. 29

    Translating a Jar-opening Batch file into its MacOS Equivalent

HotTag

Archive