Netbeans ошибка при установке

I have installed Java and am trying to install NetBeans 11.3 on my Windows 10 but after I ran the exe. installer, an error message popped up:

An unexpected exception happened in thread main
java.lang.NoClassDefFoundError java/util/jar/Pack200

Dharman's user avatar

Dharman

30.4k22 gold badges84 silver badges132 bronze badges

asked Mar 20, 2020 at 8:57

Clairexxp's user avatar

4

NetBeans have problems with the jdk-14, because I suppose that you have install the jdk-14 so uninstall it and try it with the jdk-13.0.2.

Dharman's user avatar

Dharman

30.4k22 gold badges84 silver badges132 bronze badges

answered Mar 20, 2020 at 21:34

José Ramón Mendoza Ortiz's user avatar

2

Sorry, but in my opinion is to install an old version from Java no solution, just because it works. When someone has problems with his Firewall, simply disable the Firewall would also be no solution.

https://www.java.com/en/download/faq/other_jreversions.xml
We highly recommend users remove all older versions of Java from your
system. Keeping old and unsupported versions of Java on your system
presents a serious security risk. Removing older versions of Java from
your system ensures that Java applications will run with the most
up-to-date security and performance improvements on your system.

The «real» solution would be a reprogramming of the NetBeans installer.
This used function was suggested for deprecated on 2018-04-04, which was done on 2018-08-23.
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8200752
The removal was suggested on 2019-10-08, which was done on 2019-12-18.
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8232022

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8232022
We assume that developers who rely on Pack200 have had enough notice about its proposed removal to make alternative arrangements. … We assume that developers who use pack200 to shrink application JARs can switch to either the jlink tool or the jpackage tool to create application-specific runtimes with an optimized form factor.

edit: I solved it this way.

  1. uninstalled JDK 14
  2. installed JDK 13.0.2
  3. installed Apache NetBeans
  4. installed JDK 14
  5. open C:Program FilesNetBeansnetbeansetcnetbeans.conf and changed path to JDK
  6. uninstalled JDK 13.0.2

Now NetBeans runs with the JDK 14.

answered Apr 4, 2020 at 19:17

Felistrix's user avatar

Yes, I got it working as follows from cmd, when referring to older version:
Apache-NetBeans-11.3-bin-windows-x64.exe —javahome «C:Program FilesJavajdk-12.0.2»

answered Apr 19, 2020 at 4:52

Andy's user avatar

The https://netbeans.apache.org/download/nb113/nb113.html site now has this
memo:

The installers will not run under JDK 14 because usage is made of the Pack200 Tools and API, for packing and unpacking, which is removed in JDK 14, see JEP 367.

answered Mar 25, 2020 at 14:33

user13122936's user avatar

If several JDK versions are installed, then you need to define the environment variable «JAVA_HOME» where to set the path to JDK-12.
Details are described here. (Only in Russian)

answered Mar 30, 2020 at 9:05

Chili's user avatar

ChiliChili

211 bronze badge

An alternate way to Andy’s.
(Windows)
1) Right click on «Apache-NetBeans-11.3-bin-windows-x64» installer and select «Create shortcut».
2) Right click on the created shortcut and select «Properties».
3) In the «target» textbox, add your under 14 JDK version path at the end, here is how mine looks like:

C:UsersuserfoldernameDesktopApache-NetBeans-11.3-bin-windows-x64.exe —javahome «C:Program FilesJavajdk-13»

4) Press Ok when done, double-click on the shortcut and it should install fine now.

answered May 2, 2020 at 6:23

Nite's user avatar

NiteNite

213 bronze badges

Switching to openJDK 12 worked for me too. But instead of uninstalling JDKs or manually changing the env, I use Sdkman.io which works like Node version manager if you have used that. It manages your JDKS for you and offers downloads of different versions (Open, Zulu, Graals) and will switch between them with with just a quick command.

answered May 13, 2020 at 17:32

John Breland's user avatar

I found a nice solution in 3 steps:

  1. check all versions of the JDK path in Environment variables, if there is an outdated path please remove it and keep the latest version of the Java JDK bin path.
  2. after the second step, please uninstall the Netbeans and re-install the latest version.
  3. Netbeans will found the latest JDK path in case it was jdk14 and choose JDK latest version path for NetBeans.
    solved

answered Aug 7, 2020 at 9:03

Arjun Singh's user avatar

Just install JRE from oracle. Everthing will run fine. I have the same issue

answered Sep 6, 2020 at 19:03

NINAD RAJE's user avatar

I’m trying to install Apache Netbeans IDE on my Windows 10, then I encountered this problem «Critical Error- An unexpected exception happened in thread main. Exception: java.lang.NoClassDefFoundError: java/util/jarPack200»

Critical Error

After I click the Ok button another Error popped up

«Apache Netbeans IDE Installer- An error occurred while running java process Qt: Untested Windows Version 10.0 detected!»

Apache Netbeans Error

I also installed the latest JDK, and my Windows also updated before I tried to install Netbeans, I don’t know what’s causing the problem, if its the JDK or my Windows.

I tried searching on google for this problem but there’s no result on how to fix this.

Apache Netbeans 11.3
Java SE Development Kit 14

asked Mar 19, 2020 at 7:34

Dids's user avatar

DidsDids

1372 gold badges2 silver badges17 bronze badges

4

I was able to solve this same issue by installing JDK version 13 instead of version 14.

answered Mar 24, 2020 at 17:12

Shawn Wilson's user avatar

1

I have had the same problem and now that I have solved it, I would like to share it with you.

I’m not sure if this is your problem but in my case was that I was tried to install

Java JDK 14 and Apache NetBeans 11.3

And the problem was the Java Version of JDK, download the 11 JDK, and install.

And that’s all, it works
.

Dharman's user avatar

Dharman

30.4k22 gold badges84 silver badges132 bronze badges

answered Mar 22, 2020 at 1:32

Francisco De la cruz lucas's user avatar

1

My Solution: First replaced jdk-14 files by jdk-13. Installed Apache NB. Then restored files of jdk-14. NB installer does not support jdk-14 (but NB 11.3 itself supports jdk-14)

answered Apr 5, 2020 at 4:02

Masud Tarek's user avatar

In my case, the error occurred because I had installed the JDK version 14. By installing version 11 the error was fixed.

Nikos Hidalgo's user avatar

answered Apr 21, 2020 at 14:22

Samuel Torres's user avatar

1

Instead of using the installer, you can download the zip file of the Netbeans found
here! and then use it with JDK 14.

answered May 2, 2020 at 7:03

mytkavish's user avatar

Downloading JDK version 11 fixed this issue. It was also stated in the oracle site about JDK version 14 that they have an issue.

answered Jul 26, 2020 at 23:45

marcelojr ramis's user avatar

1

Alternatively now you can download the ApacheNetbeans 12.0(LTS) from netbeans.apache.org which now permits installation with JDK 14(in previous versions it was not so due to some packages which were removed in JDK 14)

answered Aug 14, 2020 at 18:20

tachyon's user avatar

tachyontachyon

431 silver badge7 bronze badges

go on your panel control and see if you have a previous version of NetBeans. You should uninstall the previous version and install the new

answered Mar 19, 2020 at 18:42

Sahel Marji's user avatar

2

Студворк — интернет-сервис помощи студентам

Добрый день, уважаемые форумчане. Столкнулся с проблемой при установке программы netBeans:

Кликните здесь для просмотра всего текста

Что было сделано для решения проблемы:
1. Установка разных версий java (jdk1.8.0, jre1.8.0, jre 10.0.2 и т.п.)
2. Неоднократная переустановка онных с очисткой реестра и перезагрузками
3. Поиск информации в интеренете ничего не дал. Похожая проблема была найдена на одном из форумов, но у автора по-видимому своеобразное чувство юмора, т.к. он описал решение проблемы следующим образом:

Кликните здесь для просмотра всего текста

EDIT: Решил! Что-то из Java должно быть установлено на сетевом диске, к которому я не мог получить доступ, не подключаясь через VPN. После подключения к сети установка была успешной.

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

Помогите ребята, сам походу дела не разберусь!

PS Лог:

Кликните здесь для просмотра всего текста

[2018-10-22 17:44:32.830]: … use Java that is already selected for the product: C:Program FilesJavajdk1.8.0_181
[2018-10-22 17:44:32.939]: Непредвиденная ошибка в потоке AWT-EventQueue-0
[2018-10-22 17:44:32.939]: java.lang.NullPointerException
[2018-10-22 17:44:32.939]: at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Unknown Source)
[2018-10-22 17:44:32.939]: at sun.awt.shell.Win32ShellFolder2.access$400(Unknown Source)
[2018-10-22 17:44:32.939]: at sun.awt.shell.Win32ShellFolder2$10.call(Unknown Source)
[2018-10-22 17:44:32.939]: at sun.awt.shell.Win32ShellFolder2$10.call(Unknown Source)
[2018-10-22 17:44:32.939]: at java.util.concurrent.FutureTask.run(Unknown Source)
[2018-10-22 17:44:32.939]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[2018-10-22 17:44:32.939]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[2018-10-22 17:44:32.939]: at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
[2018-10-22 17:44:32.939]: at java.lang.Thread.run(Unknown Source)
[2018-10-22 17:44:32.940]: … show message dialog
[2018-10-22 17:44:32.940]: title: Критическая ошибка
[2018-10-22 17:44:32.940]: message: Непредвиденная ошибка в потоке AWT-EventQueue-0
[2018-10-22 17:44:32.940]:
[2018-10-22 17:44:32.940]: Исключение:
[2018-10-22 17:44:32.940]: java.lang.NullPointerException:
[2018-10-22 17:44:32.940]: null
[2018-10-22 17:44:32.940]:
[2018-10-22 17:44:32.940]: Дополнительные сведения о проблеме можно получить в файле журнала программы установки:
[2018-10-22 17:44:32.940]: C:UsersAlex.nbilog20181022174408.log
[2018-10-22 17:44:43.972]: … dialog closed

Я пытаюсь установить версию TMC Netbeans в Windows 10. Я получаю эту ошибку:

Java SE Development Kit (JDK) не найден на этом компьютере

JDK 7 требуется для установки NetBeans с TMC 1.1.8. Убедитесь, что JDK установлен правильно и снова запустил программу установки. Вы можете указать допустимое местоположение JDK, используя аргумент установщика —javahome.

Я получил ту же ошибку, используя обычную версию Netbeans. Я знаю, что он установлен правильно, потому что я получил IntelliJ, чтобы работать нормально. Как исправить эту проблему? Я искал ответы, но ничего не нашел для Windows 10?

Кроме того, у меня установлен JDK 9.

#java #macos #netbeans

#java #macos #netbeans

Вопрос:

У меня есть JDK 15.0.1 , и я установил Netbeans 12.1 его вместе с ним. У меня возникают серьезные проблемы при попытке открыть проект, потому что он выдает мне эти сообщения об ошибках, когда я перехожу к разделу «Функция поиска»

 "Cannot enable Java Persistence, Spring Beans, Gradle, Java, Java SE Modular Projects, Java Debugger, Maven, GUI Builder, GraaIVM Debugging Support"
 

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

Комментарии:

1. Какую версию macOS вы используете?

2. Эй, я только что решил полностью отказаться от установки IDE NetBeans и вместо этого застрял в Eclipse, и процесс установки был в миллиард раз проще, И намного проще начать кодирование. Для справки, хотя у меня есть самая последняя версия, macOS Big Sur

3. Я подозревал, что вы используете Биг-Сур, но я должен был спросить. Я не являюсь пользователем Mac, но здесь было много других вопросов о запуске NetBeans на macOS Big Sur. Вы далеко не одиноки в таких проблемах.

Ответ №1:

Я решил это следующим образом:

Проверьте, где находится ваш netbeans.conf файл, набрав

 locate netbeans.conf
 

Как только вы получите местоположение файла conf, вам нужно будет отредактировать его с помощью вашего любимого редактора, например:

 sudo nano <.../path/netbeans.conf>
 

В этом файле вы должны изменить строку, относящуюся к вашей установке Java, например:

 netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home"
 

Понравилась статья? Поделить с друзьями:
  • Netapi32 dll windows 10 ошибка
  • Need sub dota2reload ru ошибка
  • Net view системная ошибка 1231 сетевая папка недоступна
  • Need for speed ошибка 4005000 при запуске
  • Net view системная ошибка 1231 windows 10