0

I'm trying to open a JAR file, but it won't open. I've tried:

  • Reinstalling Java.
  • After renaming the file to example.jar, I tried java -jar (I got an Error: Unable to access jarfile example.jar).
  • Double clicking on the file/. I think that it's using JavaTM Platform SE Binary because it shows a little coffee thing as the thumbnail.
  • Right clicking and selecting "open with," then selecting JavaTM Platform SE Binary.

What else can I do? I've tried different JAR files as well, and it doesn't work. I guess that there's something wrong with how my system opens the JAR files, but I'm not sure what to do.

Thanks for the help!

TheKingElessar
  • 1,654
  • 1
  • 10
  • 30

1 Answers1

0

Thanks everyone for your suggestions; I read over this: Error: Unable To Access Jar File‌​access-jar-file. I used the complete path to the file in CMD and it worked! I'd like to not have to do that every time, so I'll look into everyone's suggestions more. Thanks!

Community
  • 1
  • 1
TheKingElessar
  • 1,654
  • 1
  • 10
  • 30
  • You must either specify the full path or change to the directory that contains it, as I specified earlier. I don't think there is any way around this – Papershine Jan 31 '17 at 03:10
  • 1
    @HilaryLau No 'workaround' required. (a) It is working as documented; (b) it is working exactly the same way as any other command where you specify a filename argument. You have to supply a correct path. – user207421 Jan 31 '17 at 03:18