
Java browser plug-ins might have gone out of fashion, but there are still many programs that run off Java. You can open Java programs with JAR files.
However, some Java software users can’t always open JAR programs when the “Error: Unable to access jarfile” error message pops up. These are a few resolutions for the jarfile error message.
- How can I get rid of Unable to access jarfile error on Windows 10?
- 1. Add the Most Updated Java Version to Windows
- 2. Select Java as the Default Program for JAR Files
- 3. Select the Show Hidden Files, Folders, and Drives Option
- 4. Open the Jarfix Software
- Error: Unable to access jarfile server.jar
- Связанные статьи
How can I get rid of Unable to access jarfile error on Windows 10?
1. Add the Most Updated Java Version to Windows
First, check you have the most updated Java version installed. The most updated version is currently Java 8 161. This is how you can update Java in Windows 10.
- First, press the Win key + R keyboard shortcut to open Run.
- Enter ‘appwiz.cpl’ in the Run text box, and click the OK button.
- Enter ‘Java‘ in the Search Programs search box as shown in the snapshot below.

- Then select Java to check what version you have. The version is shown at the bottom of the window and listed in a Version column.
- If you don’t have the most update Java version, press the Uninstall button.
- Click the Yes button to confirm.
- Open this webpage in your browser.

- Press the Free Java Download button to save the JRE setup wizard.
- Thereafter, a dialog box might open from which you can press a Run button launch the JRE installer. If not, open the folder you saved the setup wizard in, right-click the Java install wizard and select Run as administrator.
- Press the Install button on the setup wizard’s window to install Java.
Nothing happens when you click on Run as administrator? Don’t worry, we’ve got the right fix for you.
2. Select Java as the Default Program for JAR Files
Jarfile error messages usually pop up when Java isn’t configured as the default software for a JAR file. Instead, an archive utility might be the associated default program for JARs.
So selecting Java as the default program for a JAR file might kick-start its program. This is how you can configure the default software for the JAR format.
- Open File Explorer and the folder that includes your JAR file.
- Right-click the JAR file and select Open with >Choose default program >Choose another app to open the window in the shot directly below.

- Select Java if it’s listed among the default programs.
- If Java isn’t listed among the programs, select the Look for another app on this PC option.
- Then browse to the Java folder, select Java and press the Open button.
- Press the OK button on the Open with window.
- Click the JAR to launch its program.
3. Select the Show Hidden Files, Folders, and Drives Option
- The “unable to access jarfile” error message can also pop up when the Show Hidden Files, Folders, and Drives option isn’t selected. To select that option, open File Explorer.
- Click the View tab and press the Options button to open the window directly below.

- Select the View tab shown directly below.

- Select the Show Hidden Files, Folders, and Drives Files and Folders option.
- Press the Apply button.
- Press the OK button to close the window.
4. Open the Jarfix Software
Jarfix is a lightweight program designed to fix Java programs that aren’t starting. The program fixes JAR filetype associations.
Click jarfix.exe on this webpage to save the software to a folder. Then you can click the jarfix.exe to open the window below and fix the JAR association. That’s all there is to it, and there are no further options to select on the Jarfix window.

Those are a few resolutions that might fix the “unable to access jarfile” error and kick-start your JAR software. For further details on how to launch JAR files in Windows, check out this article.
If you have any other questions, don’t hesitate to leave them in the comments section below.
RELATED STORIES TO CHECK OUT:
Error: Unable to access jarfile server.jar
Эта ошибка означает что сервер не может получить доступ к исполняемому jar файлу. Вам необходимо переименовать ваш исполняемый jar файл в server.jar (важно: необходимо соблюсти регистр всех букв — должны быть строчными).
Если у вас его вовсе нет файла server.jar следуйте инструкции: https://craftbuy.ru/index.php?rp=/knowledgebase/6/—.html
Error: Invalid or corrupt jarfile server.jar
Error: An unexpected error occurred while trying to open file server.jar
Эти ошибки означают что ваш исполняемый jar файл повреждён, либо что-то другое случилось с файлом. В этом случае загрузите его заново, либо скачайте другой. Некоторые проверенные есть у нас на сайте: https://craftbuy.ru/index.php?rp=/knowledgebase/6/—.html
-
894 Пользователи нашли это полезным
Связанные статьи
Если у вас не получается войти в игру и вы видите ошибку указанную в заголовке (или другую.
Следующие рекомендации помогут вам решить проблемы с подключением к серверу:1) Проверьте точность.

When I try to execute my jar file through the command prompt by typing:
java -jar myJar.jar
It returns an error message saying that it can not access the jar file. Why is this? myJar.jar is the exact name of my jar file.
-
7 Contributors
- forum16 Replies 18,622 Views 10 Years Discussion Span
- commentLatest Post 3 Years Ago by stultuske
![]()
Where is your jarfile and where are you trying to do that?
And what’s your classpath?

my jar file is MyJar.jar located at C:Documents and SettingsJoshMy DocumentsJAVA Programs.
My Class path is payroll, The jarfile and manifest files are all correct I believe.
I am trying to execute ‘payroll’ through the command prompt.
![]()
you’d have to be in that very directory then. And add ‘.’ to your classpath and path.

how would you get into that directory?

Do this list what is in your manifest file here. Also list exactly what you are typing on the command line with all the full path and class path so we can see what’s wrong

I am sure that my jar and manifest files are correct:
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: Payroll
I was typing in the command prompt: java -jar myJar.jar
it returns ‘unable to access jar file.
my jar file is myJar.jar located at C:Documents and SettingsJoshMy DocumentsJAVA Programs.
My Class path is payroll

I haven’t run java programs from the command line for quite some time but i think this is it. Someone correct me if i am wrong
The manifest file looks correct.
Let me know if it works

hmm.. when I type that in it says ‘Unable to access jarfile and’
Maybe its because the starting prompt says: C:Documents and SettingsJosh> ?

hmm.. when I type that in it says ‘Unable to access jarfile and’
Maybe its because the starting prompt says: C:Documents and SettingsJosh> ?
The starting prompt needs to be the location of java.exe
![]()
The starting prompt needs to be the location of java.exe
No it doesn’t. As long as java.exe is on the path you’re fine.
And that’s not his problem anyway. His problem is a path problem where he can’t find a jar he tries to launch.
So all he needs to do is call java with the correct location for the jar, which he doesn’t seem capable of doing for some reason.
A beginner’s course in using a command prompt might be in order 

You have to forgive me for the wrong code as i have not run jar files from command lines since 1998 but this is what you need to put exactly on the command line.
Say your jar file is at «C:Josh.jar»
Say your java.exe file is at «C:javainjava.exe»
Type this exactly
remember that the -jar has a space on either of its side and for the java.exe don’t include the .exe
I usually try to run my jar files programatically using the Runtime class as with that i can get both the error and output stream of the runtime.
Let me me know how it works out
I hope this helps you

Hey. I know this thread is EXTREMELY outdated, but it is still almost at top at google, and I did not find this solution anywhere else online. I just changed the starting prompt location to the folder in which the jar file is located. For example, if your jar file location and name is: C:UsersTodfile.jar, you can do two commands:
cd C:UsersTod
java -jar file.jar
This worked for me, hope it helps!

hey Joankim it also works for me but my question is why ISN’T java -jar -cp «c:xxxxxxxx»MyJar.jar working from command prompt.
![]()
Harvey_1 :
you could/should have posted that in a new thread. this is what we refer to as a ‘dead thread’, a thread that is years old, and marked ‘solved’ almost a decade ago. chances of people reading this are slim.
start a new thread, provide all the information of your specific case, and ask your question there.

^ to answer to the person above me, i happened to find this thread pretty useful and considering how it is decade old but still on google top search for this issue, its amazing, Anyway, thank you guys for all your help.
![]()
John: seriously, there is no need at all to revive dead threads. This will still pop-up in google, or by just using the search button on the top right.
If you only consider top-google results as resources, I recommend a different carreer choice.