Error in opening zip file что делать

When I create a new project I finish the steps and click on "finish" and wait for the project to open. But instead I see an error: I can't solve this problem.

When I create a new project I finish the steps and click on «finish» and wait for the project to open.
But instead I see an error:

Error: Cause: error in opening zip file. Consult IDE log for more details (Help | Show Log)

I can’t solve this problem.

blalasaadri's user avatar

blalasaadri

5,9755 gold badges39 silver badges58 bronze badges

asked Dec 5, 2013 at 11:51

Mr Ahemd Mamdouh's user avatar

5

My Installation & problem details

I had this issue after importing a github project into Android Studio using the File > Import Project option. Network was fine and I had other Android Studio projects working properly so this was not a installation issue. I run Android Studio (Preview) 0.5.4

enter image description here

The solution that worked for me

I had the luxury of comparing differences with working projects. That is how I discovered the error was due to the distributionUrl property in the gradle/wrapper/gradle-wrapper.properties file.

In the failing project this was set like distributionUrl=http://services.gradle.org/distributions/gradle-1.10-all.zip. While in the working project this was distributionUrl=http://services.gradle.org/distributions/gradle-1.11-all.zip. Note the difference in the version.

Updating this distributionUrl in gradle-wrapper.properties to this 1.11 link solved the issue for me.

About the Network

I have this issue on a very restricted network and I can see that the gradle-1.10 link does point to a zip file. The network issue sounds very plausible to. Probably I already have the 1.11 zip downloaded while on another network. I’s less likely (though not impossible) that the 1.10 zip is broken.

answered Apr 10, 2014 at 7:49

hcpl's user avatar

Android Studio error installing Gradle

Your situation may be like this one. Just redownload the right gradle-1.x.zip, and replace the bad one on ~/.gradle/wrapper/dists/gradle-1.x/[hash code]/
and the restart the android-studio

Note: ~/.gradle/ is where the directory may be found on unixoid operating systems (e.g. Linux, OS X, …). On Windows it’s typically at C:/Users/[NAME]/.gradle/.

Community's user avatar

answered Dec 25, 2013 at 13:48

jerry's user avatar

jerryjerry

4841 gold badge5 silver badges17 bronze badges

1

You can erase the existing gradle zip file, then download the appropriate one from Link https://gradle.org/releases/, and copy the new one (basically replace the existing one, mine was cc 5 MB, with new one cc 80 MB). Then reload Studio, and wait.

answered Feb 19, 2018 at 12:56

user9380860's user avatar

In my case it caused because of not properly configured HTTP proxy settings.
Android Studio created the gradle-1.x-bin.zip file with the HTML error page of my proxy server inside. Obviously it won’t be able to open the zip file afterwards.

The error disappeared once I configured the HTTP proxy settings under File > Settings > HTTP Proxy, deleted the existing archive and restarted Android Studio.

answered Feb 1, 2014 at 14:29

Alex Lipov's user avatar

Alex LipovAlex Lipov

13.3k5 gold badges62 silver badges85 bronze badges

If it says asks for disable offline mode, disable it by clicking on it again. It will download some required jar files. Then enable offline mode by checking checkbox under gradle settings for offline work. Disconnect from internet and rebuild project to see if it still works.

answered Jun 30, 2017 at 12:44

vfs's user avatar

I am Facing this problem….
Go to Link https://gradle.org/releases/
then download complete gradle file ..

Android studio -> Settings -> build tools -> gradle -> Project-level settings -> select Use local gradle distribution

then select your gradle download file

And Ok….Automatically Sync Gradle and Solve Your Problem ….

answered Oct 10, 2017 at 23:50

Sohit Sharma's user avatar

Содержание

  1. Minecraft Forums
  2. java.util.zip.ZipException: error in opening zip file
  3. Unable to open archive file что делать minecraft
  4. 4 решение
  5. 3 решение
  6. Решение проблем в TLauncher
  7. 2 решение (Для Windows)
  8. Unable to open archive file что делать minecraft
  9. 1 решение

Minecraft Forums

java.util.zip.ZipException: error in opening zip file

Playing with MultiMC, and a lot of mods installed. This is the error I get when I try to load the game.

Instance folder is:
E:MultiMCinstancesScience-minecraft

Instance started with command:
«C:Program Files (x86)Javajre7binjava.exe» -Xms512m -Xmx1024m -jar MultiMCLauncher.jar «chif_ii» «3516363125370008872» «MultiMC: Science?» «854×480» «Mojang»

Loading jars.
Loading URL: file:/E:/MultiMC/instances/Science-/minecraft/bin/minecraft.jar
Loading URL: file:/E:/MultiMC/instances/Science-/minecraft/bin/lwjgl.jar
Loading URL: file:/E:/MultiMC/instances/Science-/minecraft/bin/lwjgl_util.jar
Loading URL: file:/E:/MultiMC/instances/Science-/minecraft/bin/jinput.jar
Loading natives.
Can’t find main class. Searching.
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile. (Unknown Source)
at java.util.zip.ZipFile. (Unknown Source)
at java.util.zip.ZipFile. (Unknown Source)
at MultiMCLauncher.main(MultiMCLauncher.java:181)
Search failed.
Minecraft exited with code -1.
Minecraft has crashed!

I should note that I’m playing this instance on a different computer than the one it was created on — is that what’s going on?

  • Zombie Killer
  • Join Date: 11/15/2011
  • Posts: 212
  • Member Details

Okay, redownloaded Forge, now I’m getting this instead.

Instance folder is:
E:MultiMCinstancesScience-minecraft

Источник

Unable to open archive file что делать minecraft

В общем, не запускается никакой лаунчер, при вызове просто ничего не происходит, только появляется процесс, у которого даже имени нет, и тут же исчезает.
Все, что ни встречал в тырнете пробовал:

    [*] Яву переустанавливал сто раз, постарался удалить все, что с ней связано, переустановил — Не помогло.
    [*] Скачивал самые разные лаунчеры, никакие не запускаются, кроме одного. Я его откопал где-то в заднице интернета, он запустился, но когда я пытался нажать «Играть» ничего собственно не происходило. Провал.
    [*] Менял переменные среды — Не помогло.
    [*] От себя — откопал на своем пк установщик minecraft beta v1.5_01, он тоже не запустился. Провал.
    [*] Ну и конечно же, я пробовал удалять все, что связано с майнкрафтом (дада, из папки appdata). Не помогло.
    [/list]

Помогите пожалуйста, не знаю уже что делать, не хочу сносить все.

Чтоб мне примерно понять ситуацию прошу ответить на ниже перечисленные вопросы:Другие игры запускаются?Раньше на этом устройстве minecraft работал?Какая видеокарта и стоящая на устройстве операционная система?Стоит ли драйвер на видеокарте?

Чтоб мне примерно понять ситуацию прошу ответить на ниже перечисленные вопросы:
Другие игры запускаются?
Раньше на этом устройстве minecraft работал?
Какая видеокарта и стоящая на устройстве операционная система?
Стоит ли драйвер на видеокарте?

Извиняюсь за задержку.

    [*]Да, абсолютно все игры запускаются, все работает
    [*]Раньше все работало, потом в один момент просто перестало, не могу понять с чем связано, ничего такого в то время вроде бы не устанавливал/скачивал
    [*]Система — Windows 7 Домашняя базовая, видеокарта — NVIDIA GeForce GTX 1050 Ti
    [*]Драйвера есть, периодически обновляю через GeForce Experience
    [/list]
    [*]Да, абсолютно все игры запускаются, все работает
    [*]Раньше все работало, потом в один момент просто перестало, не могу понять с чем связано, ничего такого в то время вроде бы не устанавливал/скачивал
    [*]Система — Windows 7 Домашняя базовая, видеокарта — NVIDIA GeForce GTX 1050 Ti
    [*]Драйвера есть, периодически обновляю через GeForce Experience
    [/list]

Посмотрите журнал обновления win 7! Вероятно системное обновление win сломало файлы необходимые для запуска minecraft. Если примерно по дате обновление совпадает с возникновением проблемы, попробуйте удалить их и перезагрузить пк.

Посмотрите журнал обновления win 7! Вероятно системное обновление win сломало файлы необходимые для запуска minecraft. Если примерно по дате обновление совпадает с возникновением проблемы, попробуйте удалить их и перезагрузить пк.

В общем, все сделал, кое как смог примерно вспомнить промежуток времени, когда появилась эта проблема, удалил все обновления в этом промежутке.Но теперь столкнулся с другой проблемой: не запускаются почти все setup файлы, что странно, ибо некоторые запускаются. В случае с tlauncher выдаёт — «Unable to open archive file». У других бывает что-то вроде — «Error launching installer». Если что, уже пробовал менять значения в regedit (на «%1″%*).

А винда лицензия? Просто я устанавливал паленую пиратку и все игры запускались кроме джава и майнкрафт. Потом поменял винду и все заработало. Но у вас какая то странная проблема, если не поможет то что предлагают другие, лучше снести винду.

А винда лицензия? Просто я устанавливал паленую пиратку и все игры запускались кроме джава и майнкрафт. Потом поменял винду и все заработало. Но у вас какая то странная проблема, если не поможет то что предлагают другие, лучше снести винду

Винда то нормальная, раньше то ведь все работало. Но!! Теперь, после удаления обновлений, есть хоть какая-то реакция, и меня это не может не радовать, осталось только решить проблему с setup’ами и надеюсь все заработает!

В общем, я решил проблему!
После удаления обновлений windows я заметил некоторую закономерность в ошибках запуска setup’ов, а именно: не запускались только setup’ы майнкрафтов или лаунчеры, а также все они лежали в папке путь к которой имеет русские символы. (если что, ошибок раньше вообще никаких не было, ноль реакции)
Переместив в другое место загрузчик tlauncher’a он запустился, но вот дело в том, что путь скачивания неизменен и всегда идет в «C:Users*пользователь*AppDataRoaming», вот тут то и стало ясно в чем дело ибо путь в самом установщике у меня выглядел вот так — «C:Users. AppDataRoaming. » (и поменять его нельзя). Да, моя папка пользователя имеет русское название, но проблема в том, что я не могу переименовать ее, ибо на «Windows 7 домашняя базовая» сделать это просто нереально (перепробовал море методов, ну может и реально, просто надо наверное на машинном уровне решать ее). Соответственно решением стало создания нового пользователя с английским никнеймом
Геморройно выходит, но что поделать. (на самом деле странно, ибо раньше майнкрафт лежал в той же папке с русскими символа в пути и все работало прекрасно)
Спасибо всем за оказанную помощь!

Возможно у некоторых появляется ошибка, показанная выше при запуске версии TLauncher >2.0. Она означает, что необходимые файлы для лаунчера не смогли загрузится с интернета.

4 решение

Мало ли, но можете попробовать обновить драйвера в системе (Видеокарты, Интернет и другие).

3 решение

Скачайте установщик в котором уже собраны необходимые библиотеки:

Решение проблем в TLauncher

— А это платно?
Нет, это бесплатно.

/.tlauncher/ru-minecraft.properties
4) Удалить папку

/.minecraft/ (см. пункт 5)
5) Пути к нужным папкам:
— В Windows: . %Папка пользователя%AppDataRoaming
— В Linux: /home/%Имя пользователя%/
— В MacOS: /home/%Имя пользователя%/Library/Application Support/
(!) Если у Вас есть важные файлы в папке Minecraft, сделайте их резервную копию.

— Не запускается игра, в консоли последние строки:
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot (TM) Client VM warning: using incremental CMS
[. ]

Ошибка связана с выделением оперативной памяти лаунчеру. Для решения, нажимаем «Настройки» -> «Дополнительно», находим надпись «Выделением памяти», пробуем изменять значения до тех пор, пока игра не запустится, конечно после каждого изменения сохраняя и пробуя запускать.

* на скриншоте количество выделяемой памяти стоит для примера, у вас может запуститься только на других значениях.

— Что делать, если TLauncher не запускается?
1) Скачайте лаунчер заново, так как это может быть связано с ошибкой при скачивании/обновлении исполняемого файла.
2) Переместите исполняемый файл TLauncher в папку, в пути которой нет спец. символов (!, ?, @. ) и символов, которых не поддерживает стандарт ASCII (то бишь кириллицы, иероглифов и других не латинских букв).
3) Удалите Java и скачайте более новую версию. Если таковой нет, просто переустановите имеющуюся.

— Как установить 32-битную / 64-битную Java на Windows?
1) Откройте страницу загрузки:
Java 7: ТУТ .
Java 8: ТУТ .
2) Жмакните «Accept License Agreement»
3) Выберите и скачайте нужную версию
Для Java 7: Windows xAA jre-7uNN-windows-xAA.exe
Для Java 8: Windows xAA jre-8uNN-windows-xAA.exe
. где AA – разрядность (32 или 64, выберите нужный), NN – номер апдейта (чем больше, тем лучше и новее).
4) Установите как обычную программу.
5) Готово!

— Как установить скин?
Купить игру и установить в профиле на официальном сайте.

— Почему мой скин отображается криво?
Начиная с версии 1.8 используется другой формат скинов, который не поддерживается в более ранних версиях.

— Я поставил скин по нику, почему он не отображается?
С введением новой системы скинов (с версий 1.7.5+), скин перестал отображаться у пиратов.

— Где взять моды?
У нас на сайте, в разделе Моды.

— Где папка «bin», файл «minecraft.jar»?
После выхода Minecraft 1.6 (которая вышла больше года назад, слоупоки) папка «bin» заменена на папку «versions/Номер_версии/», а «minecraft.jar» на «versions/Номер_версии/Номер_версии.jar» соответственно.

— Версии с Forge (до 1.7.10) не запускаются вообще. Или при их запуске лаунчер перезапускается (закрывается и снова открывается).
Возможно, у тебя установлен один из апдейтов Java 8, который имеет известный баг сортировщика.

Установка специального мода-костыля.
1) Скачай мод: ТУТ .
2) Кинь его в папку /mods/
3) Готово!

– Нажмите «Accept License Agreement»
– Если у тебя 64-битная система, выбери «Windows x64 (jre-7uXX-windows-x64.exe)». Если нет, то выбери «Windows x86 Offline (jre-7uXX-windows-i586.exe)».
* На месте XX любое двузначное число от 51 до 99.
– Запусти загруженный файл

— Не могу играть на сервере!
1) Если выходит ошибка «связанная чем-то там с java», то попробуйте отключить антивирус и/или брандмауэр и проверьте подключение к Интернету.
2) Если выходит ошибка «Bad Login» или «Invalid session» («Недопустимая сессия»), то ошибка связана с тем, что сервер использует премиум-модель авторизации, то есть пиратов (или просто людей с другими лаунчерами), на этот сервер не пустят. Попробуйте войти на этот сервер с использованием лаунчера, который предлагается на сайте/странице этого сервера, либо используйте официальный.

— Не могу играть по локальной сети: пишет «Недопустимая сессия»
«Открыть» сервер для сети могут только премиум-пользователи. Создайте отдельный сервер (У нас есть статья как создать сервер Майнкрафт) и в его настройках пропишите online-mode=false

— Антивирус avast! блокирует трафик TLauncher. Что делать?
Настройки -> Активная защита -> Веб-экран -> Сканировать трафик только через известные браузеры

— Что делать при «Minecraft closed with exit code: -805306369»?
Лаунчер сам консультирует Вас по этому вопросу

У этой ошибки нет строго определённой причины.
Но мне известно, что она имеет место:
— Преимущественно на версиях >1.6.4
— При попытке сломать стекло
— После установки текстур-пака (с сервера)
— Техническая причина: из-за ошибки выделения памяти (PermGen, все дела).

Возможные решения:
— Нажмите галочку «Обновить клиент» и нажмите «Переустановить». Таким образом Вы даёте лаунчеру шанс обнаружить поврежденные файлы и скачать их заново.
— Удалите моды и ресурс-паки. Да, они тоже могут наложить свои лапы на сложившуюся ситуацию
— Можете отключить звук в настройках самого Minecraft. Вы будете играть без звука, зато без вылетов.

2. Найдите нужную версию Forge
3. Скачайте «Installer» выбранной версии
4. Запустите его, нажмите «OK»
5. .
6. Profit! Установленные таким образом версии Forge обычно находятся в конце списка версий.

2. Найдите нужную версию OptiFine и скачайте её. Рекомендуется редакция «Ultra»
3. Запустите файл, нажмите «Install»
4. .
5. Profit!

2. Найдите нужную Вам версию и скачайте её
3. Запустите загруженный файл и выберите версию, на которую надо установить LiteLoader. Примечание: если Вы устанавливали Forge способом выше, то установщик автоматически найдет её. Таким образом, если Вы хотите совместить Forge и LiteLoader, то либо выберите Forge в списке версий, либо щёлкните по галочке «Chain to Minecraft Forge».

— Как установить ForgeOptiFine (и/или OptiForgeLiteLoader) самостоятельно?
1. Скачайте Forge, OptiFine и LiteLoader (при желании) нужных Вам версий (см. выше)
2. Установите и запустите Forge (обязательно), LiteLoader (при желании)
3. Положите OptiFine в папку mods/
4. .
5. Profit! При запуске Forge, OptiFine и LiteLoader (если есть) включат режим взаимной совместимости (или нет)

— Я обновил лаунчер, а у меня пропали все аккаунты/сохранения/сервера/плюшки. Что делать?
Начнём с того, что ничего не пропало. Обновился ТОЛЬКО лаунчер и ТОЛЬКО файл его конфигурации.
Скорее всего, ты поместил папку Minecraft не в стандартную директорию, а в какое-то другое место. Вспомни, где всё это дело лежало, и в настройках лаунчера в поле «Директория» укажи на него. Ничего трудного. Лаунчер снова начнёт работать по старому пути.

0) Прочитайте FAQ выше и попробуйте все варианты решения наиболее частых проблем. Если же не помогло, читаем дальше.

1) Запустите TLauncher.

1. Откройте настройки:

2. Открой вкладку «Дополнительно».

3. Перейдите во вкладку «Настройки TLauncher».

4. Выбери общую консоль разработчика.

5. Сохраните изменения.

1. Кликните правой кнопкой мыши по содержимому консоли и выберите «Сохранить всё в файл. ».

2. Выберите удобное место и сохраните файл там.

3. Залейте файл как документ ВКонтакте или сохраните его на каком-либо файлообменном сервисе.

2 решение (Для Windows)

Запускать можно двойным кликом на файл, или правой кнопкой -> Открыть с помощью -> Java

Unable to open archive file что делать minecraft

Арсен Темирбаев запись закреплена

У меня проблемка возникала. Скачал установщик. Запускаю и выскакивает ошибка: invalid start mode: archive offset. Не знаю что делать.
Но если я запускаю от имени Админа то выскакивает это: Unable to open archive file.

а путь установки не менял? Антивирус не может блокировать? Может разрядность не та, хз

Арсен Темирбаев ответил Aberration

Aberration, Какой еще путь установки. Я первый раз скачал и он лежал в папке Загрузки.

1 решение

Отключите антивирус и брандмауэр на время запуска лаунчера (или добавьте в исключение), возможно одно из этих блокирует соединение.

Источник

0 / 0 / 0

Регистрация: 02.03.2018

Сообщений: 73

1

31.10.2020, 17:05. Показов 1000. Ответов 0


Всем доброго дня, возникла необходимость распаковки файлов, создан некий код, который работает ( ну почти ), но не хочет распаковывать файлы больше 120мб.

Код самого депаковщика:

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
try {
 
            ZipFile zipfile = new ZipFile(archive);
            for (Enumeration e = zipfile.entries();
                 e.hasMoreElements(); ) {
                ZipEntry entry = (ZipEntry) e.nextElement();
                msg = new Message();
                msg.what = 0;
                msg.obj = "Распаковка: " + entry.getName();
                myHandler.sendMessage(msg);
                unzipEntry(zipfile, entry, outputDir);
            }
        } catch (Exception e) {
            log("Error while extracting file " + archive);
            log("Error is: " + e.getMessage());
        }

Полный код класса:

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
public class UnZip implements Runnable {
 
    File archive;
    String outputDir;
 
    public UnZip(File ziparchive, String directory) {
        archive = ziparchive;
        outputDir = directory;
    }
 
    public void log(String log) {
        Log.v("unzip", log);
    }
 
    public void run() {
        Message msg;
        try {
 
            ZipFile zipfile = new ZipFile(archive);
            for (Enumeration e = zipfile.entries();
                 e.hasMoreElements(); ) {
                ZipEntry entry = (ZipEntry) e.nextElement();
                msg = new Message();
                msg.what = 0;
                msg.obj = "Распаковка: " + entry.getName();
                myHandler.sendMessage(msg);
                unzipEntry(zipfile, entry, outputDir);
            }
        } catch (Exception e) {
            log("Error while extracting file " + archive);
            log("Error is: " + e.getMessage());
        }
        msg = new Message();
        msg.what = 1;
        myHandler.sendMessage(msg);
    }
 
    public void streamCopy(InputStream in, OutputStream out) throws IOException {
        byte[] buffer = new byte[32 * 1024]; // play with sizes..
        int readCount;
        while ((readCount = in.read(buffer)) != -1) {
            out.write(buffer, 0, readCount);
        }
    }
 
    public void unzipArchive(File archive, String outputDir) {
        try {
            ZipFile zipfile = new ZipFile(archive);
            for (Enumeration e = zipfile.entries();
                 e.hasMoreElements(); ) {
                ZipEntry entry = (ZipEntry) e.nextElement();
                unzipEntry(zipfile, entry, outputDir);
            }
        } catch (Exception e) {
            log("Error while extracting file " + archive);
            log("Error is: " + e.getMessage());
        }
    }
 
    private void unzipEntry(ZipFile zipfile, ZipEntry entry, String outputDir) throws IOException
    {
 
        if (entry.isDirectory()) {
            createDir(new File(outputDir, entry.getName()));
            return;
        }
 
        File outputFile = new File(outputDir, entry.getName());
        if (!outputFile.getParentFile().exists()) {
            createDir(outputFile.getParentFile());
        }
 
        log("Extracting: " + entry);
        BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
        BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
        try {
            //streamCopy(inputStream,outputStream);
            try {
                IOUtils.copy(inputStream, outputStream);
                //streamCopy(inputStream, outputStream);
            }
            catch (IOException e) {
                log("Error is: " + e.getMessage());
            }
        } finally {
            outputStream.close();
            inputStream.close();
        }
    }
 
    private void createDir(File dir) {
        log("Creating dir " + dir.getName());
        if (!dir.mkdirs())
            throw new RuntimeException("Can not create dir " + dir);
    }
}

Поиски по стеку, МСДН и другим местам ( гугл, документация и т.д ) ничего не дали. Сама ошибка: error in opening zip file

Прошу помочь и направить на решение данной проблемы ( заранее спасибо )
P.S Архивы которые были сжаты в 7z на Ultra так же не хочет депаковывать ( даже маленькие )

Добавлено через 4 часа 58 минут
P.S Если кто-то может предложить хорошую альтернативу стандартному ZipFile, буду весьма рад.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



I have a Jar file, which contains other nested Jars. When I invoke the new JarFile() constructor on this file, I get an exception which says:

java.util.zip.ZipException: error in opening zip file

When I manually unzip the contents of this Jar file and zip it up again, it works fine.

I only see this exception on WebSphere 6.1.0.7 and higher versions. The same thing works fine on tomcat and WebLogic.

When I use JarInputStream instead of JarFile, I am able to read the contents of the Jar file without any exceptions.

jpyams's user avatar

jpyams

3,8207 gold badges36 silver badges64 bronze badges

asked Nov 28, 2008 at 7:12

Sandhya Agarwal's user avatar

Sandhya AgarwalSandhya Agarwal

1,0792 gold badges9 silver badges7 bronze badges

4

Make sure your jar file is not corrupted. If it’s corrupted or not able to unzip, this error will occur.

Blue's user avatar

Blue

22.3k7 gold badges57 silver badges89 bronze badges

answered Sep 27, 2010 at 7:14

arulraj.net's user avatar

0

I faced the same problem. I had a zip archive which java.util.zip.ZipFile was not able to handle but WinRar unpacked it just fine. I found article on SDN about compressing and decompressing options in Java. I slightly modified one of example codes to produce method which was finally capable of handling the archive. Trick is in using ZipInputStream instead of ZipFile and in sequential reading of zip archive. This method is also capable of handling empty zip archive. I believe you can adjust the method to suit your needs as all zip classes have equivalent subclasses for .jar archives.

public void unzipFileIntoDirectory(File archive, File destinationDir) 
    throws Exception {
    final int BUFFER_SIZE = 1024;
    BufferedOutputStream dest = null;
    FileInputStream fis = new FileInputStream(archive);
    ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
    ZipEntry entry;
    File destFile;
    while ((entry = zis.getNextEntry()) != null) {
        destFile = FilesystemUtils.combineFileNames(destinationDir, entry.getName());
        if (entry.isDirectory()) {
            destFile.mkdirs();
            continue;
        } else {
            int count;
            byte data[] = new byte[BUFFER_SIZE];
            destFile.getParentFile().mkdirs();
            FileOutputStream fos = new FileOutputStream(destFile);
            dest = new BufferedOutputStream(fos, BUFFER_SIZE);
            while ((count = zis.read(data, 0, BUFFER_SIZE)) != -1) {
                dest.write(data, 0, count);
            }
            dest.flush();
            dest.close();
            fos.close();
        }
    }
    zis.close();
    fis.close();
}

Mr_and_Mrs_D's user avatar

Mr_and_Mrs_D

31.2k37 gold badges175 silver badges355 bronze badges

answered Sep 22, 2011 at 1:48

JohnyCash's user avatar

JohnyCashJohnyCash

3891 gold badge4 silver badges9 bronze badges

1

I’ve seen this exception before when whatever the JVM considers to be a temp directory is not accessible due to not being there or not having permission to write.

answered Nov 28, 2008 at 17:50

Artur...'s user avatar

It could be related to log4j.

Do you have log4j.jar file in the websphere java classpath (as defined in the startup file) as well as the application classpath ?

If you do make sure that the log4j.jar file is in the java classpath and that it is NOT in the web-inf/lib directory of your webapp.


It can also be related with the ant version (may be not your case, but I do put it here for reference):

You have a .class file in your class path (i.e. not a directory or a .jar file). Starting with ant 1.6, ant will open the files in the classpath checking for manifest entries. This attempted opening will fail with the error «java.util.zip.ZipException»

The problem does not exist with ant 1.5 as it does not try to open the files. — so make sure that your classpath’s do not contain .class files.


On a side note, did you consider having separate jars ?
You could in the manifest of your main jar, refer to the other jars with this attribute:

Class-Path: one.jar two.jar three.jar

Then, place all of your jars in the same folder.
Again, may be not valid for your case, but still there for reference.

Community's user avatar

answered Nov 28, 2008 at 7:16

VonC's user avatar

VonCVonC

1.2m508 gold badges4248 silver badges5069 bronze badges

1

I solved this by clearing the jboss-x.y.z/server[config]/tmp and jboss-x.y.z/server/[config]/work directories.

answered Feb 8, 2011 at 17:34

Marius K's user avatar

Marius KMarius K

4705 silver badges6 bronze badges

I saw this with a specific Zip-file with Java 6, but it went away when I upgrade to Java 8 (did not test Java 7), so it seems newer versions of ZipFile in Java support more compression algorithms and thus can read files which fail with earlier versions.

answered Apr 23, 2015 at 19:44

centic's user avatar

centiccentic

15.4k8 gold badges63 silver badges123 bronze badges

0

Liquibase was getting this error for me. I resolved this after I debugged and watched liquibase try to load the libraries and found that it was erroring on the manifest files for commons-codec-1.6.jar. Essentially, there is either a corrupt zip file somewhere in your path or there is a incompatible version being used. When I did an explore on Maven repository for this library, I found there were newer versions and added the newer version to the pom.xml. I was able to proceed at this point.

answered Jun 9, 2015 at 14:10

iowatiger08's user avatar

iowatiger08iowatiger08

1,89224 silver badges30 bronze badges

I was getting exception

java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0xdeadface)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:221)
    at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140)
    at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:118)
...

when unzipping an archive in Java. The archive itself didn’t seem corrupted as 7zip (and others) opened it without any problems or complaints about invalid CRC.

I switched to Apache Commons Compress for reading the zip-entries and that resolved the problem.

answered Mar 30, 2017 at 12:32

radoh's user avatar

radohradoh

4,4645 gold badges32 silver badges44 bronze badges

Simply to overcome the ZipException’s, i have used a wrapper for commons-compress1.14 called jarchivelibwritten by thrau that makes it easy to extract or compress from and into File objects.

Example:

public static void main(String[] args) {
        String zipfilePath = 
                "E:/Selenium_Server/geckodriver-v0.19.0-linux64.tar.gz";
                //"E:/Selenium_Server/geckodriver-v0.19.0-win32.zip";
        String outdir = "E:/Selenium_Server/";
        exratctFileList(zipfilePath, outdir );
}
public void exratctFileList( String zipfilePath, String outdir ) throws IOException {
    File archive = new File( zipfilePath );
    File destinationDir = new File( outdir );

    Archiver archiver = null;
    if( zipfilePath.endsWith(".zip") ) {
        archiver = ArchiverFactory.createArchiver( ArchiveFormat.ZIP );
    } else if ( zipfilePath.endsWith(".tar.gz") ) {
        archiver = ArchiverFactory.createArchiver( ArchiveFormat.TAR, CompressionType.GZIP );
    }
    archiver.extract(archive, destinationDir);

    ArchiveStream stream = archiver.stream( archive );
    ArchiveEntry entry;

    while( (entry = stream.getNextEntry()) != null ) {
        String entryName = entry.getName();
        System.out.println("Entery Name : "+ entryName );
    }
    stream.close();
}

Maven dependency « You can download the jars from the Sonatype Maven Repository at org/rauschig/jarchivelib/.

<dependency>
  <groupId>org.rauschig</groupId>
  <artifactId>jarchivelib</artifactId>
  <version>0.7.1</version>
</dependency>

@see

  • Archivers and Compressors
  • Compressing and Decompressing Data Using Java APIs

answered Feb 14, 2018 at 13:28

Yash's user avatar

YashYash

8,9902 gold badges67 silver badges72 bronze badges

On Windows7 I had this problem over a Samba network connection for a Java8 Jar File >80 MBytes big. Copying the file to a local drive fixed the issue.

answered Feb 24, 2018 at 7:21

Wolfgang Fahl's user avatar

Wolfgang FahlWolfgang Fahl

14.5k10 gold badges87 silver badges178 bronze badges

In my case , my -Dloader.path="lib" contains other jars that doesn’t need.
for example,mvn dependency:copy-dependencies lists 100 jar files.but my lib directory contains 101 jar files.

answered Aug 16, 2018 at 6:05

hatanooh's user avatar

hatanoohhatanooh

3,5611 gold badge14 silver badges9 bronze badges

In my case SL4j-api.jar with multiple versions are conflicting in the maven repo. Than I deleted the entire SL4j-api folder in m2 maven repo and updated maven project, build maven project than ran the project in JBOSS server. issue got resolved.

answered Mar 14, 2020 at 4:26

Elias's user avatar

EliasElias

6442 gold badges11 silver badges23 bronze badges

I have a Jar file, which contains other nested Jars. When I invoke the new JarFile() constructor on this file, I get an exception which says:

java.util.zip.ZipException: error in opening zip file

When I manually unzip the contents of this Jar file and zip it up again, it works fine.

I only see this exception on WebSphere 6.1.0.7 and higher versions. The same thing works fine on tomcat and WebLogic.

When I use JarInputStream instead of JarFile, I am able to read the contents of the Jar file without any exceptions.

jpyams's user avatar

jpyams

3,8207 gold badges36 silver badges64 bronze badges

asked Nov 28, 2008 at 7:12

Sandhya Agarwal's user avatar

Sandhya AgarwalSandhya Agarwal

1,0792 gold badges9 silver badges7 bronze badges

4

Make sure your jar file is not corrupted. If it’s corrupted or not able to unzip, this error will occur.

Blue's user avatar

Blue

22.3k7 gold badges57 silver badges89 bronze badges

answered Sep 27, 2010 at 7:14

arulraj.net's user avatar

0

I faced the same problem. I had a zip archive which java.util.zip.ZipFile was not able to handle but WinRar unpacked it just fine. I found article on SDN about compressing and decompressing options in Java. I slightly modified one of example codes to produce method which was finally capable of handling the archive. Trick is in using ZipInputStream instead of ZipFile and in sequential reading of zip archive. This method is also capable of handling empty zip archive. I believe you can adjust the method to suit your needs as all zip classes have equivalent subclasses for .jar archives.

public void unzipFileIntoDirectory(File archive, File destinationDir) 
    throws Exception {
    final int BUFFER_SIZE = 1024;
    BufferedOutputStream dest = null;
    FileInputStream fis = new FileInputStream(archive);
    ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
    ZipEntry entry;
    File destFile;
    while ((entry = zis.getNextEntry()) != null) {
        destFile = FilesystemUtils.combineFileNames(destinationDir, entry.getName());
        if (entry.isDirectory()) {
            destFile.mkdirs();
            continue;
        } else {
            int count;
            byte data[] = new byte[BUFFER_SIZE];
            destFile.getParentFile().mkdirs();
            FileOutputStream fos = new FileOutputStream(destFile);
            dest = new BufferedOutputStream(fos, BUFFER_SIZE);
            while ((count = zis.read(data, 0, BUFFER_SIZE)) != -1) {
                dest.write(data, 0, count);
            }
            dest.flush();
            dest.close();
            fos.close();
        }
    }
    zis.close();
    fis.close();
}

Mr_and_Mrs_D's user avatar

Mr_and_Mrs_D

31.2k37 gold badges175 silver badges355 bronze badges

answered Sep 22, 2011 at 1:48

JohnyCash's user avatar

JohnyCashJohnyCash

3891 gold badge4 silver badges9 bronze badges

1

I’ve seen this exception before when whatever the JVM considers to be a temp directory is not accessible due to not being there or not having permission to write.

answered Nov 28, 2008 at 17:50

Artur...'s user avatar

It could be related to log4j.

Do you have log4j.jar file in the websphere java classpath (as defined in the startup file) as well as the application classpath ?

If you do make sure that the log4j.jar file is in the java classpath and that it is NOT in the web-inf/lib directory of your webapp.


It can also be related with the ant version (may be not your case, but I do put it here for reference):

You have a .class file in your class path (i.e. not a directory or a .jar file). Starting with ant 1.6, ant will open the files in the classpath checking for manifest entries. This attempted opening will fail with the error «java.util.zip.ZipException»

The problem does not exist with ant 1.5 as it does not try to open the files. — so make sure that your classpath’s do not contain .class files.


On a side note, did you consider having separate jars ?
You could in the manifest of your main jar, refer to the other jars with this attribute:

Class-Path: one.jar two.jar three.jar

Then, place all of your jars in the same folder.
Again, may be not valid for your case, but still there for reference.

Community's user avatar

answered Nov 28, 2008 at 7:16

VonC's user avatar

VonCVonC

1.2m508 gold badges4248 silver badges5069 bronze badges

1

I solved this by clearing the jboss-x.y.z/server[config]/tmp and jboss-x.y.z/server/[config]/work directories.

answered Feb 8, 2011 at 17:34

Marius K's user avatar

Marius KMarius K

4705 silver badges6 bronze badges

I saw this with a specific Zip-file with Java 6, but it went away when I upgrade to Java 8 (did not test Java 7), so it seems newer versions of ZipFile in Java support more compression algorithms and thus can read files which fail with earlier versions.

answered Apr 23, 2015 at 19:44

centic's user avatar

centiccentic

15.4k8 gold badges63 silver badges123 bronze badges

0

Liquibase was getting this error for me. I resolved this after I debugged and watched liquibase try to load the libraries and found that it was erroring on the manifest files for commons-codec-1.6.jar. Essentially, there is either a corrupt zip file somewhere in your path or there is a incompatible version being used. When I did an explore on Maven repository for this library, I found there were newer versions and added the newer version to the pom.xml. I was able to proceed at this point.

answered Jun 9, 2015 at 14:10

iowatiger08's user avatar

iowatiger08iowatiger08

1,89224 silver badges30 bronze badges

I was getting exception

java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0xdeadface)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:221)
    at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140)
    at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:118)
...

when unzipping an archive in Java. The archive itself didn’t seem corrupted as 7zip (and others) opened it without any problems or complaints about invalid CRC.

I switched to Apache Commons Compress for reading the zip-entries and that resolved the problem.

answered Mar 30, 2017 at 12:32

radoh's user avatar

radohradoh

4,4645 gold badges32 silver badges44 bronze badges

Simply to overcome the ZipException’s, i have used a wrapper for commons-compress1.14 called jarchivelibwritten by thrau that makes it easy to extract or compress from and into File objects.

Example:

public static void main(String[] args) {
        String zipfilePath = 
                "E:/Selenium_Server/geckodriver-v0.19.0-linux64.tar.gz";
                //"E:/Selenium_Server/geckodriver-v0.19.0-win32.zip";
        String outdir = "E:/Selenium_Server/";
        exratctFileList(zipfilePath, outdir );
}
public void exratctFileList( String zipfilePath, String outdir ) throws IOException {
    File archive = new File( zipfilePath );
    File destinationDir = new File( outdir );

    Archiver archiver = null;
    if( zipfilePath.endsWith(".zip") ) {
        archiver = ArchiverFactory.createArchiver( ArchiveFormat.ZIP );
    } else if ( zipfilePath.endsWith(".tar.gz") ) {
        archiver = ArchiverFactory.createArchiver( ArchiveFormat.TAR, CompressionType.GZIP );
    }
    archiver.extract(archive, destinationDir);

    ArchiveStream stream = archiver.stream( archive );
    ArchiveEntry entry;

    while( (entry = stream.getNextEntry()) != null ) {
        String entryName = entry.getName();
        System.out.println("Entery Name : "+ entryName );
    }
    stream.close();
}

Maven dependency « You can download the jars from the Sonatype Maven Repository at org/rauschig/jarchivelib/.

<dependency>
  <groupId>org.rauschig</groupId>
  <artifactId>jarchivelib</artifactId>
  <version>0.7.1</version>
</dependency>

@see

  • Archivers and Compressors
  • Compressing and Decompressing Data Using Java APIs

answered Feb 14, 2018 at 13:28

Yash's user avatar

YashYash

8,9902 gold badges67 silver badges72 bronze badges

On Windows7 I had this problem over a Samba network connection for a Java8 Jar File >80 MBytes big. Copying the file to a local drive fixed the issue.

answered Feb 24, 2018 at 7:21

Wolfgang Fahl's user avatar

Wolfgang FahlWolfgang Fahl

14.5k10 gold badges87 silver badges178 bronze badges

In my case , my -Dloader.path="lib" contains other jars that doesn’t need.
for example,mvn dependency:copy-dependencies lists 100 jar files.but my lib directory contains 101 jar files.

answered Aug 16, 2018 at 6:05

hatanooh's user avatar

hatanoohhatanooh

3,5611 gold badge14 silver badges9 bronze badges

In my case SL4j-api.jar with multiple versions are conflicting in the maven repo. Than I deleted the entire SL4j-api folder in m2 maven repo and updated maven project, build maven project than ran the project in JBOSS server. issue got resolved.

answered Mar 14, 2020 at 4:26

Elias's user avatar

EliasElias

6442 gold badges11 silver badges23 bronze badges

flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.16299.785], locale en-IN)
    • Flutter version 1.0.0 at C:flutter
    • Framework revision 5391447fae (10 days ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:UsersArvindAppDataLocalAndroidsdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:Program FilesAndroidAndroid Studio
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA Community Edition 2018.1.5
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.4892.1

[√] VS Code (version 1.26.1)
    • VS Code at C:UsersArvindAppDataLocalProgramsMicrosoft VS Code
    • Flutter extension version 2.21.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 6.0 (API 23) (emulator)

• No issues found!

Если вы загружаете сжатый файл на свое устройство Android, извлечь его содержимое не так уж и сложно. … Каждый телефон Android поставляется с приложением для управления файлами, но, как правило, они не работают и не могут открывать файлы ZIP. К счастью, в магазине Google Play есть несколько приложений, которые могут делать это бесплатно.

В других случаях, когда данные в Zip-файле повреждены, возможно, не удастся исправить Zip-файл и вы не сможете извлечь все файлы правильно, если вообще. … Среди наиболее распространенных — ошибка передачи при загрузке Zip-файла из Интернета. Такая ошибка может привести к недопустимым данным в Zip-файле.

Как распаковать zip-файл на моем телефоне Android?

Разархивируйте свои файлы

  1. На вашем устройстве Android откройте Файлы от Google.
  2. Внизу нажмите «Обзор».
  3. Перейдите в папку, содержащую файл. zip-файл, который нужно распаковать.
  4. Выберите файл. zip-файл.
  5. Появится всплывающее окно, показывающее содержимое этого файла.
  6. Коснитесь Извлечь.
  7. Вам будет показан предварительный просмотр извлеченных файлов. …
  8. Нажмите «Готово».

Метод 7: Запустите проверку системных файлов

Поврежденный системный файл может быть причиной того, что вы не можете извлечь сжатый файл. В этом случае вам придется запустить средство проверки системных файлов. Этот инструмент сможет определить и заменить поврежденные файлы. … Поврежденные файлы будут заменены при перезагрузке.

Как распаковать заархивированный файл?

Чтобы распаковать один файл или папку, откройте почтовая папка, затем перетащите файл или папку из заархивированной папки в новое место. Чтобы распаковать все содержимое заархивированной папки, нажмите и удерживайте (или щелкните правой кнопкой мыши) папку, выберите «Извлечь все» и следуйте инструкциям.

Почему мой zip-файл поврежден?

Поврежденные файлы могут возникать в результате множества проблем, в том числе: плохие сектора диска, вредоносное ПО, неполная загрузка или передача, например, при обрыве соединения, или любое другое внезапное прерывание, например сбой питания или неправильное завершение работы во время работы с файлом ZIP.

Как мне исправить zip-файл, который не открывается?

Чтобы попытаться восстановить Zip-файл:

  1. На клавиатуре нажмите (клавиша Windows) + R.
  2. В открывшемся диалоговом окне «Выполнить» введите: cmd и нажмите Enter на клавиатуре.
  3. Измените каталоги на папку, в которой находится поврежденный Zip-файл.
  4. Введите: «C: Program FilesWinZipwzzip» -yf zipfile.zip.
  5. Нажмите Enter на клавиатуре.

Можно ли восстановить zip-файл?

Поэтому, если у вас есть проблема с поврежденным файлом ZIP (или RAR), дайте WinRAR попытка. Запустите WinRAR и перейдите к поврежденному архиву с помощью адресной строки. Выберите папку и нажмите «Восстановить» на панели инструментов. В новом всплывающем окне укажите местоположение восстановленного архива, выберите тип архива и нажмите OK.

Как распаковать несколько файлов ZIP на Android?

Извлечь несколько Zip-файлов

  1. Шаг 1 Откройте WinZip.
  2. Шаг 2 Используя файловую панель WinZip, выберите файлы, которые нужно разархивировать.
  3. Шаг 3 Нажмите «Разархивировать».
  4. Шаг 4 Выберите, куда вы хотите сохранить файлы.

Как распаковать файл без WinZip?

Как открыть ZIP-файлы

  1. Дважды щелкните zip-файл, который вы хотите распаковать, чтобы открыть проводник.
  2. В верхней части меню проводника найдите «Инструменты для сжатых папок» и щелкните его.
  3. Выберите вариант «извлечь», который появляется под ним.
  4. Появится всплывающее окно.
  5. Щелкните «извлечь» в нижней части всплывающего окна.

Как преобразовать ZIP-файл в обычный файл?

Извлечь / разархивировать заархивированные файлы

  1. Щелкните правой кнопкой мыши заархивированную папку, сохраненную на вашем компьютере.
  2. Выберите «Извлечь все…» (запустится мастер извлечения).
  3. Щелкните [Далее>].
  4. Щелкните [Обзор…] и перейдите туда, где вы хотите сохранить файлы.
  5. Щелкните [Далее>].
  6. Щелкните [Готово].

Gradle setup and build errors

It can happen that you get gradle errors during the setup of MCreator or even later when suddenly builds stop working. Most of these errors are related to file permissions, firewalls and other OS elements that block MCreator from operating properly. To find the solution for your case, check the error log in the Console tab and look for error messages similar to the titles on this page and if you find one of these, go to the section under this title to look for the solution.

The most common solution

In most cases all Gradle errors are caused by one of these:

  • Firewall or antivirus blocking MCreator
  • Slow internet connection
  • Your ISP blocking certain websites
  • Too slow VPN or VPN with blocked domains that MCreator needs to access
  • Any other software blocking access to download repository

The most common errors from Gradle are caused by firewalls or antivirus software. If you have any issues, we recommend you to temporarily turn off this software and try again. If this works, add MCreator as an exception to your firewall or antivirus or reconfigure the software properly to not block programs such as MCreator.

It can also happen that the servers from which Gradle downloads files (Minecraft servers, Minecraft Forge repo, Maven repository) are down and you might just need to try again later in such cases.

In some cases of unstable or slow connections, running the setup multiple times and when it fails with errors related to the internet connection (timeout errors, failed to connect, failed to GET, HEAD, . ) clicking re-run the setup multiple times resolves the issue as eventually, all files get properly downloaded.

The second most common solution

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt. If you can not delete all files in this folder (which is necessary), reboot the computer first to remove any potential file locks.

If this is not enough to make things work, delete the entire gradle folder, not just caches, and try again.

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.

Common error types

Could not get unknown property ‘runClient’ for root project ‘forge’

The first thing to check is to do The second most common solution described above.

Another solution is to make sure MCreator can write to the folder where the workspace is stored.

If none of this helps, do The second most common solution and reinstall MCreator before opening it again.

ValidatorException: PKIX path building failed

Example of the error log in the Console tab:

The most common cause for this issue is Antivirus with any advanced SSL or HTTPS security turned on. Such Antiviruses can alter certificates and cause Gradle to no properly recognize them. This can be caused by a firewall too.

Could not resolve all dependencies for configuration ‘:classpath’.

Example of the error log in the Console tab:

This issue is resolved by The most common solution described above.

java.util.zip.ZipException: error in opening zip file

Example of the error log in the Console tab:

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Timeout of 120000 reached waiting for exclusive access to file

Example of the error log in the Console tab:

Close MCreator and reboot your computer. Then read and do The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it).

Could not connect to the Gradle daemon

Example of the error log in the Console tab:

In most cases, this error can be fixed by rebooting MCreator. If this does not help, do The second most common solution described above.

Failed to load native library ‘native-platform.dll’ for Windows 10 amd64

Example of the error log in the Console tab:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called native. Delete this folder and open MCreator again. If this does not help, try reinstalling Minecraft on your computer and check your graphics card drivers (update them if there are updates).

org.lwjgl.LWJGLException: Pixel format not accelerated

Example of the error log in the Console tab:

This error usually means that you have an unsupported graphics card for Minecraft our outdated graphics card drivers. These pages could help:

Sometimes reinstallation of Minecraft can help too.

Expected BEGIN_OBJECT but was STRING at line 1 column 1

Example of the error log in the Console tab:

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Gradle task compileJava FAILED with errors of type «Override is not a repeatable annotation type»

In some cases, links to the libraries from the Gradle build system can get lost and MCreator builds will stop working. Especially some mod elements such as GUIs and dimensions are prone to this happening. When this happens, the following solution usually fixes this error:

Go to the Build & run menu and click the following two options in the given order

  1. Reload Gradle project
  2. Regenerate code and build

Wait for the workspace code to be regenerated and the error should be gone.

Gradle task compileJava FAILED with 100 errors of type «cannot find symbol»

This issue is resolved by The second most common solution described at the top of this page. After applying the solution, run the build again.

Error occurred during initialization of VM: Picked up _JAVA_OPTIONS

This error indicates there is an override for JAVA_OPTIONS defined somewhere. There are multiple possible places:

  1. Check your computer environment variables (system and user) and if there is a parameter _JAVA_OPTIONS or JAVA_OPTIONS present, remove it from the list
  2. It was reported that Razer Synapse software can override this parameter and cause compatibility problems. In this case, consider disabling or uninstalling this software

If these two do not help, make sure you are using a 64-bit version of MCreator if your computer is 64-bit, as this may cause such a problem too.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.

GeckoLib + MCreator | Ошибка при установке.

Столкнулся с проблемой загрузки GeckoLib в программу MCreator .

При компиляции или после перегенерации кода выскакивает ошибка:

По инструкции и гайдам требуется скачать плагин — Feder’s Geckolib 2.0.0 Plugin | MCreator и поместить его в папку plagins
после зайти во вкладку » Рабочее пространство/Настройки рабочего пространства. /Внешние API » и поставить галочку на против пункта GeckoLib API .

1648059009817.png

После чего по «сюжету» мы перегенерируем код.

Но тут же в консоли выскакивает ошибка

1648058502789.png

Все эти ссылки не работают.
На форумах пусто.
В интернете ничего нет.
Дальше forge_grable путь не сходится.

1648059503202.png

В чем может быть проблема? Есть ли те, кого всё работает? Какую версию Mc вы используете и может ли скинуть архивом папку bernie с всем содержимым?
Буду очень признателен.

Problems With MCreator? (Fix Tutorial)(OLD, MIGHT NOT HELP ANYMORE)

Hey, i tried making a mod for 1.7.10 version 1.7.3 everything goes well at first but when i try and launch the game it just crashed before the menu screen pops up, its a custom model with custom textures btw.

did not work in 1.12.2 either

Executing gradle command: cleanCache clean setupDecompWorkspace —refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:PyloMCreator176>cd forge
C:PyloMCreator176forge>SET «JAVA_HOME=C:PyloMCreator176jdk32»
C:PyloMCreator176forge>SET JAVA_EXE=%JAVA_HOME%binjava.exe
C:PyloMCreator176forge>SET PATH=%JAVA_HOME%bin;%PATH%
C:PyloMCreator176forge>gradlew -Dorg.gradle.jvmargs=»-Xms512m -Xmx1024m» cleanCache clean setupDecompWorkspace —refresh-dependencies
This mapping ‘snapshot_20170624’ was designed for MC 1.12! Use at your own peril.
#################################################
ForgeGradle 2.3-SNAPSHOT-583d1ba
github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:cleanCache
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData
:extractMcpMappings
:genSrgs
:downloadClient
:downloadServer
:splitServerJar
:mergeJars
:deobfMcSRG
Applying SpecialSource.
Applying Exceptor.
:decompileMc
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
:decompileMc FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:decompileMc’.
> Process ‘command ‘C:PyloMCreator176jdk32binjava.exe» finished with non-zero exit value 1
* Try:
Run with —stacktrace option to get the stack trace. Run with —info or —debug option to get more log output.
BUILD FAILED
Total time: 2 mins 38.748 secs
C:PyloMCreator176forge>
Task completed with return code 0 in 161306 milliseconds

I have this error on Mcreator.
(This report is from the console)
for some reason the «test game» doesn’t load and sends me this report:
here it is:

/>player$444055 />

Дело в том что вылазит ошибка на Testing status of code.В чём проблема ? Очень долго в интернете рылся так и не нашел ответ на свою проблему. Может как то эту программу заменить на другую подобную можно? если да то какую)

Моя задача переделать мир на более читерский.типа
заранее спасибо всем откликнувшимся

———
я всё правильно написал гражданин ya can ru, я говорю про обычную игру Minecraft! В программе mccreator абсолютно ничего нельзя сделать в мультиплеере, это только для синглплеера. Проблема так и не решилась. Спасибо всем кто помогал!

[color=gray][size=9]Редактировалось 6 раз(а), последний 2014-02-04 19:03:31[/size][/color]

Работа программы 7-Zip осуществляется благодаря взаимодействию команд и операторов. Для этого требуются подходящие условия, что обеспечивается не всегда. Поэтому возникает ошибка контрольной суммы и другие проблемы при распаковке архива приложением 7-Zip. В этой статье вы найдете решение частых неполадок в работе архиватора.

Ошибка контрольной суммы CRC

Скачивание заархивированного файла может завершиться тем, что пользователь при запуске получит сообщение: «Ошибка контрольной суммы». Другое название проблемы: «Ошибка CRC сжатых данных».

Такая ошибка возникает из-за того, что скачивание архива сопровождалось потерей пакетов. Во время загрузки происходили ошибки, что актуально для нестабильного интернета, когда теряется связь.

Чаще с такой проблемой сталкиваются пользователи с большими файлами, загрузка которых длится несколько часов. При этом объем документов совпадает, но только округленные значения, так как несколько битов все равно потеряно.

Как исправить:

  1. Проблему с распаковкой 7-Zip архива можно решить до возникновения ошибки, используя программное обеспечение Download Master. Потерянный пакет вынуждает начинать загрузку заново.
  2. Другой вариант – восстановить архив. Рекомендуется воспользоваться архиватором WinRAR. Если расширение файла не поддерживается, то подойдет программа Universal Extractor.

WinRAR удобен тем, что имеет встроенную функцию для восстановления архивов, где некоторое количество пакетов потеряно.

Как восстановить архив

  1. Запустите WinRAR, через интерфейс выберите Tools, а затем – Repair archive.восстановление zip-архива
  2. Открыть поврежденный архив не получится, поэтому создайте новый и перейдите в папку к файлу с потерянными пакетами.
  3. Перед восстановлением щелкните один раз по названию.
  4. Иногда требуется указать путь для восстановленного архива и его формат. Расширение должно оставаться тем же, что было до потери информации. Если все указано верно, нажмите ОК и дождитесь окончания работы WinRAR.

Если приложение справится и ошибка архива 7-Zip исчезнет, то загружать файл заново не придется.

Проблема может возникать постоянно. Для решения систематического сбоя проверьте оперативную память и жесткий диск программным обеспечением Aida.

Отказ в доступе

Часто пользователи при добавлении новых файлов через меню 7-Zip сталкиваются с ошибкой «Отказано в доступе». Существует 3 варианта решения:

  1. Проверить корректность работы антивируса. Не блокирует ли он файл, запрещая активировать архив на компьютере. Достаточно отключить программу и открыть документ.
  2. Архиватор 7-Zip предполагает установку паролей. Возможно, требование ввести ключ от файла не отображается, а пользователь сразу получает отказ доступа. Единственный способ проверить это – обратиться к правообладателю сжатого материала.
  3. Если файл открывается не из администраторской директории, то нужно поменять учетную запись или открыть архив через главного пользователя.

Иные проблемы говорят о том, что файл битый. Попробуйте воспользоваться не 7-Zip, а другим распаковщиком или просто скачайте документ заново.

Unsupported command 7 Zip

Ошибка «Unsupported command» в 7-Zip возникает совместно с указанием места расположения файла. Но локальная ссылка не представляет ничего интересного, так как решение проблемы кроется не в ней.

Установка архиватора 7-Zip заканчивается тем, что пользователь устанавливает связь между программой и сжатыми данными. Для этого нужно указать ярлык программы.

выбор ярлыка 7-Zip

Разработчики предоставили два варианта ярлыка, поэтому возникает ошибка.

Правильный выбор – 7zFM, а не 7zG. В последнем случае программе отправляется команда открыть файл через нерабочий ярлык.

Отменить привязку распаковщика к формату можно через интерфейс 7-Zip:

  1. Откройте файловый менеджер через меню «Пуск».
  2. «Сервис» – «Настройки».
  3. Во вкладке «Система» снимите галочку в окошке рядом с проблемным форматом. Щелкните ОК.

Теперь можно попробовать запустить документ заново.

Не удается открыть файл

Пользователь может получить сообщение, что 7-Zip не удалось открыть файл, который сохранен как архив. Ошибка носит функциональный характер, связанный с основным недостатком распаковщика.

Архивный файл открывается через контекстное меню.

открытие файла как архив

Кликните по документу правой кнопкой мыши, выберите раздел 7-Zip, затем – «Открыть архив».

Если это не дало результата, попробуйте следующие варианты:

  • Воспользоваться аналогами, например WinRAR. Иногда достаточно переустановить 7-Zip, и ошибка исчезает.
  • Установить на компьютер программу, восстанавливающую битые архивы, и извлечь файлы через нее.

Убедитесь, что расширение документа соответствует возможностям разархиватора.

Данные после конца блока полезных данных

Сообщение программы 7-Zip в конце распаковки: «Есть данные после конца блока полезных данных» возникает при использовании двух разных архиваторов. Запаковывались документы через WinRAR, где установлена опция «Добавить запись восстановления». Разработчики предлагают не бороться с ошибкой, а продолжать распаковывать.

предупреждение 7-Zip

Никаких проблем с информацией внутри не будет, так как 7-Zip уже завершил работу, и остается нажать «Закрыть».

Источник проблемы очевиден, если пользователь получает ошибку при распаковке через контекстное меню или интерфейс файлового менеджера. Для проверки выделите документы мышкой и перенесите в новую папку. Если сообщения нет, то и в остальных случаях его можно игнорировать.

Разработчики 7-Zip выявили связь с WinRAR после обнаружения в архиве данных, объем которых не превышает 50 Кб. Распаковщик предупреждает об этом документе, поэтому сообщение игнорируется.

Поврежденный архив

Если во время работы 7-Zip пользователь получает сообщение: «Ошибка данных», то, возможно, архив поврежден при загрузке на компьютер. Исправить проблему без использования сторонних средств нельзя. В таком случае установите программу Universal Extractor.

Приложение исправляет проблему поврежденных архивов. Поддерживаются все известные методы сжатия. Интерфейс не содержит лишних кнопок, поэтому понятен и прост.

открытие поврежденного zip-архива

Достаточно указать путь к сжатому файлу и нажать OK.

Открыть архив удается почти всегда. Если ситуация повторилась, проверьте компьютер на вирусы, так как они могут перехватывать пакеты. Это разрушает структуру сжатого файла, делая его недоступным пользователю.

Неподдерживаемый метод

Если некоторые файлы извлечены из архива, а другие нет, то пользователь увидит ошибку, что определенный метод не поддерживается в программе 7-Zip.

сообщение о неподдерживаемом методе сжатия

В сообщении будет указано название документа, который не копируется на компьютер.

Иногда быстрее воспользоваться другим распаковщиком. Если аналогов на компьютере нет, то обновите 7-Zip до последней версии.

С подобной ошибкой встречаются пользователи, скачивающие документы в формате «zipx». Новые методы, разработанные WinZip, позволяют сократить размер файла, но другим приложениям пришлось выпускать обновления, чтобы решить проблему.

Ошибки в архиваторе возникают часто, но пользователи совместно с разработчиками научились их решать и сокращать в последних версиях программы. О том, почему сайт www.7-zip.org не открывается и как получить доступ, подробно рассказывается в отдельной статье.

Обновить 7-Zip для исправления ошибок можно на официальном сайте разработчика. Но сейчас пользователи испытывают трудности с доступом к ресурсу, поэтому скачайте архиватор 7-Zip бесплатно на нашем сайте.

Загрузка…

Понравилась статья? Поделить с друзьями:
  • Error in opening zip file как исправить
  • Error in open session response message insufficient resources for session
  • Error in onframe path of building
  • Error in ole initialization что делать
  • Error in ole initialization перевод