Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

how do I open a .jar file with winrar?



  • Please log in to reply
16 replies to this topic
WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

i tried "run winrar.exe file.jar" but that didnt work



vsub
  • Members
  • 1098 posts
  • Last active: Sep 28 2015 09:48 AM
  • Joined: 10 Nov 2011

One question...you want to open the jar archive or run the java program(which requires JRE to be installed)

 

If you want to open the archive.

Run,the path to winrar "the path to the jar file"



Menixator
  • Members
  • 744 posts
  • Last active: Sep 01 2015 02:54 PM
  • Joined: 10 Jul 2013

This might help: <http://stackoverflow.com/questions/8453543/extracting-jar-file-with-command-line>



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

One question...you want to open the jar archive or run the java program(which requires JRE to be installed)

 

If you want to open the archive.

Run,the path to winrar "the path to the jar file"

i did that but it said cant access folder then another window popped up saying the same thing about the jar



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

One question...you want to open the jar archive or run the java program(which requires JRE to be installed)

 

If you want to open the archive.

Run,the path to winrar "the path to the jar file"

i did that but it said cant access folder then another window popped up saying the same thing about the jar



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

i just want to open it, so i can put files in it



vsub
  • Members
  • 1098 posts
  • Last active: Sep 28 2015 09:48 AM
  • Joined: 10 Nov 2011
✓  Best Answer

For example.

Run,C:\Program Files\WinRAR\WinRAR.exe "C:\Documents and Settings\User\Desktop\test.jar"

This open the jar archive and I can see what's inside.

 

Possible reasons to not work for you.

1.You didn't set the paths correctly

2.Your version of winrar can't open the jar archive

3.The jar archive is damaged.

4.Or it's related to permissions

 

If you open WinRar and browse to the jar file folder,select the jar file and click on the View button,does winrar open the archive or you get an error?



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

For example.

Run,C:\Program Files\WinRAR\WinRAR.exe "C:\Documents and Settings\User\Desktop\test.jar"

This open the jar archive and I can see what's inside.

 

Possible reasons to not work for you.

1.You didn't set the paths correctly

2.Your version of winrar can't open the jar archive

3.The jar archive is damaged.

4.Or it's related to permissions

 

If you open WinRar and browse to the jar file folder,select the jar file and click on the View button,does winrar open the archive or you get an error?

when i open it manually with winrar it opens fine, but with the run command it doesn't work



vsub
  • Members
  • 1098 posts
  • Last active: Sep 28 2015 09:48 AM
  • Joined: 10 Nov 2011

Works fine here

Run,C:\Program Files\WinRAR\WinRAR.exe "C:\Documents and Settings\User\Desktop\1\util.jar"
ExitApp

If you drop the jar file over the winrar.exe does it open the archive?



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

Works fine here

Run,C:\Program Files\WinRAR\WinRAR.exe "C:\Documents and Settings\User\Desktop\1\util.jar"
ExitApp

If you drop the jar file over the winrar.exe does it open the archive?

i just made it do:

Send, {LWinDown}r{LWinUp}
Sleep, 100
Send, C:\Program Files\WinRAR\WinRAR.exe C:\Users\WoWees8\AppData\Roaming\.minecraft\versions\Optifine\Optifine.jar


WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

if i do C:\Program Files\WinRAR\WinRAR.exe %AppData%\Roaming\Roaming\.minecraft\versions\Optifine\Optifine.jar in the run command i get errors



vsub
  • Members
  • 1098 posts
  • Last active: Sep 28 2015 09:48 AM
  • Joined: 10 Nov 2011

This way you are actually trying to open

C:\Program Files\WinRAR\WinRAR.exe \Roaming\Roaming\.minecraft\versions\Optifine\Optifine.jar

because AHK don't know what AppData mean and adding percentage around it,AHK think that AppData is some variable.

 

If you want AppData,then use A_AppData

C:\Program Files\WinRAR\WinRAR.exe %A_AppData%\Roaming\Roaming\.minecraft\versions\Optifine\Optifine.jar

 

http://www.autohotke...s/Variables.htm



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

This way you are actually trying to open

C:\Program Files\WinRAR\WinRAR.exe \Roaming\Roaming\.minecraft\versions\Optifine\Optifine.jar

because AHK don't know what AppData mean and adding percentage around it,AHK think that AppData is some variable.

 

If you want AppData,then use A_AppData

C:\Program Files\WinRAR\WinRAR.exe %A_AppData%\Roaming\Roaming\.minecraft\versions\Optifine\Optifine.jar

 

http://www.autohotke...s/Variables.htm

when i do the %% thing it does this gyle.pngqlOYBYn.png



vsub
  • Members
  • 1098 posts
  • Last active: Sep 28 2015 09:48 AM
  • Joined: 10 Nov 2011

Hmm,did you tried with the full path to the file



WoWees8
  • Members
  • 17 posts
  • Last active: Jul 25 2013 08:04 PM
  • Joined: 30 Mar 2013

Hmm,did you tried with the full path to the file

yea, that works, i just put a input box so the person has to type it in