Решения проблем с запуском
Что делаеть, если сервер не запускатся и выдется ошибка?
Нужно успеть сделать скриншот или видео запись на пк/телефоне, чтобы увидеть то, что пишет нам
консоль
.
Error: Unable to access jarfile spigot.jar
Error: Unable to access jarfile spigot.jar
Такая ошибка может возникнуть, если Вы некорректно загрузили Вашу сборку и все необходимые файлы для работы сервера на хостинг.
Как это сделать, Вы можете почитать тут:
Invalid Maximum heap size. The specified size exceeds the maximum representable size или ERROR OCCURRED DURING INITIALIZATION OF VM
Invalid Maximum heap size. The specified size exceeds the maximum representable size или ERROR OCCURRED DURING INITIALIZATION OF VM
Первым делом попробуйте установить
Java 8
для 64 разрядных систем. Далее перейдите в «Пуск» > «Панель управления» > «Java», после открытия окна перейдите в раздел «Java» и нажмите кнопку «View». В строке «Runtime Parameters» укажите значение «-Xms1G -Xmx2G», вместо 1 и 2 укажите необходимое количество ОЗУ, которое вы хотите выделить под Java
Можете воспользоваться
гайдом
.
Ошибка, которая встречается в случаях, когда у Вас открыта какая-то программа или второй сервер, занимающий необходимый порт.
Консоль вообще не открывается
Консоль вообще не открывается
Попробуйте другой запускатор, если у вас Windows, либо проверьте установку Java. В случае, если это не помогло, напишите нам в поддержку
VK
или
биллинга
.

Want a better Minecraft server?
Read about SpigotMC here!
-
Had a problem back at Bukkit’s website that was just like this.
Everything’s the same, including capitalization.
java -Xmx2G -jar spigot.jar -o trueLast login: Mon Oct 14 11:12:28 on ttys002
Michaels-iMac:~ loot99$ /Users/loot99/Desktop/Bungee/Server 1/start.command ; exit;
Error: Unable to access jarfile spigot.jar
logout
[Process completed]EDIT: Also, when I try to run BungeeCord, it comes up with this.
Last login: Mon Oct 14 11:12:44 on ttys002
Michaels-iMac:~ loot99$ /Users/loot99/Desktop/Bungee/Bungee/start.command ; exit;
Error: Unable to access jarfile BungeeCord.jar
logout
[Process completed] -
You first need to tell your server where the jar file is located I think? At least I had to
-
xD im a noob at this how do i do it
-
Can someone give me their startup script so I can compare it to mine?
-
Wiki Team
If you really want a start script, put the following code above the java line in the file:
-
Sorry if this bump is against the rules but I am having a related issue and this is the first thread that showed up on Google.
Why do I keep getting this error? -
It may be because there is no «spigot.jar» in the folder you are trying running the command.
-
Funny x 1
-
-
There is as shown when I done ‘ls’ (list directory contents). I tried with the correct capitals too.
-
Linux shows file extensions under ls, get your Spigot out of your BuildTools
-
Seems like I missed some common sense, anyway I used an alternate to BuildTools and everything is fine. Thanks anyway.
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
- ERROR, Unable to access jarfile server.jar, server.jar, Invalid or corrupt jarfile server.jar, An unexpected error occurred while trying to open file server.ja
- 1021 Пользователи нашли это полезным
Связанные статьи
Как создать новый мир?
Удалите все файлы из Вашей папки мира сервера или укажите новое имя мира в параметре level-name в…
I want to execute my program without using an IDE.
I’ve created a jar file and an exectuable jar file. When
I double click the exe jar file, nothing happens, and when I try to use the command in cmd it gives me this:
Error: Unable to access jarfile <path>
I use the command: java -jar Calculator.jar
How I created the jar:
- Right click on project folder (Calculator)
- Select
- Click on Java Folder and select «Exectuable Jar File», then select next
- Launch Configuration: Main — Calculator
- Create Export Destination
- Hit «Finish» and profit! Well, not really.
Raedwald
46.2k41 gold badges150 silver badges235 bronze badges
asked Aug 14, 2012 at 0:01
Joseph SmithJoseph Smith
3,2235 gold badges20 silver badges18 bronze badges
12
I had encountered this issue when I had run my Jar file as
java -jar TestJar
instead of
java -jar TestJar.jar
Missing the extension .jar also causes this issue.
answered Sep 16, 2014 at 10:26
Vinay KadalagiVinay Kadalagi
1,2651 gold badge8 silver badges11 bronze badges
4
Fixed
I just placed it in a different folder and it worked.
Paolo Forgia
6,5428 gold badges46 silver badges58 bronze badges
answered Aug 15, 2012 at 4:05
Joseph SmithJoseph Smith
3,2235 gold badges20 silver badges18 bronze badges
9
[Possibly Windows only]
Beware of spaces in the path, even when your jar is in the current working directory. For example, for me this was failing:
java -jar myjar.jar
I was able to fix this by givng the full, quoted path to the jar:
java -jar "%~dp0myjar.jar"
Credit goes to this answer for setting me on the right path….
answered Mar 15, 2016 at 3:15
Robert BrownRobert Brown
10.9k7 gold badges34 silver badges40 bronze badges
2
I had this issue under CygWin in Windows. I have read elsewhere that Java does not understand the CygWin paths (/cygdrive/c/some/dir
instead of C:somedir
) — so I used a relative path instead: ../../some/dir/sbt-launch.jar
.
answered Aug 4, 2016 at 17:18
radumanolescuradumanolescu
4,0492 gold badges31 silver badges44 bronze badges
3
I had the same issue when trying to launch the jar file. The path contained a space, so I had to place quotes around. Instead of:
java -jar C:Path to FilemyJar.jar
i had to write
java -jar "C:Path to FilemyJar.jar"
Dharman♦
30.5k22 gold badges84 silver badges133 bronze badges
answered Sep 6, 2015 at 18:05
2
Just came across the same problem trying to make a bad USB…
I tried to run this command in admin cmd
java -jar c:fwduckyduckencode.jar -I c:fwduckyHelloWorld.txt -o c:fwduckyinject.bin
But got this error:
Error: unable to access jarfile c:fwduckyduckencode.jar
Solution
1st step
Right click the jarfile in question. Click properties.
Click the unblock tab in bottom right corner.
The file was blocked, because it was downloaded and not created on my PC.
2nd step
In the cmd I changed the directory to where the jar file is located.
cd C:fwducky
Then I typed dir
and saw the file was named duckencode.jar.jar
So in cmd I changed the original command to reference the file with .jar.jar
java -jar c:fwduckyduckencode.jar.jar -I c:fwduckyHelloWorld.txt -o c:fwduckyinject.bin
That command executed without error messages and the inject.bin I was trying to create was now located in the directory.
Hope this helps.
mcls
8,9512 gold badges28 silver badges28 bronze badges
answered Oct 23, 2015 at 20:26
2
None of the provided answers worked for me on macOS 11 Big Sur. The problem turned out to be that programs require special permission to access the Desktop, Documents, and Downloads folders, and Java breaks both the exception for directly opened files and the permission request popup.
Fixes:
- Move the .jar into a folder that isn’t (and isn’t under) Documents, Desktop, or Downloads.
- Manually grant the permission. Go to System Preferences → Security and Privacy → Privacy → Files and Folders → java, and check the appropriate folders.
answered Jan 27, 2021 at 9:50
twhbtwhb
4,2342 gold badges20 silver badges22 bronze badges
If you are using OSX, downloaded files are tagged with a security flag that prevents unsigned applications from running.
to check this you can view extended attributes on the file
$ ls -l@
-rw-r--r--@ 1 dave staff 17663235 13 Oct 11:08 server-0.28.2-java8.jar
com.apple.metadata:kMDItemWhereFroms 619
com.apple.quarantine 68
You can then clear the attributes with
xattr -c file.jar
answered Oct 13, 2017 at 10:24
nick foxnick fox
5718 silver badges15 bronze badges
1
I had a similar problem and I even tried running my CMD with administrator rights, but it did not solve the problem.
The basic thing is to make sure to change the Directory in cmd to the current directory where your jar file is.
Do the following steps:
-
Copy jar file to Desktop.
-
Run CMD
-
Type command
cd desktop
-
Then type
java -jar filename.jar
This should work.
Edit: From JDK-11 onwards ( JEP 330: Launch Single-File Source-Code Programs )
Since Java 11, java command line tool has been able to run a single-file source-code directly. e.g.
java filename.java
answered Dec 26, 2018 at 6:22
Vishwa RatnaVishwa Ratna
5,4125 gold badges33 silver badges55 bronze badges
It can also happen if you don’t properly supply your list of parameters. Here’s what I was doing:
java -jar test@gmail.com testing_subject file.txt test_send_emails.jar
Instead of the correct version:
java -jar test_send_emails.jar test@gmail.com testing_subject file.txt
answered Jul 15, 2015 at 8:06
BuffaloBuffalo
3,8818 gold badges44 silver badges69 bronze badges
This worked for me.
cd /path/to/the/jar/
java -jar ./Calculator.jar
answered Nov 15, 2016 at 18:18
For me it happens if you use native Polish chars in foldername that is in the PATH.
So maybe using untypical chars was the reason of the problem.
answered Oct 8, 2015 at 9:52
HuxwellHuxwell
1612 silver badges14 bronze badges
sometime it happens when you try to (run or create) a .jar file under /libs folder by right click it in android studio. you can select the dropdown in top of android stuio and change it to app. This will work
answered Feb 17, 2016 at 10:44
anand krishanand krish
4,2314 gold badges42 silver badges47 bronze badges
My particular issue was caused because I was working with directories that involved symbolic links (shortcuts). Consequently, trying java -jar ../../myJar.jar
didn’t work because I wasn’t where I thought I was.
Disregarding relative file paths fixed it right up.
answered Nov 18, 2015 at 23:31
MattSayarMattSayar
2,0686 gold badges23 silver badges28 bronze badges
In my case the suggested file name to be used was jarFile*.jar
in the command line. The file in the folder was jarFile-1.2.3.jar
. So I renamed the file to jarFile
. Then I used jarFile.jar
instead of jarFile*.jar
and then the problem got resolved
answered Jan 22, 2017 at 6:41
sukusuku
10.5k16 gold badges75 silver badges118 bronze badges
1
It can happen on a windows machine when you have spaces in the names of the folder. The solution would be to enter the path between » «.
For example:
java -jar c:my folderx.jar -->
java -jar "c:my folderx.jar"
Sundar
4,5806 gold badges35 silver badges61 bronze badges
answered Oct 31, 2017 at 8:57
assafassaf
211 bronze badge
1
To avoid any permission issues, try to run it as administrator. This worked for me on Win10.
answered Mar 14, 2018 at 15:14
GicoGico
1,2562 gold badges15 silver badges30 bronze badges
1
I know this thread is years ago and issue was fixed too. But I hope this would helps someone else in future since I’ve encountered some similar issues while I tried to install Oracle WebLogic 12c and Oracle OFR in which its installer is in .jar
format. For mine case, it was either didn’t wrap the JDK directory in quotes or simply typo.
Run Command Prompt
as administrator and execute the command in this format. Double check the sentence if there is typo.
"C:Program FilesJavajdk1.xxxxxbinjava" -jar C:UsersxxxDownloadsxxx.jar
If it shows something like JRE 1.xxx is not a valid JDK Java Home
, make sure the System variables for JAVA_HOME
in Environment Variables is pointing to the correct JDK directory. JDK 1.8 or above is recommended (2018).
A useful thread here, you may refer it: Why its showing your JDK c:program filesjavajre7 is not a valid JDK while instaling weblogic server?
answered Oct 23, 2018 at 6:54
not_Princenot_Prince
3201 silver badge17 bronze badges
For me it happen because i run it with default java version (7) and not with compiled java version (8) used to create this jar.
So i used:
%Java8_64%binjava -jar myjar.jar
Instead of java 7 version:
java -jar myjar.jar
answered Feb 9, 2020 at 19:19
Adir DayanAdir Dayan
1,24813 silver badges21 bronze badges
I had a similar problem where TextMate or something replaced the double quotes with the unicode double quotes.
Changing my SELENIUM_SERVER_JAR
from the unicode double quotes to regular double quotes and that solved my problem.
answered Mar 30, 2016 at 18:05
TankorSmashTankorSmash
12.1k6 gold badges68 silver badges103 bronze badges
this is because you are looking for the file in the wrong path
1. look for the path of the folder where you placed the file
2. change the directory cd in cmd use the right path
answered Jun 19, 2016 at 21:39
0
I use NetBeans and had the same issue. After I ran build and clean project my program was executable. The Java documentation says that the build/clean command is for rebuilding the project from scratch basically and removing any past compiles. I hope this helps. Also, I’d read the documentation. Oracle has NetBeans and Java learning trails. Very helpful. Good luck!
answered Jul 16, 2017 at 13:43
Maybe you have specified the wrong version of your jar.
answered Sep 21, 2017 at 21:52
cosbor11cosbor11
14.4k10 gold badges53 silver badges69 bronze badges
I finally pasted my jar file into the same folder as my JDK so I didn’t have to include the paths. I also had to open the command prompt as an admin.
- Right click Command Prompt and «Run as administrator»
- Navigate to the directory where you saved your jdk to
- In the command prompt type:
java.exe -jar <jar file name>.jar
answered Jan 14, 2020 at 15:04
Keep the file in same directory where you are extracting it. That worked for me.
answered Jan 22, 2020 at 2:18
Aishwary joshiAishwary joshi
611 gold badge1 silver badge4 bronze badges
This is permission issue, see if the directory is under your User.
That’s why is working in another folder!
answered Jul 31, 2020 at 13:05
DimitriosDimitrios
1,13311 silver badges10 bronze badges
Rename the jar file and try
Explanation :
yes, I know there are many answers still I want to add one point here which I faced.
I built the jar and I moved it into the server where I deploy (This is the normal process)
here the file name which I moved already existed in the server, here the file will override obviously right. In this case, I faced this issue.
maybe at the time of overriding there can be a permission copy issue.
Hope this will help someone.
answered Aug 3, 2020 at 14:12
If you are on WSL (Windows Subsystem for Linux), and following a guide which say, says this:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
You actually need to specify the full path, even though you’ve provided it in the java.library.path
part.
java -Djava.library.path=/mnt/c/dynamodb_local/DynamoDBLocal_lib -jar /mnt/c/dynamodb_local/DynamoDBLocal.jar -sharedDb
answered Apr 21, 2020 at 14:10
AncientSwordRageAncientSwordRage
7,03719 gold badges88 silver badges171 bronze badges
2
Have you tried to run it under administrator privoleges?
meaning, running the command in «Run As» and then select administrator with proper admin credentials
worked for me
answered May 14, 2019 at 20:28
I was trying this:
After giving the file read, write, execute priviledges:
chmod 777 java-repl.jar
alias jr="java -jar $HOME/Dev/java-repl/java-repl.jar"
Unable to access bla bla…, this was on Mac OS though
So I tried this:
alias jr="cd $HOME/Dev/java-repl/ && java -jar java-repl.jar"
answered Jul 23, 2019 at 8:53
KingleeKinglee
531 silver badge8 bronze badges
Are you getting the “Unable to access Jarfile” error prompt when setting up a custom Minecraft server? You may also encounter the error when you attempt to open a .Jar package. The error message means that the Jar file cannot be found.
In most cases, this happens when the .Jar handlers are not configured correctly. It could also mean that the .Jar file is not located where it is supposed to be in the JAR folder. Other things that are commonly associated with the error include an outdated Java version, and wrong file path.
If you are unable to access jarfile in Minecraft or any other Java-based application, this guide will help you fix it in just a few minutes.
What is JAR?
JAR is an acronym for Java Archive—a file format that is based on ZIP. The package file format is used to group multiple Java class files with their associated resources, and metadata into a single package. The files are grouped for the purpose of distribution.
To open JAR files, you must have the Java Run-time Environment (JRE) installed on your computer. Even so, only the executable JAR files can be opened.
What Causes the Unable to Access Jarfile Error?
The unable to access Jarfile Minecraft error prompt mag be triggered by different things, most of which relate to how the Jar Files are handled on the computer. Are you unable to access Jarfile on Windows 10, Linux, or just can’t launch JAR file on Mac?
Discussed below are some of the things that are known to trigger the error message:
Required Jar File is Missing
Are you getting the error message when you try to launch the Minecraft game? If so, chances are that the Jarfile set in Multicraft is not currently in the correct location, within the JAR folder. Again, you may get this error message when the file path for the Java executable is not configured correctly.
In such a case, the system will end up hitting the wrong location for the Jar executable file.
Default Program not Set
In other cases, the error can occur simply because you have not configured the right program to open Jar files by default on your PC.
Server Jar Installer Issues
Other users are getting the “unable to access Jar file” error message when attempting to upload and set up a custom panel. In most cases, this occurs when the panel tried to look for a custom server version that is not currently supported by your Server Jar Installer.
Again, the system may be unable to access the relevant Jar file simply because the Jar value entry on the server details page is invalid. If you would like to use a custom Jar file, ensure that the file is named correctly.
Simply log into your FTP panel on Minecraft and check whether the name of the Jar file is set to ‘my.jar’.
Outdated Java Version
If you are getting this error message following an update of the Minecraft game, it may be as a result of software incompatibility. The newer version of the game you just installed may require a different Java application version to run.
In this case, you need to update the Java App on your computer to the latest version fix the unable to access Jarfile error on Windows 10.
Did you encounter this error message while setting up a Minecraft server? To begin with, you should find a valid entry to use within your JAR folder. In most cases, you will find that the Jar file is labeled something different from what the server is looking for, i.e. Minecraft-1.10.2.jar.
If this is the problem, you need to rename the Jar file into what the panel is looking for, through your FTP panel. If this does not appear to be the problem, you should try the following methods to troubleshoot and fix the unable to access Jarfile error:
Method 1: Install the Latest Java Version
One of the common triggers of the “unable to access Jarfile” error message is an outdated Java version. To be on the safe side, you need to ensure that you are running the latest version of Java on your computer. To update the program, press the Windows + R keys simultaneously to open a Run dialog box.
Type appwiz.cpl into this dialog box and press the Enter key. This operation will open the ‘Programs and Features’ menu window. On the list of installed programs, scroll down to the Java option, right-click on it and select Uninstall.
Follow on-screen prompts to remove the program from your PC. Once done, close the window and navigate to the official Java website to download the latest Java installation file. After downloading, double-click on the executable file to run it. Follow the on-screen prompts to complete the installation.
Method 2: Check for Relevant Documentation (Applies to Developers)
As developers, you may encounter this error message when you attempt to launch JAR files while coding. In this case, it is advisable that you first read the documentation for the utility or function you are using to run JAR files.
Reading the relevant documents ion will help you know whether you had been passing incorrect parameters or just using the wrong file path for the Jar files. Some of the leading coding websites, such as Stack Overflow, probably have a demo for the utility/functionality you are trying to implement.
These will help you know where you went wrong, fix the problem, and successfully clear the “unable to access jarfile” error message.
Method 3: Fix Unable to Access Jarfile Windows 7 Error (Set the Default File Association)
Whether you are running Windows 7 or Windows 10 on your PC, you may get this error simply because Java is not set as the default Jar files handler. While various archiving programs may be configured to open Jar files by default, not all will produce the desired results, especially with the Minecraft game.
To fix the problem, you need to change the file association for JAR files on your computer. The following procedure will help you achieve that:
Step One: Configure the ‘Open With’ Settings
Open the directory where the problematic Jar file is saved, and right-click on it. From the context menu that appears, choose the ‘Open With’ option. This will display a list of programs you may use to open/run Jar files. Select Java from this list.
If Java is not readily available in this list, select the ‘Choose another App’ option, and then proceed to select Java.
Step Two: Set the Default Association Permanently
Press the Windows + I keys on your keyboard simultaneously to open the Settings Menu. Navigate to Apps, and then choose ‘Default apps’ from the left navigation bar on your screen. Scroll down and select the ‘Choose default apps by file type’ option towards the bottom.
Now find the .jar files entry and ensure that it is configured to be opened by Java. Once you are done, save the changes and exit the window. At this point, you need to restart the computer and check whether the error has cleared.
Method 4: Configure the Show Hidden Files, Folders, and Drives Settings
If the system is not configured to show hidden files, folders, and drives, you may also end up getting the “unable to access Jarfile” error on Minecraft. To change the settings, open File Explorer on your Windows PC, and click on the View tab.
Next, click n the options button to reveal a window directory. From this directory, select the View tab that appears directly below, and then choose the “Show Hidden Files, Folders, and Drives Files and Folders” option.
Having made the selection, click on the Apply button to save the changes, and then click on OK to close the window.
Method 5: How to Fix the Unable to Access Jarfile MacOS Problem
This inability to open Jar files is also known to plague Mac computers. If you can’t launch a JAR file in Mac, the problem could be the Java Virtual Machine, or the launcher itself. The problem may also occur when you are connected through SSH, and the machine user is not logged in.
Here are some of the solutions you may apply to fix the unable to access Jar file on Mac OS:
Run the .Jar File form the Terminal
Provided that the .Jar file is properly constituted, running it from a Terminal is the best workaround for this issue. To run a Jar file from the Terminal, press the Control + Option + Shift + T keys simultaneously to open a new Terminal.
Now type $ java -jar filename.jar into the new Terminal and press the Enter key. You can now check to see if the problem has been resolved.
Run the .jar File in the Console
Running the problematic Jar file directly in the Console will display an error message. This error message will include a reason why you are unable to run the .jar file on your Mac computer. The message will also feature tips on how you can debug the problem.
Just read through the error message and try to apply the recommended fixes.
Final Verdict
You may get the unable to access .Jarfile Minecraft server error on both Windows and Mac computers. Normally, it occurs when you try to apply a custom server version on your panel. There are multiple other scenarios, under which you may get this error message, as you have learned throughout this guide.
The right solution for the problem will depend on what is actually triggering the error message. Regardless of the cause, the procedures illustrated above will help you resolve the unable to access .Jarfile error in Windows and Mac OS.