Error a fatal exception has occurred program will exit что делать

Неустранимая ошибка исключения виртуальной машины Java появляется у некоторых пользователей, когда они пытаются запустить программное обеспечение, построенное на Java. Полное сообщение об ошибке гласит: « Не удалось создать виртуальную машину Java. Ошибка: произошла фатальная исключительная ситуация. »Следовательно, Java-программа не запускается. Это несколько потенциальных исправлений для фатальной ошибки виртуальной машины Java. Решения для исправления ошибок виртуальной

Skip to content

На чтение 3 мин. Просмотров 3.7k. Опубликовано 03.09.2019

Неустранимая ошибка исключения виртуальной машины Java появляется у некоторых пользователей, когда они пытаются запустить программное обеспечение, построенное на Java. Полное сообщение об ошибке гласит: « Не удалось создать виртуальную машину Java. Ошибка: произошла фатальная исключительная ситуация. »Следовательно, Java-программа не запускается. Это несколько потенциальных исправлений для фатальной ошибки виртуальной машины Java.

Содержание

  1. Решения для исправления ошибок виртуальной машины Java
  2. 1. Установите новую системную переменную для Java
  3. 2. Выберите опцию Запуск от имени администратора для Java
  4. 3. Переустановите Java

Решения для исправления ошибок виртуальной машины Java

1. Установите новую системную переменную для Java

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

  • Откройте «Выполнить» с помощью сочетания клавиш Windows + R.
  • Введите «sysdm.cpl» в «Выполнить» и нажмите ОК , чтобы открыть окно на изображении непосредственно ниже.

  • Выберите вкладку Advanced в этом окне.
  • Нажмите кнопку Переменные среды , чтобы открыть окно ниже.

  • Нажмите кнопку Создать под полем Системные переменные.
  • Введите «_JAVA_OPTIONS» в текстовое поле «Имя переменной».

  • Затем введите «–Xmx512M» в текстовом поле «Значение переменной», что увеличит объем оперативной памяти до 512 мегабайт.

  • Нажмите кнопку ОК , чтобы закрыть окно.
  • Затем нажмите кнопку ОК в окнах среды.

– СВЯЗАННО: Как удалить всплывающее окно «Обновление Java доступно»

2. Выберите опцию Запуск от имени администратора для Java

Ошибка виртуальной машины Java также может быть связана с недостаточными правами администратора. Таким образом, некоторым пользователям может потребоваться назначить права администратора для Java. Пользователи могут назначать права администратора для Java в Windows 10 следующим образом.

  • Откройте Cortana с помощью сочетания клавиш Windows + Q.
  • Введите «Java» в поле поиска.
  • Затем щелкните правой кнопкой мыши Java и выберите Открыть местоположение файла , чтобы открыть папку Java в проводнике.

  • Теперь пользователи могут щелкнуть правой кнопкой мыши файл java.exe и выбрать Свойства .

  • Выберите вкладку «Совместимость».

  • Выберите Запустить эту программу от имени администратора .
  • Выберите параметр Применить .
  • Нажмите ОК , чтобы закрыть окно.

3. Переустановите Java

  • Переустановка Java может также исправить ошибку виртуальной машины Java для некоторых пользователей. Сначала удалите установленную версию Java, введя «appwiz.cpl» в «Выполнить» и нажав ОК .

  • Введите «Java» в поле поиска.
  • Выберите Java и нажмите Удалить .
  • Нажмите Да в любом открывшемся окне подтверждения.
  • После этого перезапустите Windows.
  • Затем откройте страницу загрузки Java в браузере.

  • Пользователям нужна 32-битная Java для 32-битных программ и 64-битная Java для 64-битного программного обеспечения. В случае сомнений лучше всего загрузить и установить обе версии Java, нажав Windows Offline и Windows Offline 64-bit .
  • После этого откройте мастер установки Java.
  • Нажмите кнопку Установить в мастере настройки.

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

I have just installed Java SE Development Kit 8u91 on my 64 bit Windows-10 OS. I set my path variables . I tried java —version in my command prompt it gave me an error.

c:UsersOnlymanu>java --version
Unrecognized option: --version    
Error: Could not create the Java Virtual Machine. 
Error: A fatal exception has occurred. Program will exit.

But when i tried java -version it worked.

I tried initializing _JAVA_OPTIONS environment variable and ever tried re-installation none of them worked. Can any one help me please?

asked May 12, 2016 at 11:57

Maheshwar Reddy K's user avatar

4

I think you have put command like java -VERSION. This is in capital letters
You need to put all command in lowercase letters

javac -version
java -version

All characters must be in lowercase letter

Carson Graham's user avatar

answered May 18, 2017 at 8:17

Dhaval Dalsania's user avatar

3

I was facing a similar issue. Actually the command is :

java -version and not java --version.

You will get output something like this:

java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

M.K's user avatar

M.K

1,3542 gold badges26 silver badges45 bronze badges

answered Jan 26, 2020 at 19:47

Saumya Agnihotri's user avatar

Java 8:

java -version

Java 9+:

java --version

answered Feb 19, 2021 at 19:07

codingjeremy's user avatar

codingjeremycodingjeremy

4,9271 gold badge34 silver badges38 bronze badges

the command should be java -version

answered Nov 13, 2017 at 11:43

Veli Mpinda's user avatar

Veli MpindaVeli Mpinda

4254 silver badges3 bronze badges

Try executing below command,

java -help

It gives option as,

-version print product version and exit

java -version is the correct command to execute

answered May 12, 2016 at 12:05

Ankur Singhal's user avatar

Ankur SinghalAnkur Singhal

25.7k14 gold badges81 silver badges114 bronze badges

--version is a valid option from JDK 9 and it is not a valid option until JDK 8 hence you get the below:

Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

You can try installing JDK 9 or any version later and check for java --version it will work.

Alternately, from the installed JDK 9 or later versions you can see from java -help the below two options will be available:

    -version      print product version to the error stream and exit
    --version     print product version to the output stream and exit

where as in JDK 8 you will only have below when you execute java -help

    -version      print product version and exit

I hope it answers your question.

answered Oct 19, 2019 at 12:30

Santosh Sindham's user avatar

Your command is wrong.

Linux

java -- version

macOS

java -version

You can’t use those commands other way around.

Brandon Minnick's user avatar

answered Nov 11, 2017 at 21:32

Akash Perera's user avatar

0

This happens because the CMD doesn’t recognize the «java —version» try writing «java -version»
when «java —version» it tries to create a JVM. IT Fails because that’s wrong command.

enter image description here

answered May 11, 2021 at 11:02

Jeremias Bila's user avatar

java -version
java -showversion

Both commands work In Linux 16.04 LTS

answered Apr 18, 2018 at 8:12

monti's user avatar

montimonti

7148 silver badges16 bronze badges

Содержание

  1. Fix: Could Not Create the Java Virtual Machine
  2. What is causing the Could Not Create The Java Virtual Machine error?
  3. Method 1: Adding the _JAVA_OPTIONS to System Variables
  4. Method 2: Opening java.exe with admin rights
  5. Method 3: Reinstalling Java
  6. Method 4: Fixing Errors With Code
  7. Как исправить фатальную ошибку виртуальной машины Java в Windows 10
  8. Решения для исправления ошибок виртуальной машины Java
  9. 1. Установите новую системную переменную для Java
  10. 2. Выберите опцию Запуск от имени администратора для Java
  11. 3. Переустановите Java
  12. Could Not Create the Java Virtual Machine [Error Fix]
  13. Don’t hesitate to take a closer look at our quick solutions
  14. Why am I getting Could not create Java Virtual Machine?
  15. How do I fix Could not create the Java Virtual Machine error?
  16. 1. Set up a new system variable for Java
  17. 2. Select the Run as administrator option for Java
  18. 3. Reinstall Java

Fix: Could Not Create the Java Virtual Machine

Some users are encountering the Could Not Create The Java Virtual Machine error when trying to launch an application that is using Java. This particular issue is reported to occur with Minecraft and several other applications that are built around Java.

Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. The program will exit.

What is causing the Could Not Create The Java Virtual Machine error?

We investigated this particular issue by looking at various user reports and the troubleshooting strategies that they used to resolve the same error message. Based on their conclusions, there are a couple of scenarios that will trigger this particular issue:

  • Java is invoked by the wrong arguments or options – This can occur if you’re running a home-brewed application or you’re trying to open an open-source application that is known to cause system instability.
  • Java global maximum heap memory is not high enough – One of the most common causes of why you can encounter this particular error is if you try to start a Java application with a maximum heap memory size larger than the one set as the System Variable.
  • Java executable and/or application require administrative privileges – This might happen with applications that need admin access in order to function properly.

If you’re currently looking for a way to resolve the, Could Not Create The Java Virtual Machine error, this article will provide you with several verified troubleshooting strategies. Below you have a collection of methods that other users in a similar situation have used to get the issue resolved.

To ensure the best results, follow the methods below in the order that they are presented until you discover a method that is effective in resolving the error for your particular scenario.

Method 1: Adding the _JAVA_OPTIONS to System Variables

Most affected users have managed to get the issue resolved by creating a System Variable for Java called _JAVA_OPTIONS and setting it’s value to Xmx512M. What this essentially does is it sets the global maximum heap memory size for Java.

This will resolve any error message that occurs because the started Java application’s maximum heap memory size is larger than the one set as the System Variable. Several users encountering the same issue have reported that the issue was resolved entirely after they performed the steps below.

Here’s what you need to do to add a _JAVA_OPTIONS entry in System Variables to enlarge the global maximum heap memory size:

  1. Press Windows key + R to open up a Run dialog box. Then, type “sysdm.cpl” and press Enter to open up the System Properties screen.
  2. Inside the System Properties screen, go to the Advanced tab and click on Environment Variables.
  3. In the Environment Variables window, click on New (under System Variables).
  4. Inside the New System Variable window, set the Variable name to _JAVA_OPTIONS and the Variable value to –Xmx512M and click Ok to save the changes.
  5. Close the previously opened windows and restart your machine to enforce the changes.
  6. At the next startup, open the application that was previously showing you the Could Not Create the Java Virtual Machine error and see if is now functioning properly.

Creating a System Variable called _JAVA_OPTIONS and assigning it the value Xmx512M

If you’re still seeing the same error message at the start of the application, try adding the Java Bin path which might be similar to “%USER PATHJavajdk1.6.0_39bin” to the environment variable as indicated in the above method and see if that works.

Method 2: Opening java.exe with admin rights

Several users struggling to resolve the same issue have managed to get the issue resolved after forcing the main Java executable (java.exe) to open with administrative privileges.

Some users reported that they were able to resolve the issue after applying this fix on both the main java executable and the executable of the application that is showing the error message.

Here’s a quick guide through the whole thing:

    Open File Explorer and navigate to the location of your java installation. We’ll need to arrive at the location of the main Java executable (java.exe). By default, you should find it in Program Files/Java/*JRE build version*/bin. The exact location will differ depending on which Java Runtime Environment you’re using. Navigate to the location of java.exe

Note: If you installed Java in a custom location, navigate the custom location instead.

  • Right-click on java.exe and choose Properties. Then, go to the Compatibility tab and check the box associated with Run this program as an administrator (under Settings). Click Apply to save the changes. go to the Compatibility tab and enable Run this program as an administrator
  • Right-click on the application executable (the one that is triggering the error) and repeat the same procedure: Compatibility > Run this program as an administrator > Apply.
  • Run the application and see if the error message is resolved.
  • Method 3: Reinstalling Java

    In some cases, the error is triggered because Java might not be installed properly or its installation might have been corrupted over time. Therefore, in this step, we will be reinstalling Java after uninstalling it completely. For that:

    1. Press Windows key + R to open up the Run prompt and type in “Appwiz.cpl”. Type “appwiz.cpl” into the Run dialog and press Enter
    2. Press “Enter” and the Programs and Features screen will open up.
    3. At the Programs and Features screen, scroll through the installed application list until you find Java. Checking the Programs and features screen
    4. Right-click on it and select “Uninstall” to remove it completely from the system
    5. First, delete the primary Java installation and later you should also remove all other Java installations such as updates and other versions.
    6. After uninstalling all installation, restart your computer.
    7. After booting up, visit this link and download the latest version of JRE.
    8. Check to see if the issue persists.
    9. If the error still persists, download and install the latest version of JDK from here.
      Note: If you are already using JDK, try changing its versions or uninstalling the JRE that has been installed along with it.
    10. Verify if the issue still exists.

    Method 4: Fixing Errors With Code

    There are different reasons behind this error and some of them include if you have some particular errors with your code. We will highlight some below.

      Remove Hyphen: Some users noted that the error was fixed by changing the double hyphen “–” to a single one “-” in their code. For example:
      Change the code
      “sony@sony-VPCEH25EN:

    Источник

    Как исправить фатальную ошибку виртуальной машины Java в Windows 10

    Неустранимая ошибка исключения виртуальной машины Java появляется у некоторых пользователей, когда они пытаются запустить программное обеспечение, построенное на Java. Полное сообщение об ошибке гласит: « Не удалось создать виртуальную машину Java. Ошибка: произошла фатальная исключительная ситуация. »Следовательно, Java-программа не запускается. Это несколько потенциальных исправлений для фатальной ошибки виртуальной машины Java.

    Решения для исправления ошибок виртуальной машины Java

    1. Установите новую системную переменную для Java

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

    • Откройте «Выполнить» с помощью сочетания клавиш Windows + R.
    • Введите «sysdm.cpl» в «Выполнить» и нажмите ОК , чтобы открыть окно на изображении непосредственно ниже.

    • Выберите вкладку Advanced в этом окне.
    • Нажмите кнопку Переменные среды , чтобы открыть окно ниже.

    • Нажмите кнопку Создать под полем Системные переменные.
    • Введите «_JAVA_OPTIONS» в текстовое поле «Имя переменной».

    • Затем введите «–Xmx512M» в текстовом поле «Значение переменной», что увеличит объем оперативной памяти до 512 мегабайт.

    • Нажмите кнопку ОК , чтобы закрыть окно.
    • Затем нажмите кнопку ОК в окнах среды.

    – СВЯЗАННО: Как удалить всплывающее окно «Обновление Java доступно»

    2. Выберите опцию Запуск от имени администратора для Java

    Ошибка виртуальной машины Java также может быть связана с недостаточными правами администратора. Таким образом, некоторым пользователям может потребоваться назначить права администратора для Java. Пользователи могут назначать права администратора для Java в Windows 10 следующим образом.

    • Откройте Cortana с помощью сочетания клавиш Windows + Q.
    • Введите «Java» в поле поиска.
    • Затем щелкните правой кнопкой мыши Java и выберите Открыть местоположение файла , чтобы открыть папку Java в проводнике.

    • Теперь пользователи могут щелкнуть правой кнопкой мыши файл java.exe и выбрать Свойства .

    • Выберите вкладку «Совместимость».

    • Выберите Запустить эту программу от имени администратора .
    • Выберите параметр Применить .
    • Нажмите ОК , чтобы закрыть окно.

    3. Переустановите Java

    • Переустановка Java может также исправить ошибку виртуальной машины Java для некоторых пользователей. Сначала удалите установленную версию Java, введя «appwiz.cpl» в «Выполнить» и нажав ОК .

    • Введите «Java» в поле поиска.
    • Выберите Java и нажмите Удалить .
    • Нажмите Да в любом открывшемся окне подтверждения.
    • После этого перезапустите Windows.
    • Затем откройте страницу загрузки Java в браузере.

    • Пользователям нужна 32-битная Java для 32-битных программ и 64-битная Java для 64-битного программного обеспечения. В случае сомнений лучше всего загрузить и установить обе версии Java, нажав Windows Offline и Windows Offline 64-bit .
    • После этого откройте мастер установки Java.
    • Нажмите кнопку Установить в мастере настройки.

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

    Источник

    Could Not Create the Java Virtual Machine [Error Fix]

    Don’t hesitate to take a closer look at our quick solutions

    • You should run the software as an administrator as the lack of rights can trigger the error.
    • If you’re still experiencing this problem, it all comes down to reinstalling Java from scratch.

    1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here) .
    2. Click Start Scan to find Windows issues that could be causing PC problems.
    3. Click Repair All to fix issues affecting your computer’s security and performance

    • Restoro has been downloaded by 0 readers this month.

    The Java virtual machine fatal exception error pops up for some users when they try to launch software built on Java. Minecraft users are no strangers to this issue.

    The full error message states: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Consequently, the Java program doesn’t run, yet we will share some simple fixes.

    Why am I getting Could not create Java Virtual Machine?

    The following are some of the possible causes that you should pay attention to:

    • Memory size issues – The Java Virtual Machine error often arises when Java needs a larger global maximum heap memory size. The problem was resolved by users increasing the maximum RAM allotted to Java.
    • Incorrect path settings – In this case, you just need to set or modify your path, as described below.
    • Corrupted files – Such files may contribute to this error, so note that a reinstallation of Java should fix this. This applies to those encountering Windows error 2 while loading the Java VM error message as well.

    Do I need to install JVM?

    Any machine on which you want to run Java code must have the Java Runtime Environment (JRE) installed. This is because Java does not run natively on a computer as C++ or C does; instead, someone must translate Java’s instructions into machine code, which the JVM does.

    This error may come in different shades including Could not create the Java Virtual Machine in Android Studio, Docker, Pentaho, Elasticsearch, Sonarqube, Minecraft, Eclipse, React Native, and IntelliJ yet rest assured that you’ll find our solutions useful.

    How do I fix Could not create the Java Virtual Machine error?

    1. Set up a new system variable for Java

    1. Open Run with the Windows key + R keyboard shortcut, then enter sysdm.cpl in Run and click OK.
    2. Select the Advanced tab on that window, and click the Environment Variables button.
    3. Click the New button under the System variables box.
    4. Enter _JAVA_OPTIONS in the Variable name text box.
    5. Then, enter –Xmx512M in the Variable value text box, which increases RAM allocation to 512 megabytes.
    6. Click the OK button to close the window, then press the OK button on the Environmental window.

    2. Select the Run as administrator option for Java

    The Java Virtual Machine error can also be due to insufficient admin rights. Thus, some users might need to assign admin rights to Java. You can try the steps below to apply this solution.

    1. Press the Windows key + S keyboard shortcut, and enter Java. Right-click on Java and select Open file location to open Java’s folder in File Explorer.

    Expert tip:

    SPONSORED

    Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
    We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
    Click here to download and start repairing.

    2. Right-click java.exe and select Properties.

    3. Select the Compatibility tab and select the Run this program as an administrator option.

    5. Select the Apply option, and click OK to close the window.

    Read more about this topic

    3. Reinstall Java

    1. First, open the Run accessory by pressing the Windows key + R .
    2. Type the command below and hit Enter .
      appwiz.cpl
    3. Select Java from the program list and click Uninstall.
    4. Click Yes on any confirmation window that opens.
    5. Restart Windows, open the Java download page in a browser, and download either the 32 or 64-bit offline Windows versions.
    6. Users need 32-bit Java for 32-bit programs and 64-bit Java for 64-bit software. If in doubt, your best bet is to download and install both Java versions.
    7. Thereafter, open the Java setup wizard, and click the Install button on the setup wizard.

    That’s how users can fix this fatal error and get back to running the required Java software.

    Any of the previously mentioned solutions may be successfully applied when getting a Java virtual machine launcher error which arises even if nothing has changed on your computer, and it’s most likely related to Java installation.

    Things are no different when it comes to the Could not create the Java virtual machine a fatal exception has occurred error. This problem also seems to appear randomly. Make sure you aren’t using a 32-bit VM and a 64-bit Eclipse.

    Minecraft could not create the Java virtual machine is an error that shows up when trying to launch Minecraft. The main reason is that it needs admin access in order to function properly.

    If you have any other questions or if you have advice for other users to try, don’t hesitate to leave a comment below.

    Источник

    5 / 1 / 4

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

    Сообщений: 229

    1

    25.03.2013, 11:22. Показов 35185. Ответов 23


    Прошу помощи, нужен компилятор SDK, установил, прочитал чтобы проверить его работоспособность ввести cmd и «java — version», вот что выводится на экран:
    Unrecognized option: —
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Удалял, перезагружал, ставил по новой, одним словом пробовал все на что способен!
    (при загрузке этих компонентов разрядность выбирал правильно x64)
    Нашел тему на вашем форуме
    Установить Java VM на XP

    все сделал так же, результат одинаковый.

    не могу начать изучать java!!!

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



    0



    Эксперт Java

    4087 / 3821 / 745

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

    Сообщений: 9,331

    Записей в блоге: 11

    25.03.2013, 11:34

    2

    Откуда качали, и как называется файл который вы скачали?
    Java FAQ: для начинающих



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 11:38

     [ТС]

    3

    Цитата
    Сообщение от turbanoff
    Посмотреть сообщение

    Откуда качали, и как называется файл который вы скачали?

    качал отсюда http://www.oracle.com/technetw… 80260.html

    сейчас почитаю в той теме, спасибо



    0



    8 / 8 / 0

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

    Сообщений: 58

    25.03.2013, 12:04

    4

    Учти, что в виндах есть свои java и javac каких-то своих версий. И если ты без полных путей пишешь например java, то запросто может запуститься древняя виндовая java



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 12:31

     [ТС]

    5

    Цитата
    Сообщение от turbanoff
    Посмотреть сообщение

    Откуда качали, и как называется файл который вы скачали?

    как написано в теме Java FAQ: для начинающих иду по ссылке http://www.oracle.com/technetw… 80260.html скачиваю JDK файл «jdk-7u17-windows-x64.exe»

    во время установки: Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    прописываю как сказали
    JAVA_HOME(имя переменной) C:Program FilesJavajdk1.7.0_17
    PATH(имя переменной) C:Program FilesJavajdk1.7.0_17bin

    cmd, «java — version» и опять
    Unrecognized option: —
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    прошу помощи



    0



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 12:46

    6

    в этом и проблема, как мне кажется, что используете 64х битную, попробуйте 32 скачать и поставить



    1



    Эксперт Java

    4087 / 3821 / 745

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

    Сообщений: 9,331

    Записей в блоге: 11

    25.03.2013, 13:02

    7

    Цитата
    Сообщение от xxgurman
    Посмотреть сообщение

    во время установки: Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    Прямо во время установки? Можете скрин показать?



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 13:11

     [ТС]

    8

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    в этом и проблема, как мне кажется, что используете 64х битную, попробуйте 32 скачать и поставить

    поставил 32, пишет то же самое

    Цитата
    Сообщение от turbanoff
    Посмотреть сообщение

    Прямо во время установки? Можете скрин показать?

    теперь уже во время установки не пишет!

    умоляю хелп! дошло до смешного такие проблемы а еще не начал, что будет дальше! впрочем проблемы меня не пугают



    0



    Эксперт Java

    4087 / 3821 / 745

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

    Сообщений: 9,331

    Записей в блоге: 11

    25.03.2013, 13:39

    9

    Цитата
    Сообщение от xxgurman
    Посмотреть сообщение

    теперь уже во время установки не пишет!

    То есть установилось нормально, в какую папку вы установили? C:Program FilesJavajdk1.7.0_17bin ?
    Запустите cmd.exe и оттуда выполните

    Код

    C:Program FilesJavajdk1.7.0_17binjava.exe



    0



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 13:49

     [ТС]

    10

    Цитата
    Сообщение от turbanoff
    Посмотреть сообщение

    То есть установилось нормально, в какую папку вы установили? C:Program FilesJavajdk1.7.0_17bin ?
    Запустите cmd.exe и оттуда выполните

    Код

    C:Program FilesJavajdk1.7.0_17binjava.exe

    «C:Program» не является внутренней или внешней командой, исполняемой программой или пакетным файлом.
    может Program Files как то без пробела писать нужно? быть может я сейчас ошибаюсь

    да, установилось нормально, все там — C:Program FilesJavajdk1.7.0_17



    0



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 13:53

    11

    открываете cmd, затем пишите:
    1. cd..
    2. cd..
    3. оказались в корне, тойсь пишет C:> в командной строке
    4. cd Prog <нажимаете Tab и клацаете до тех пор, пока не увидите надпись Program Files>
    5. по аналогии повторить с другими каталогами

    еще лучше посмотрите у вас Program Files или Program Files(x86) и Program Files? Версия на 32 бита установлена в каталоге Program Files(x86)



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 14:04

     [ТС]

    12

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    еще лучше посмотрите у вас Program Files или Program Files(x86) и Program Files? Версия на 32 бита установлена в каталоге Program Files(x86)

    об этом я имею понятие, у меня и Program files и Program files (x86)

    Добавлено через 4 минуты

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    открываете cmd, затем пишите:
    1. cd..
    2. cd..
    3. оказались в корне, тойсь пишет C:> в командной строке
    4. cd Prog <нажимаете Tab и клацаете до тех пор, пока не увидите надпись Program Files>
    5. по аналогии повторить с другими каталогами

    дошел я до этого, пишу «cd Prog <«, клацаю, появился Program Files, клацаю Enter, в итоге:
    Системе не удается найти указанный путь. что то странное происходит

    хах, простите, с этими пунктами все ок. ну проделал я это, что это дает?



    0



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 14:04

    13

    значит посмотрите в Program files (x86) есть ли папка Java, если да — значит это ваш случай



    1



    8 / 8 / 0

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

    Сообщений: 58

    25.03.2013, 14:05

    14

    Ты напиши в файле .cmd вот так:

    «C:Program FilesJavajdk1.7.0_17binjava.exe» <<<<а сюда, после кавычек уже параметры и класс

    Тогда не будет ругаться на Program



    1



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 14:05

    15

    надеюсь знак < не вводите?



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 14:09

     [ТС]

    16

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    значит посмотрите в Program files (x86) есть ли папка Java, если да — значит это ваш случай

    я понимаю о чем вы! но нет! папки там нет, такая папка в «Program Files»

    Цитата
    Сообщение от ptrts
    Посмотреть сообщение

    Ты напиши в файле .cmd вот так:

    «C:Program FilesJavajdk1.7.0_17binjava.exe» <<<<а сюда, после кавычек уже параметры и класс

    Тогда не будет ругаться на Program

    параметры, класс? о боже.. подскажите еще и об этом тогда

    Добавлено через 52 секунды

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    надеюсь знак < не вводите?

    хах, простите, с этими пунктами все ок. ну проделал я это, что это дает?



    0



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 14:18

     [ТС]

    17

    вот как то так, если правильно делал

    Миниатюры

    Не могу установить Java Virtual Machine
     



    0



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 14:18

    18

    что написало в ответ, когда вы это проделали? в идеале должно вывалится в консоль список аргументов, которые поддерживает запуск java



    1



    5 / 1 / 4

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

    Сообщений: 229

    25.03.2013, 14:35

     [ТС]

    19

    Цитата
    Сообщение от tankomaz
    Посмотреть сообщение

    что написало в ответ, когда вы это проделали? в идеале должно вывалится в консоль список аргументов, которые поддерживает запуск java

    так почему у меня все как то наизнанку делается?



    0



    ɐwʎ ɔ vǝmоɔ dиw ɐʚонɔ

    443 / 442 / 100

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

    Сообщений: 1,146

    Записей в блоге: 9

    25.03.2013, 14:48

    20

    Цитата
    Сообщение от xxgurman
    Посмотреть сообщение

    так почему у меня все как то наизнанку делается?

    ок, java значит поставилась…. вы Hello World запустить не можете? (всмысле скомпилировать свою первую программу?)



    0



    Ошибка «Could not create the Java Virtual Machine» встречается во всех версиях операционной системы Windows. Она появляется как при запуске игр, которые требуют наличие виртуальной машины Java на устройстве, так и при установке самой виртуальной машины на компьютере. Текст ошибки Java Virtual Machine Launcher говорит нам следующее: системе не удалось создать виртуальную машину Java. В этой статье мы с вами рассмотрим причины, по которым возникает эта проблема и, конечно же, устраним саму ошибку.

    Скриншот ошибки

    Содержание

    1. Причины возникновения ошибки Джава
    2. Устраняем ошибку Java Virtual Machine Launcher
    3. Способ 2. Освобождаем оперативную память ПК
    4. Дополнительные методы устранения ошибки

    Причины возникновения ошибки Джава

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

    Ошибка JVM при запуске игр и приложений может также возникать по причине недостатка оперативной памяти на вашем устройстве. Для работы виртуальной машины Java требуется определенное количество выделенной памяти компьютером. Для компьютера это очень ценный ресурс, чем этой памяти больше, тем быстрей и лучше процессор справляется с поставленными задачами.

    Устраняем ошибку Java Virtual Machine Launcher

    Рассмотрим самый распространенный способ исправить ошибку «Could not create the Java Virtual Machine» – создание новой переменной среды.

    1. Нажмите правой кнопкой по иконке «Мой компьютер» и выберите из контекстного меню «Свойства». Меню свойств ярлыка
      Выберите «Свойства»
    2. В следующем окне в блоке слева выберите пункт «Дополнительные параметры».Скрин сведения о системе Виндовс
    3. Далее найдите внизу окна кнопку «Переменные среды».Экран свойств системы Виндовс
    4. Под списком переменных нажмите кнопку «Создать».Картинка переменных среды Виндовс
    5. Введите в первой строке «Имя переменной» – «_Java_Options», а напротив строки «Значение переменной» – значение «-Xmx512M» и подтвердите действия, нажав кнопку «Ок». Перезагрузите компьютер и попробуйте снова сделать те же действия, которые привели к ошибке.

    Способ 2. Освобождаем оперативную память ПК

    Следующий метод устранения ошибки заключается в освобождении оперативной памяти вашего компьютера. Как уже было сказано, ошибка может возникать по причине недостатка памяти. Чтобы ее освободить, нужно закрыть все ненужные программы, а также «убить» все лишние процессы. Ведь каждая программа нуждается в определенном количестве этого ресурса. На официальном сайте Майкрософт вы можете ознакомиться со всеми важными процессами Windows, прекращение которых повлечет за собой сбои системы. Чтобы остановить лишние процессы:

      1. Нажмите сочетание клавиш CTRL+SHIFT+ESC для Windows 7,8,10. CTRL+ALT+DEL – для Windows XP.
      2. Откроется окно со списком запущенных программ и процессов на вашем ПК.
        Скриншот Диспетчера задач

    Чтобы закрыть программу или остановить процесс, нужно выделить мышью название программы или процесса, затем нажать на кнопку внизу окна «Снять задачу».

    Некоторые запущенные фоновые программы не отображаются в списке, но их можно увидеть в списке процессов. Эта разнообразные модули обновлений, они работают в фоновом режиме и следят за выходом новых версий определенных программ. Они также потребляют оперативную память. Вашей задачей будет отыскать такие процессы и остановить для решения текущей проблемы. Когда вы очистите память и остановите все ненужные программы и процессы, попробуйте запустить снова игру, чтобы убедиться, что окно с ошибкой «Could not create the Java Virtual Machine» уже не появляется.

    Дополнительные методы устранения ошибки

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

    Если у вас не установлено программное обеспечение Java, вы можете загрузить его по ссылке https://www.java.com/ru/download/win8.jsp. Попадая на страницу, нажмите кнопку «Согласиться и начать бесплатную загрузку».

    Окно установки Java

    После этого будет загружен пакет данных, который нужно будет установить на свой ПК.

    Причиной ошибки может также стать устаревшая версия Java. Если у вас уже были установлены более ранние версии Java, то их необходимо полностью удалить. Для этого вы можете воспользоваться специальной утилитой, которая помогает найти и проверить все файлы предыдущей версии. Скачать ее можно по следующей ссылке – https://www.java.com/ru/download/uninstalltool.jsp. Часто после полного удаления старой версии Java и установки последней, ошибка «Could not create the Java Virtual machine» навсегда исчезает.

    Доброго времени суток!

    Уважаемые форумчане, помогите пожалуйста решить проблему с компиляцией приложения. Вчера все работало нормально сегодня не могу скомпилировать даже пустое приложение.

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

    Спойлер

    Build
      Checking project dependencies…
      Compiling Project1.dproj (Debug, Android)
      [Exec Error] EXEC(1): A fatal exception has occurred. Program will exit.
      [Exec Error] The command «PATH C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:UsersPublicDocumentsEmbarcaderoInterBaseredistInterBase2020IDE_spoof;C:Program FilesCommon FilesOracleJavajavapath;C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:Program Files (x86)EmbarcaderoStudio21.0bin;C:UsersPublicDocumentsEmbarcaderoStudio21.0Bpl;C:Program Files (x86)EmbarcaderoStudio21.0bin64;C:UsersPublicDocumentsEmbarcaderoStudio21.0BplWin64;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program FilesJavajdk-16.0.1bin;C:UsersfredhackAppDataLocalMicrosoftWindowsApps; & «C:UsersfredhackAppDataLocalAndroidSdkbuild-tools30.0.3dx.bat» —dex —output=»C:UsersfredhackDocumentsEmbarcaderoStudioProjectsAndroidDebugclasses.dex» «c:program files (x86)embarcaderostudio21.0libandroidDebugandroid-support-v4.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcloud-messaging.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-base.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-lite.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-base.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-basement.16.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-gass.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-identity.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-maps.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-base.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-stats.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tasks.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-wallet.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-analytics.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-common.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid-interop.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid.17.1.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-measurement-connector.17.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-messaging.17.5.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugfmx.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-billing.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-licensing.dex.jar» » exited with code 1.
      Failed
      Elapsed time: 00:00:00.7
    Output
      Build started 23.05.2021 10:31:00.
      __________________________________________________
      Project «C:UsersfredhackDocumentsEmbarcaderoStudioProjectsProject1.dproj» (Make target(s)):
      Target BuildClassesDex:
          PATH C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:UsersPublicDocumentsEmbarcaderoInterBaseredistInterBase2020IDE_spoof;C:Program FilesCommon FilesOracleJavajavapath;C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:Program Files (x86)EmbarcaderoStudio21.0bin;C:UsersPublicDocumentsEmbarcaderoStudio21.0Bpl;C:Program Files (x86)EmbarcaderoStudio21.0bin64;C:UsersPublicDocumentsEmbarcaderoStudio21.0BplWin64;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program FilesJavajdk-16.0.1bin;C:UsersfredhackAppDataLocalMicrosoftWindowsApps; & «C:UsersfredhackAppDataLocalAndroidSdkbuild-tools30.0.3dx.bat» —dex —output=»C:UsersfredhackDocumentsEmbarcaderoStudioProjectsAndroidDebugclasses.dex» «c:program files (x86)embarcaderostudio21.0libandroidDebugandroid-support-v4.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcloud-messaging.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-base.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-lite.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-base.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-basement.16.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-gass.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-identity.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-maps.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-base.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-stats.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tasks.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-wallet.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-analytics.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-common.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid-interop.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid.17.1.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-measurement-connector.17.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-messaging.17.5.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugfmx.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-billing.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-licensing.dex.jar» 
          -Djava.ext.dirs=C:UsersfredhackAppDataLocalAndroidSdkbuild-tools30.0.3lib is not supported.  Use -classpath instead.
          EXEC : error : Could not create the Java Virtual Machine.
          EXEC : error : A fatal exception has occurred. Program will exit.
          c:program files (x86)embarcaderostudio21.0binCodeGear.Common.Targets(988,5): error MSB3073: The command «PATH C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:UsersPublicDocumentsEmbarcaderoInterBaseredistInterBase2020IDE_spoof;C:Program FilesCommon FilesOracleJavajavapath;C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:Program Files (x86)EmbarcaderoStudio21.0bin;C:UsersPublicDocumentsEmbarcaderoStudio21.0Bpl;C:Program Files (x86)EmbarcaderoStudio21.0bin64;C:UsersPublicDocumentsEmbarcaderoStudio21.0BplWin64;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program FilesJavajdk-16.0.1bin;C:UsersfredhackAppDataLocalMicrosoftWindowsApps; & «C:UsersfredhackAppDataLocalAndroidSdkbuild-tools30.0.3dx.bat» —dex —output=»C:UsersfredhackDocumentsEmbarcaderoStudioProjectsAndroidDebugclasses.dex» «c:program files (x86)embarcaderostudio21.0libandroidDebugandroid-support-v4.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcloud-messaging.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-base.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-lite.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-base.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-basement.16.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-gass.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-identity.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-maps.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-base.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-stats.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tasks.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-wallet.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-analytics.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-common.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid-interop.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid.17.1.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-measurement-connector.17.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-messaging.17.5.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugfmx.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-billing.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-licensing.dex.jar» » exited with code 1.
      Done building target «BuildClassesDex» in project «Project1.dproj» — FAILED.
      Done building project «Project1.dproj» — FAILED.
      Build FAILED.
      EXEC : error : Could not create the Java Virtual Machine.
      EXEC : error : A fatal exception has occurred. Program will exit.
      c:program files (x86)embarcaderostudio21.0binCodeGear.Common.Targets(988,5): error MSB3073: The command «PATH C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:UsersPublicDocumentsEmbarcaderoInterBaseredistInterBase2020IDE_spoof;C:Program FilesCommon FilesOracleJavajavapath;C:Program FilesAdoptOpenJDKjdk-8.0.242.08-hotspotbin;C:Program Files (x86)EmbarcaderoStudio21.0bin;C:UsersPublicDocumentsEmbarcaderoStudio21.0Bpl;C:Program Files (x86)EmbarcaderoStudio21.0bin64;C:UsersPublicDocumentsEmbarcaderoStudio21.0BplWin64;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program FilesJavajdk-16.0.1bin;C:UsersfredhackAppDataLocalMicrosoftWindowsApps; & «C:UsersfredhackAppDataLocalAndroidSdkbuild-tools30.0.3dx.bat» —dex —output=»C:UsersfredhackDocumentsEmbarcaderoStudioProjectsAndroidDebugclasses.dex» «c:program files (x86)embarcaderostudio21.0libandroidDebugandroid-support-v4.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcloud-messaging.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-base.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-identifier.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads-lite.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-ads.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-analytics.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-base.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-basement.16.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-gass.17.2.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-identity.16.0.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-maps.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-base.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-measurement-sdk-api.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-stats.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tagmanager-v4-impl.16.0.8.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-tasks.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-android-gms.play-services-wallet.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-analytics.16.4.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-common.16.1.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid-interop.16.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-iid.17.1.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-measurement-connector.17.0.1.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugcom-google-firebase.firebase-messaging.17.5.0.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebugfmx.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-billing.dex.jar» «c:program files (x86)embarcaderostudio21.0libandroidDebuggoogle-play-licensing.dex.jar» » exited with code 1.
          0 Warning(s)
          3 Error(s)
      Time Elapsed 00:00:00.57

    Screenshot_6.png.5e23bfe10e637bc35e0a7b0acd1acfbd.png

    Я так понимаю какая то проблема с jdk?

    Помогите пожалуйста заранее большое спасибо!

    Компиляции добился удалением JDK из (программы и компоненты панель управления) устанавливал его отдельно от delphi

    Теперь приложение компилируется но после компиляции вылетает ошибка

    Screenshot_10.thumb.png.7cbd912d26374ddbc81bd9be1a4cb01c.png

    Приложение на телефоне запускается работает но я так понимаю не работает отладка? в чем причина может быть?


    Изменено 23 мая, 2021 пользователем fredhack

    Дополнение

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

    Не удалось создать виртуальную машину Java.  Ошибка. Произошло фатальное исключение.  Программа будет закрыта.

    Что вызывает ошибку «Не удалось создать виртуальную машину Java»?

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

    • Java вызывается из-за неправильных аргументов или опций. Это может произойти, если вы запускаете самодельное приложение или пытаетесь открыть приложение с открытым исходным кодом, которое, как известно, вызывает нестабильность системы.
    • Глобальный максимальный размер кучи Java недостаточно высок. Одна из наиболее частых причин, по которой вы можете столкнуться с этой конкретной ошибкой, — это попытка запустить приложение Java с максимальным размером памяти кучи, превышающим тот, который задан как системная переменная .
    • Исполняемый файл Java и / или приложение требуют прав администратора — это может происходить с приложениями, которым для правильной работы требуется доступ администратора.

    Если вы в настоящее время ищете способ устранить ошибку « Не удалось создать виртуальную машину Java» , эта статья предоставит вам несколько проверенных стратегий устранения неполадок. Ниже приведен набор методов, которые другие пользователи в аналогичной ситуации использовали для решения проблемы.

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

    Метод 1: добавление _JAVA_OPTIONS в системные переменные

    Наиболее затронутым пользователям удалось решить проблему, создав системную переменную для Java с именем _JAVA_OPTIONS и установив для нее значение Xmx512M . По сути, это устанавливает глобальный максимальный размер кучи для Java.

    Это устранит любое сообщение об ошибке, возникающее из-за того, что максимальный размер кучи запущенного приложения Java больше, чем тот, который задан как системная переменная. Несколько пользователей, столкнувшихся с той же проблемой, сообщили, что проблема была полностью решена после того, как они выполнили указанные ниже действия.

    Вот что вам нужно сделать, чтобы добавить запись _JAVA_OPTION S в системные переменные для увеличения глобального максимального размера кучи:

    1. Нажмите клавишу Windows + R, чтобы открыть диалоговое окно « Выполнить ». Затем введите « sysdm.cpl » и нажмите Enter, чтобы открыть экран « Свойства системы» .
    2. На экране « Свойства системы» перейдите на вкладку « Дополнительно » и нажмите « Переменные среды».
    3. В окне « Переменные среды» нажмите « Создать» (в разделе « Системные переменные» ).
    4. В окне « Новая системная переменная» установите для имени переменной значение _JAVA_OPTIONS и значение переменнойXmx512M и нажмите « ОК», чтобы сохранить изменения.
    5. Закройте ранее открытые окна и перезагрузите компьютер, чтобы изменения вступили в силу.
    6. При следующем запуске откройте приложение, которое ранее показывало ошибку « Не удалось создать виртуальную машину Java», и посмотрите, правильно ли работает.

    Создание системной переменной с именем _JAVA_OPTIONS и присвоение ей значения Xmx512M

    Если вы все еще видите то же сообщение об ошибке в начале приложения, попробуйте добавить путь Java Bin, который может быть похож на «% USER PATH Java jdk1.6.0_39 bin», к переменной среды, как указано в описанный выше метод и посмотрите, работает ли он.

    Метод 2: открытие java.exe с правами администратора

    Нескольким пользователям, пытающимся решить одну и ту же проблему, удалось решить проблему после принудительного открытия основного исполняемого файла Java (java.exe) с правами администратора.

    Некоторые пользователи сообщили, что им удалось решить проблему после применения этого исправления как к основному исполняемому файлу Java, так и к исполняемому файлу приложения, в котором отображается сообщение об ошибке.

    Вот краткое руководство по всему этому:

    1. Откройте проводник и перейдите к месту установки Java. Нам нужно будет добраться до места расположения основного исполняемого файла Java ( java.exe ). По умолчанию вы должны найти его в Program Files / Java / * JRE build version * / bin. Точное расположение будет отличаться в зависимости от того, какую среду выполнения Java вы используете.Перейдите к местоположению java.exe

      Примечание. Если вы установили Java в произвольном месте, перейдите в это место.

    2. Щелкните правой кнопкой мыши java.exe и выберите « Свойства» . Затем перейдите на вкладку « Совместимость » и установите флажок « Запускать эту программу от имени администратора» (в разделе «Настройки»). Нажмите Применить, чтобы сохранить изменения.перейдите на вкладку «Совместимость» и включите «Запускать эту программу от имени администратора».
    3. Щелкните правой кнопкой мыши исполняемый файл приложения (тот, который вызывает ошибку) и повторите ту же процедуру: Совместимость> Запустить эту программу от имени администратора> Применить .
    4. Запустите приложение и посмотрите, исчезнет ли сообщение об ошибке.

    Метод 3: переустановка Java

    В некоторых случаях ошибка возникает из-за того, что Java могла быть установлена ​​неправильно или ее установка могла быть повреждена с течением времени. Следовательно, на этом этапе мы переустановим Java после ее полного удаления. Для этого:

    1. Нажмите клавишу Windows + R, чтобы открыть окно «Выполнить», и введите «Appwiz.cpl».
    2. Нажмите «Enter», и откроется экран «Программы и компоненты».
    3. На экране « Программы и компоненты» прокрутите список установленных приложений, пока не найдете Java.
    4. Щелкните его правой кнопкой мыши и выберите «Удалить», чтобы полностью удалить его из системы.
    5. Сначала удалите основную установку Java, а позже вы также должны удалить все другие установки Java, такие как обновления и другие версии.
    6. После удаления всей установки перезагрузите компьютер.
    7. После загрузки перейдите по этой ссылке и загрузите последнюю версию JRE.
    8. Проверьте, сохраняется ли проблема.
    9. Если ошибка не исчезла, загрузите и установите последнюю версию JDK отсюда.

      Примечание. Если вы уже используете JDK, попробуйте изменить его версию или удалить JRE, установленную вместе с ним.

    10. Убедитесь, что проблема все еще существует.

    Метод 4: исправление ошибок с помощью кода

    У этой ошибки есть разные причины, и некоторые из них включают в себя определенные ошибки в вашем коде. Мы выделим некоторые из них ниже.

    • Удаление дефиса : некоторые пользователи отметили, что ошибка была исправлена ​​путем замены двойного дефиса «-» на одинарный «-» в их коде. Например:

      Измените код

      «Sony @ sony-VPCEH25EN: ~ $ java –версия

      Подобрал JAVA_TOOL_OPTIONS: -javaagent: /usr/share/java/jayatanaag.jar

      Нераспознанный вариант: –версия

      Ошибка: не удалось создать виртуальную машину Java.

      Ошибка: возникла фатальная исключительная ситуация. Программа будет закрыта.»

      Чтобы

      «Sony @ sony-VPCEH25EN: ~ $ java -version

      Подобрал JAVA_TOOL_OPTIONS: -javaagent: /usr/share/java/jayatanaag.jar

      Нераспознанный вариант: –версия

      Ошибка: не удалось создать виртуальную машину Java.

      Ошибка: возникла фатальная исключительная ситуация. Программа будет закрыта.»

    • Кроме того, попробуйте удалить следующую строку из своего аргумента

      -Djava.endorsed.dirs = «C: Program Files Apache Software Foundation Tomcat 8.5 endorsed»

    • Откройте файл eclipse.ini и убедитесь, что вы добавили запись «-vm» над аргументами vm, иначе JVM V6 будет выбран в переменных env.
    • Если вы используете Ubuntu, вы должны знать, что Java 8 — единственная поддерживаемая версия. Поэтому пользуемся третьим способом. Удалите Java и установите предыдущую версию.

    Метод 5: редактирование файла Eclipse.ini

    We can also tweak things inside the Eclipes.ini File to get rid of this issue. There might be a couple of issues with its configuration that need to be addressed therefore, we have divided it into separate issues. Follow the one which suits your scenario the best.

    Lowering Memory Use

    1. Open the Eclipse.ini file inside the Eclipse folder with notepad.
    2. Find the line similar to “-Xmx256m” (It might be -Xmx1024m or -Xmx 512m).
    3. Now change the default value to a more reasonable figure depending upon the RAM installed on your computer and add the version number to it as well. For Example:
      -Xmx512m -Dosgi.requiredJavaVersion=1.6 OR -Xmx512m -Dosgi.requiredJavaVersion=1.7 OR -Xmx512m -Dosgi.requiredJavaVersion=1.8
    4. Also, try removing the “256m” value from the “-launcher.XXMaxPermSize” line.
    5. Check to see if the issue persists.

    Tinkering Around

    1. Try to remove the following lines from your file.
      -vm P:Programsjdk1.6bin
    2. Also, change the following lines.
      set -Dosgi.requiredJavaVersion=1.5 TO set -Dosgi.requiredJavaVersion=1.6
    3. Also, try adding the following line above “-vmargs!” line.
      -vm C:Program Files (x86)Javajre6binjavaw.exe
    4. Also, point to JVM.dll using the following line.
      -vm C:Program FilesJavajre7binclientjvm.dll
    5. Open the Eclipse file and replace “-vmargs” with the path of javaw.exe. For Example:
      -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256M -showsplash com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile **-vm “c:Program FilesJavajdk1.7.0_07binjavaw.exe”** -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v21.1.0-569685
    6. Also, you can place the following line at the end and check if that works.
      -vmargs -Xms40m -Xmx512m -XX:MaxPermSize=256m
    7. Furthermore, try removing the following lines from the eclipse.ini and check if that works.
      -XX:+UseStringDeduplication -XX:+UseG1GC
    8. Вы также можете попробовать удалить файл eclipse.ini, если проблема не устранена, поскольку, как сообщается, проблема была устранена для некоторых, но не забудьте сначала создать резервную копию на случай, если она вам понадобится. Кроме того, попробуйте закрыть все энергоемкие приложения перед запуском Java, чтобы убедиться в доступности необходимых ресурсов.

    Проверка на повреждение JDK

    1. Нажмите «Windows» + «R», чтобы открыть окно «Выполнить», и введите «cmd».
    2. Введите следующую команду и проверьте, выдает ли она ошибку.
      c: > java -версия
    3. Если выдает ошибку, полностью переустановите JDK.

    Some users are encountering the Could Not Create The Java Virtual Machine error when trying to launch an application that is using Java. This particular issue is reported to occur with Minecraft and several other applications that are built around Java.

    Could not create the Java Virtual Machine. Error: A fatal exception has occured. Program will exit.

    Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. The program will exit.

    What is causing the Could Not Create The Java Virtual Machine error?

    We investigated this particular issue by looking at various user reports and the troubleshooting strategies that they used to resolve the same error message. Based on their conclusions, there are a couple of scenarios that will trigger this particular issue:

    • Java is invoked by the wrong arguments or options – This can occur if you’re running a home-brewed application or you’re trying to open an open-source application that is known to cause system instability.
    • Java global maximum heap memory is not high enough – One of the most common causes of why you can encounter this particular error is if you try to start a Java application with a maximum heap memory size larger than the one set as the System Variable.
    • Java executable and/or application require administrative privileges – This might happen with applications that need admin access in order to function properly.

    If you’re currently looking for a way to resolve the, Could Not Create The Java Virtual Machine error, this article will provide you with several verified troubleshooting strategies. Below you have a collection of methods that other users in a similar situation have used to get the issue resolved.

    To ensure the best results, follow the methods below in the order that they are presented until you discover a method that is effective in resolving the error for your particular scenario.

    Method 1: Adding the _JAVA_OPTIONS to System Variables

    Most affected users have managed to get the issue resolved by creating a System Variable for Java called _JAVA_OPTIONS and setting it’s value to Xmx512M. What this essentially does is it sets the global maximum heap memory size for Java.

    This will resolve any error message that occurs because the started Java application’s maximum heap memory size is larger than the one set as the System Variable. Several users encountering the same issue have reported that the issue was resolved entirely after they performed the steps below.

    Here’s what you need to do to add a _JAVA_OPTIONS entry in System Variables to enlarge the global maximum heap memory size:

    1. Press Windows key + R to open up a Run dialog box. Then, type “sysdm.cpl” and press Enter to open up the System Properties screen.
    2. Inside the System Properties screen, go to the Advanced tab and click on Environment Variables.
    3. In the Environment Variables window, click on New (under System Variables).
    4. Inside the New System Variable window, set the Variable name to _JAVA_OPTIONS and the Variable value to –Xmx512M and click Ok to save the changes.
    5. Close the previously opened windows and restart your machine to enforce the changes.
    6. At the next startup, open the application that was previously showing you the Could Not Create the Java Virtual Machine error and see if is now functioning properly.

    Creating a System Variable called _JAVA_OPTIONS and assigning it the value Xmx512M

    Creating a System Variable called _JAVA_OPTIONS and assigning it the value Xmx512M

    If you’re still seeing the same error message at the start of the application, try adding the Java Bin path which might be similar to “%USER PATHJavajdk1.6.0_39bin” to the environment variable as indicated in the above method and see if that works.

    Method 2: Opening java.exe with admin rights 

    Several users struggling to resolve the same issue have managed to get the issue resolved after forcing the main Java executable (java.exe) to open with administrative privileges.

    Some users reported that they were able to resolve the issue after applying this fix on both the main java executable and the executable of the application that is showing the error message.

    Here’s a quick guide through the whole thing:

    1. Open File Explorer and navigate to the location of your java installation. We’ll need to arrive at the location of the main Java executable (java.exe). By default, you should find it in Program Files/Java/*JRE build version*/bin. The exact location will differ depending on which Java Runtime Environment you’re using.Navigate to the location of java.exe
      Navigate to the location of java.exe

      Note: If you installed Java in a custom location, navigate the custom location instead.

    2. Right-click on java.exe and choose Properties. Then, go to the Compatibility tab and check the box associated with Run this program as an administrator (under Settings). Click Apply to save the changes.go to Compatibility tab and enable Run this program as an administrator
      go to the Compatibility tab and enable Run this program as an administrator
    3. Right-click on the application executable (the one that is triggering the error) and repeat the same procedure: Compatibility > Run this program as an administrator > Apply.
    4. Run the application and see if the error message is resolved.

    Method 3: Reinstalling Java

    In some cases, the error is triggered because Java might not be installed properly or its installation might have been corrupted over time. Therefore, in this step, we will be reinstalling Java after uninstalling it completely. For that:

    1. Press Windows key + R to open up the Run prompt and type in “Appwiz.cpl”.
      Type “appwiz.cpl” into the Run dialog and press Enter
    2. Press “Enter” and the Programs and Features screen will open up.
    3. At the Programs and Features screen, scroll through the installed application list until you find Java.
      Checking the Programs and features screen
    4. Right-click on it and select “Uninstall” to remove it completely from the system
    5. First, delete the primary Java installation and later you should also remove all other Java installations such as updates and other versions.
    6. After uninstalling all installation, restart your computer.
    7. After booting up, visit this link and download the latest version of JRE.
    8. Check to see if the issue persists.
    9. If the error still persists, download and install the latest version of JDK from here.
      Note: If you are already using JDK, try changing its versions or uninstalling the JRE that has been installed along with it.
    10. Verify if the issue still exists.

    Method 4: Fixing Errors With Code

    There are different reasons behind this error and some of them include if you have some particular errors with your code. We will highlight some below.

    • Remove Hyphen: Some users noted that the error was fixed by changing the double hyphen “–” to a single one “-” in their code. For example:
      Change the code
      “sony@sony-VPCEH25EN:~$ java –version
      Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
      Unrecognized option: –version
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.”
      To
      “sony@sony-VPCEH25EN:~$ java -version
      Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
      Unrecognized option: –version
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.”
    • Also, Try removing the following line from your argument
      -Djava.endorsed.dirs=”C:Program FilesApache Software FoundationTomcat 8.5endorsed”
    • Open your eclipse.ini file and make sure that you add the “-vm” entry above the vm args otherwise, JVM V6 will be selected in env vars.
    • If on Ubuntu, you should know that Java 8 is the only version that is supported. Therefore, using the third method. Uninstall Java, and install the previous version.

    Method 5: Editing Eclipse.ini File

    We can also tweak things inside the Eclipes.ini File to get rid of this issue. There might be a couple of issues with its configuration that need to be addressed therefore, we have divided it into separate issues. Follow the one which suits your scenario the best.

    Lowering Memory Use

    1. Open the Eclipse.ini file inside the Eclipse folder with notepad.
    2. Find the line similar to “-Xmx256m” (It might be -Xmx1024m or -Xmx 512m).
    3. Now change the default value to a more reasonable figure depending upon the RAM installed on your computer and add the version number to it as well. For Example:
      -Xmx512m
      -Dosgi.requiredJavaVersion=1.6
      OR
      -Xmx512m
      -Dosgi.requiredJavaVersion=1.7
      OR
      -Xmx512m
      -Dosgi.requiredJavaVersion=1.8
    4. Also, try removing the “256m” value from the “-launcher.XXMaxPermSize” line.
    5. Check to see if the issue persists.

    Tinkering Around

    1. Try to remove the following lines from your file.
      -vm P:Programsjdk1.6bin
    2. Also, change the following lines.
      set -Dosgi.requiredJavaVersion=1.5
      TO
      set -Dosgi.requiredJavaVersion=1.6
    3. Also, try adding the following line above “-vmargs!” line.
      -vm C:Program Files (x86)Javajre6binjavaw.exe
    4. Also, point to JVM.dll using the following line.
      -vm
      C:Program FilesJavajre7binclientjvm.dll
    5. Open the Eclipse file and replace “-vmargs” with the path of javaw.exe. For Example:
      -startup
      plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
      --launcher.library
      plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
      -product
      com.android.ide.eclipse.adt.package.product
      --launcher.XXMaxPermSize
      256M
      -showsplash
      com.android.ide.eclipse.adt.package.product
      --launcher.XXMaxPermSize
      256m
      --launcher.defaultAction
      openFile
      **-vm “c:Program FilesJavajdk1.7.0_07binjavaw.exe”** 
      -Dosgi.requiredJavaVersion=1.6
      -Xms40m
      -Xmx768m
      -Declipse.buildId=v21.1.0-569685
    6. Also, you can place the following line at the end and check if that works.
      -vmargs
      -Xms40m
      -Xmx512m
      -XX:MaxPermSize=256m
    7. Furthermore, try removing the following lines from the eclipse.ini and check if that works.
      -XX:+UseStringDeduplication
      -XX:+UseG1GC
    8. You can also try removing the eclipse.ini file if the issue still persists as that has reportedly fixed the issue for some but remember to back it up first just in case you need it. Also, try closing all the power-hungry applications before starting Java to make sure proper resources are available.

    Checking for JDK Corruption

    1. Press “Windows” + “R” to open the Run prompt and type in “cmd”.
    2. Type in the following command and check if that gives an error.
      c:> java -version
    3. If it does give an error, reinstall the JDK completely.

    Photo of Kevin Arrows

    Kevin Arrows

    Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

    Понравилась статья? Поделить с друзьями:

    Читайте также:

  • Error a culpa vacat seneca
  • Error 999999 аркгис
  • Error 9999 scilab
  • Error 999 что это
  • Error 999 sans

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии