Меню

Ошибка failed to find java vm

I’ve always used Google2SRT, a light software to download subtitles from Youtube. Now it no longer works: «Startup Error: Failed to find Java VM».

I have Java installed, I have Netbeans installed and working, I have never had any Java related issues.

I’ve tried reinstalling everything, I’ve tried creating a JAVA_HOME and JRE_HOME System variable and pointing it to «C:Program FilesJavajre1.8.0_191» according to this tutorial: https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html

It felt odd because I didn’t even had this environment variable previously. I have no idea what’s the issue.

I’ve tried uninstalling Netbeans and other programming tools as well.

I’m on Windows 7 x64.


java -debug -version > "%userprofile%desktopjavaDebug.log" 2>&1 returns:

java version «1.8.0_191»

Java(TM) SE Runtime Environment (build 1.8.0_191-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


I have also tried setting maximum heap size in _JAVA_OPTIONS

System Variables

I have just installed Wuala, some kind of Dropbox equivalent, and, when I start it, a window appear telling «Failed to find Java VM«.

I already have a Java VM installed, but I have checked again, and the Java VM is installed and be launched from the command line.

asked Jun 2, 2012 at 10:08

tofcoder's user avatar

Wuala requires the following line to be present in the wuala.ini file (on Windows 7 is located here C:Users<USERNAME>AppDataRoamingWuala):

vm.location=C:Program Files (x86)Javajre1.6.0binclientjvm.dll

Note the above path is applicable to Windows 7 64-bit, for JRE 6 32-bit.
Also note that Wuala does not start when using the server dll of the JRE 7 64-bit.

HackToHell's user avatar

HackToHell

6,3083 gold badges37 silver badges62 bronze badges

answered Aug 10, 2012 at 6:34

coz's user avatar

cozcoz

2051 silver badge7 bronze badges

1

Latest versions of Wuala also show this message but for different reason. Wuala installer will install 32-bit Java VM if it is not present on the system. Sometime later, the 32-bit Java VM gets uninstalled for some reason, perhaps when some update removes older insecure VM and replaces it with new one, which happens to be 64-bit. Wuala then stops working.

The solution is to install both 32-bit and 64-bit Java VM side by side by downloading offline 32-bit installer from java.com. This is a supported configuration, although it’s not the default. Reinstalling Wuala does the job too as it triggers installation of the right Java VM.

answered Mar 25, 2015 at 19:08

Robert Važan's user avatar

Problem

After Planning Contributor 10.2 installation, you lauch your contributor grid. It works on customer desktop, not locally on the server.
You get the following error : Failed to find JAVA VM.

Symptom

Unable to get your contributor grid without Failed to find JAVA VM error

Cause

Path to JVM does not exist on your server

Resolving The Problem

Add the JVM path in your Windows path.

[{«Product»:{«code»:»SSPN2D»,»label»:»Cognos Planning»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»Contributor»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»10.2″,»Edition»:»All Editions»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]

Содержание

  1. Как исправить ошибку Windows 2 при загрузке Java VM
  2. 3 решения для исправления ошибки Windows 2 Java VM
  3. Шаги по исправлению ошибки Windows 2
  4. 1. Обновите Java
  5. 2. Удалите системную переменную Javapath
  6. 3. Откройте установщик программного обеспечения через командную строку
  7. Failed to find java vm windows
  8. Сообщение об ошибке #1: не удалось создать виртуальную машину java.
  9. Сообщение об ошибке #2: ошибка при открытии раздела реестра.
  10. Сообщение об ошибке #3: Виртуальная машина java лаунчер не может найти основной класс: программа завершает работу
  11. Сообщение об ошибке #4: не удалось открыть jarфайл.
  12. Wuala error: “Failed to find Java VM” even when Java is installed
  13. 2 Answers 2
  14. Not the answer you’re looking for? Browse other questions tagged windows 64-bit wuala or ask your own question.
  15. Related
  16. Hot Network Questions
  17. Subscribe to RSS
  18. How to fix Windows error 2 while loading the Java VM
  19. 3 solutions to fix Windows error 2 Java VM
  20. Steps to fix Windows error 2
  21. 1. Update Java
  22. 2. Delete the Javapath System Variable
  23. 3. Open the Software Installer via the Command Prompt

Как исправить ошибку Windows 2 при загрузке Java VM

3 решения для исправления ошибки Windows 2 Java VM

  1. Обновить Java
  2. Удалите системную переменную Javapath
  3. Откройте установщик программного обеспечения через командную строку

Сообщение об ошибке « Windows error 2 при загрузке Java VM » появляется у некоторых пользователей при попытке установить программное обеспечение, которое использует Java Launcher Launch Anywhere. Следовательно, пользователи не могут установить программное обеспечение, когда появляется это сообщение об ошибке.

Это сообщение об ошибке стало всплывать для пользователей после выпуска версии Java VM 1.8.0_60. Если сообщение об ошибке Java VM « Windows error 2 » звучит знакомо, ознакомьтесь с некоторыми исправлениями, приведенными ниже.

Шаги по исправлению ошибки Windows 2

1. Обновите Java

Сначала убедитесь, что ваша версия Java обновлена. Если нет, обновите Java до последней версии. Так пользователи могут обновлять Java в Windows.

  • Пользователи могут проверить свои версии Java через панель управления Java. Чтобы открыть это, нажмите клавишу Windows + горячую клавишу R.
  • Войдите в «Панель управления» в разделе «Выполнить» и нажмите кнопку ОК .
  • Затем нажмите Java на панели управления, чтобы открыть окно ниже.

  • Нажмите кнопку О программе , чтобы открыть сведения о версии. Если требуется обновление, сначала удалите предыдущую версию Java.

  • Для этого введите «appwiz.cpl» в текстовом поле «Выполнить» и нажмите ОК . Откроется апплет «Программы и компоненты», показанный на снимке ниже.

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

– СВЯЗАННО: Как исправить ошибку Skype ‘Javascript требуется для входа’

2. Удалите системную переменную Javapath

Некоторые пользователи заявили на форумах, что они исправили ошибку « Windows error 2 », удалив путь к системной переменной Java. Так что это одно из лучших решений для ошибки Java VM. Следуйте приведенным ниже инструкциям, чтобы удалить путь к системной переменной Java.

  • Откройте Run, нажав клавишу Windows + R.
  • Введите “systempropertiesadvanced” в текстовое поле “Открыть” и нажмите кнопку ОК .
  • Выберите вкладку «Дополнительно», показанную ниже.

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

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

3. Откройте установщик программного обеспечения через командную строку

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

  • Нажмите сочетание клавиш Windows + X, чтобы открыть меню Windows 10 Win + X.
  • Нажмите Командная строка (администратор) , чтобы открыть окно CP от имени администратора.

  • Пользователи Windows 7 могут открыть подсказку, введя «Командная строка» в поле поиска меню «Пуск». Затем щелкните правой кнопкой мыши командную строку и выберите Запуск от имени администратора .
  • Затем введите команду LAX_VM в командной строке следующим образом: Installer_file.exe LAX_VM C: Program FilesJavajdk1.8.0_60binjava.exe. Затем нажмите клавишу возврата.

Обратите внимание, что приведенная выше команда LAX_VM является примером, который пользователям необходимо изменить, чтобы он точно совпадал с именами их файлов установщика и путями JDK. Синтаксис для приведенной выше команды подсказки: LAX_VM.

Таким образом, пользователям нужно будет как минимум изменить имя файла установщика. Некоторым пользователям также может потребоваться изменить путь к папке, если они установили JDK в пользовательский каталог. Однако C: Program FilesJavajdk1.8.0_60binjava.exe является каталогом JDK по умолчанию.

Таким образом, пользователи могут устранить ошибку Java VM в Windows. Пользователи также могут загрузить исправление для ошибки «ошибка Windows em 2 при загрузке виртуальной машины Java » на этой веб-странице.

Failed to find java vm windows

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

Функции JVM (Java Virtual Machine)

Виртуальная машина java отвечает за выделение памяти и сбор мусора, наряду с интерпретацией байт-кода в машинный код.

Среда выполнения Java (JRE) является обязательным для установки на вашем компьютере для некоторых приложений, чтобы работать должным образом. Основным компонентом JRE является виртуальная машина Java (JVM), которая помогает запускать Java-приложения. Java-файл, при компиляции, производит ‘.класс’ файл, а не исполняемый файл. Этот класс файл содержит байт-код java, который в jvm интерпретируется в машиночитаемые инструкции. Jvm — независит от платформы, поскольку он обеспечивает машинный интерфейс, который не зависит от базовой операционной системы и аппаратной архитектуры.

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

Сообщение об ошибке #1: не удалось создать виртуальную машину java.

Это сообщение об ошибке обычно возникает при попытке запуска Java-игр, таких как minecraft.

➦Откройте панель управления.

➦Зайти в систему.

➦Перейти к расширенным свойствам системы.

➦Нажмите кнопку ‘переменные среды’.

➦В системных переменных, нажмите кнопку ‘новый’.

➦Поставьте новое имя переменной: _JAVA_OPTIONS

➦Вбейте новое значение переменной: -Xmx512M

➦Нажмите кнопку ‘ОК’.

-Xmx/S-это параметр конфигурации, который управляет количеством памяти которое использует java.

  • Xmx — это максимальный размер памяти, которая может быть выделена.
  • Xms — это минимальный размер памяти, которая может быть выделена.

Сообщение об ошибке #2: ошибка при открытии раздела реестра.

Эта ошибка может возникнуть при работе с Java в командной строке.

➦Открываем папку WINDOWSsystem32.

➦Удаляем исполняемый файл java файлов, в том числе java.exe, javaw.exe и javaws.exe.

➦Далее переустанавливаем среду JRE.

Сообщение об ошибке #3: Виртуальная машина java лаунчер не может найти основной класс: программа завершает работу

➦Нажмите кнопку «Пуск» в главном меню.

➦В окне поиска введите «mrt» и нажмите клавишу Enter. Будет запущена утилита Windows под названием ‘Средство удаления вредоносных программ Microsoft Windows ‘.

➦Нажмите кнопку «Далее» и выберите «полное сканирование».

➦Перезагрузите компьютер после завершения сканирования.

➦Нажмите кнопку «Пуск» и запустить программу настройки системы, набрав команду «msconfig» в поле поиска.

➦ Перейдите на вкладку «запуска» и снимите галочку рядом с ‘WJView.exe’ и ‘javaw.exe’.

➦Перезагрузитесь при запросе.

Сообщение об ошибке #4: не удалось открыть jarфайл.

Эта ошибка может возникнуть при попытке открыть приложение.

➦Нажмите кнопку ‘Пуск’ и перейдите к ‘программам по умолчанию’.

➦Выберите «сопоставление типа файла или протокола программе’.

➦Нажмите на расширения (.jar) для просмотра программы, которая открывает его по умолчанию.

➦Нажмите кнопку «изменить программу» и выбрите программу по умолчанию «виртуальная машина java лаунчер».

➦Нажмите кнопку «закрыть» и проверьте, устранена ли проблема.

➦Если нет, попробуйте удалить и переустановить Java.

➦Если проблема не устранена, обратитесь в техническую поддержку приложения, которое дает вам ошибку.

Если вы столкнулись с еще какими-либо ошибками Java Virtual Machine напишите о них в комментариях, постараюсь помочь.

Wuala error: “Failed to find Java VM” even when Java is installed

I have just installed Wuala, some kind of Dropbox equivalent, and, when I start it, a window appear telling «Failed to find Java VM«.

I already have a Java VM installed, but I have checked again, and the Java VM is installed and be launched from the command line.

2 Answers 2

Wuala requires the following line to be present in the wuala.ini file (on Windows 7 is located here C:Users AppDataRoamingWuala ):

vm.location=C:Program Files (x86)Javajre1.6.0binclientjvm.dll

Note the above path is applicable to Windows 7 64-bit, for JRE 6 32-bit. Also note that Wuala does not start when using the server dll of the JRE 7 64-bit.

Latest versions of Wuala also show this message but for different reason. Wuala installer will install 32-bit Java VM if it is not present on the system. Sometime later, the 32-bit Java VM gets uninstalled for some reason, perhaps when some update removes older insecure VM and replaces it with new one, which happens to be 64-bit. Wuala then stops working.

The solution is to install both 32-bit and 64-bit Java VM side by side by downloading offline 32-bit installer from java.com. This is a supported configuration, although it’s not the default. Reinstalling Wuala does the job too as it triggers installation of the right Java VM.

Not the answer you’re looking for? Browse other questions tagged windows 64-bit wuala or ask your own question.

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

How to fix Windows error 2 while loading the Java VM

  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.

3 solutions to fix Windows error 2 Java VM

  1. Update Java
  2. Delete the Javapath System Variable
  3. Open the Software Installer via the Command Prompt

The “Windows error 2 while loading the Java VM” error message is one that pops up for some users when trying to install software that rely on the Launch Anywhere Java launcher. Consequently, the users can’t install the software when that error message pops up.

That error message started to pop up for users after the release of Java VM version 1.8.0_60. If the “Windows error 2” Java VM error message sounds familiar, check out some the fixes for it below.

Steps to fix Windows error 2

1. Update Java

First, check that your Java version is up to date. If not, update Java to the latest version. This is how users can update Java in Windows.

  • Users can check their Java versions via the Java Control Panel. To open that, press the Windows key + R hotkey.
  • Enter ‘Control Panel’ in Run, and click the OK button.
  • Then click Java in the Control Panel to open the window below.

  • Click the About button to open version details. If an update is required, uninstall the previous Java version first.

  • To do that, enter ‘appwiz.cpl’ in Run’s text box and clicking OK. That will open the Programs and Features applet shown in the snapshot directly below.

  • Enter ‘Java’ in the search box. Then select Java and click Uninstall to remove it.
  • Restart Windows after uninstalling Java.
  • Open the Java download page to get the latest version. Press the Agree and Start Free Download button to save the latest Java version to a folder.
  • Open the Java setup file to install the latest version.

2. Delete the Javapath System Variable

Some users have stated on forums that they’ve fixed the “Windows error 2” error by deleting a Java system variable path. So that’s one of the best resolutions for the Java VM error. Follow the guidelines below to delete the Java system variable path.

  • Open Run by pressing the Windows key + R.
  • Input ‘systempropertiesadvanced’ in the Open text box, and click the OK button.
  • Select the Advanced tab shown directly below.

  • Press the Environment Variables button, which opens the window shown directly below.

  • Select the javapath variable on that window.
  • Click the Delete button to erase the javapath variable.

3. Open the Software Installer via the Command Prompt

This is more of a workaround than a fix. Nevertheless, users have confirmed they can open the software’s installer via the Command Prompt. Users can open the Launch Anywhere installer via the Command Prompt as follows.

  • Press the Windows key + X keyboard shortcut to open Windows 10’s Win + X menu.
  • Click Command Prompt (Admin) to open the CP window as administrator.

  • Windows 7 users can open the Prompt by entering ‘Command Prompt’ in the Start menu search box. Then right-click Command Prompt and select Run as administrator.
  • Next, enter a LAX_VM command in the Prompt as follows: Installer_file.exe LAX_VM C:Program FilesJavajdk1.8.0_60binjava.exe. Then press the Return key.

Note that the LAX_VM command above is an example that users will need to modify so that it matches their exact installer file names and JDK paths. The syntax for the above Prompt command is: LAX_VM .

Thus, users will need to edit the installer file name at least. Some users might also need to adjust the folder path if they’ve installed JDK at a custom directory. However, C:Program FilesJavajdk1.8.0_60binjava.exe is the default JDK directory.

So that’s how users can resolve the Java VM error in Windows. Users can also download a hotfix patch for the “Windows error 2 while loading the Java VM” error at this webpage.

@govelogo

I saw the pop-up window with «Failed to find Java VM» while installing on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

  1. Failed to run platform init, exit code -2147483648.
    stdout: ————————————————————-

Any ideas? is this a java installation issue? (My java is version 7; but not installed via java installer)

Thanks!
David

@pkriens

jpm is looking for the vm in the windows registry. If it is not properly listed there, where should I look?

Kind regards,

On 2 jul. 2014, at 22:17, David Cao notifications@github.com wrote:

I saw the pop-up window with «Failed to find Java VM» while installing on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

Failed to run platform init, exit code -2147483648. stdout: ————————————————————-
Any ideas? is this a java installation issue? (My java is version 7; but not installed via java installer)

Thanks!
David


Reply to this email directly or view it on GitHub.

@govelogo

Hi Peter

Why can’t jpm use JAVA_HOME or JRE_HOME? But even I installed java 8 from
installer (on a win 7 64bit), jpm install exe still complains not finding
JVM. Cheers

thanks,
—David
On Jul 10, 2014 3:39 AM, «Peter Kriens» notifications@github.com wrote:

jpm is looking for the vm in the windows registry. If it is not properly
listed there, where should I look?

Kind regards,

Peter Kriens

On 2 jul. 2014, at 22:17, David Cao notifications@github.com wrote:

I saw the pop-up window with «Failed to find Java VM» while installing
on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

Failed to run platform init, exit code -2147483648. stdout:

Any ideas? is this a java installation issue? (My java is version 7; but
not installed via java installer)

Thanks!
David


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment)
.

@pkriens

Unfortunately I am too busy to investigate the windows issues at the moment (that is why it is not production yet 🙁 ) I’ve made a note and next time I am in the Windows part (which I am awfully bad at due to a dislike dating back to the eighties) I will take a deeper look.

Since this is open source … I am using winrun4j (http://winrun4j.sourceforge.net/) as the base for running Java on Windows, and the source code is here: https://github.com/bndtools/bnd/blob/master/biz.aQute.jpm/src/aQute/jpm/platform/Windows.java

If you have a patch I would be more than welcome to integrate it.

Kind regards,

On 10 jul. 2014, at 12:52, David Cao notifications@github.com wrote:

Hi Peter

Why can’t jpm use JAVA_HOME or JRE_HOME? But even I installed java 8 from
installer (on a win 7 64bit), jpm install exe still complains not finding
JVM. Cheers

thanks,
—David
On Jul 10, 2014 3:39 AM, «Peter Kriens» notifications@github.com wrote:

jpm is looking for the vm in the windows registry. If it is not properly
listed there, where should I look?

Kind regards,

Peter Kriens

On 2 jul. 2014, at 22:17, David Cao notifications@github.com wrote:

I saw the pop-up window with «Failed to find Java VM» while installing
on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

Failed to run platform init, exit code -2147483648. stdout:

Any ideas? is this a java installation issue? (My java is version 7; but
not installed via java installer)

Thanks!
David


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment)
.


Reply to this email directly or view it on GitHub.

@govelogo

I have got bnd from github. So I will move on. But if I need to come back
to jpm again, I will definitely try to get to the bottom of it. Cheers

thanks,
—David
On Jul 15, 2014 4:20 AM, «Peter Kriens» notifications@github.com wrote:

Unfortunately I am too busy to investigate the windows issues at the
moment (that is why it is not production yet 🙁 ) I’ve made a note and
next time I am in the Windows part (which I am awfully bad at due to a
dislike dating back to the eighties) I will take a deeper look.

Since this is open source … I am using winrun4j (
http://winrun4j.sourceforge.net/) as the base for running Java on
Windows, and the source code is here:
https://github.com/bndtools/bnd/blob/master/biz.aQute.jpm/src/aQute/jpm/platform/Windows.java

If you have a patch I would be more than welcome to integrate it.

Kind regards,

Peter Kriens

On 10 jul. 2014, at 12:52, David Cao notifications@github.com wrote:

Hi Peter

Why can’t jpm use JAVA_HOME or JRE_HOME? But even I installed java 8
from
installer (on a win 7 64bit), jpm install exe still complains not
finding
JVM. Cheers

thanks,
—David
On Jul 10, 2014 3:39 AM, «Peter Kriens» notifications@github.com
wrote:

jpm is looking for the vm in the windows registry. If it is not
properly
listed there, where should I look?

Kind regards,

Peter Kriens

On 2 jul. 2014, at 22:17, David Cao notifications@github.com wrote:

I saw the pop-up window with «Failed to find Java VM» while
installing
on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

Failed to run platform init, exit code -2147483648. stdout:

Any ideas? is this a java installation issue? (My java is version 7;
but
not installed via java installer)

Thanks!
David


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
<
https://github.com/jpm4j/jpm4j.installers/issues/1#issuecomment-48570243>
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment)
.

@pkriens

Thanks, any help would be greatly appreciated …

Kind regards,

On 15 jul. 2014, at 12:51, David Cao notifications@github.com wrote:

I have got bnd from github. So I will move on. But if I need to come back
to jpm again, I will definitely try to get to the bottom of it. Cheers

thanks,
—David
On Jul 15, 2014 4:20 AM, «Peter Kriens» notifications@github.com wrote:

Unfortunately I am too busy to investigate the windows issues at the
moment (that is why it is not production yet 🙁 ) I’ve made a note and
next time I am in the Windows part (which I am awfully bad at due to a
dislike dating back to the eighties) I will take a deeper look.

Since this is open source … I am using winrun4j (
http://winrun4j.sourceforge.net/) as the base for running Java on
Windows, and the source code is here:
https://github.com/bndtools/bnd/blob/master/biz.aQute.jpm/src/aQute/jpm/platform/Windows.java

If you have a patch I would be more than welcome to integrate it.

Kind regards,

Peter Kriens

On 10 jul. 2014, at 12:52, David Cao notifications@github.com wrote:

Hi Peter

Why can’t jpm use JAVA_HOME or JRE_HOME? But even I installed java 8
from
installer (on a win 7 64bit), jpm install exe still complains not
finding
JVM. Cheers

thanks,
—David
On Jul 10, 2014 3:39 AM, «Peter Kriens» notifications@github.com
wrote:

jpm is looking for the vm in the windows registry. If it is not
properly
listed there, where should I look?

Kind regards,

Peter Kriens

On 2 jul. 2014, at 22:17, David Cao notifications@github.com wrote:

I saw the pop-up window with «Failed to find Java VM» while
installing
on Win 7. Screen shot follows,

C:UsersmeDownloads>java -jar biz.aQute.jpm.run.jar -g init
post : C:JPM4Jbinjpm _postinstall
Home dir C:JPM4J
Bin dir C:JPM4Jbin
Error

Failed to run platform init, exit code -2147483648. stdout:

Any ideas? is this a java installation issue? (My java is version 7;
but
not installed via java installer)

Thanks!
David


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
<
https://github.com/jpm4j/jpm4j.installers/issues/1#issuecomment-48570243>
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment)
.


Reply to this email directly or view it on GitHub.

@AndyWu2015

winrun4j find jre in windows registry and if user doesn’t install jre or the configuration is wrong , the jpm will fail to install. So we can just install jre to fix this problem.

@pkriens

@AndyWu2015

@AndyWu2015

Hi @pkriens , I’ve finished a change in jpm (I know it is going to be removed , but I think it is a pretty good lib for command line development ), I drop winrun4j.exe on windows and make a bat file for wrapper launch jar file on windows , following is the sample content,

@echo off
java -DJPMREPO=C:UsersAdministrator.jpmwindowsrepo -cp «C:UsersAdministrator.jpmwindowsrepo2AAE465202E21AF3F2BC7E11DC813C48A107CAD6;C:UsersAdministrator.jpmwindowsreposervice.jar» aQute.jpm.main.Main %*

I don’t know why you choose winrun4j firstly , but I found the bat way works well also.
I do this post just ask your suggestion, are you ok with such solution ? or you’ve found some thing bad with the bat way , please share with us, thanks.

@pkriens

The jpm command line will remain in bnd. Winrun4j was used because it handles the security mess on Windows better.

@AndyWu2015

Glad to know that.
And thanks for the reply.

Ошибка «Не удается найти JVM в вашей системе (Exe4j_Java_Home)», как правило, возникает, когда пользователи пытаются установить DbVisualizer, при запуске исполняемого файла exe4j или при попытке запустить Minecraft (или другую игру или приложение, использующее среду Java).

В вашей системе не найден Jvm (exe4j_java_home)

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

Но если вы столкнулись с проблемой, связанной с сервером Openfire, это, скорее всего, связано с ошибкой, которая была устранена с помощью выпусков Java, более новых, чем Java 8 Update 161.

Примечание. Ниже описано, как исправить ошибку «Javac not распознана».

1. Установите совместимую версию DbVisualiser.

Как сообщают многие затронутые пользователи, эта проблема, скорее всего, возникает из-за несовместимой установки Java. Большинству затронутых пользователей удалось решить проблему, поняв, что они пытаются развернуть 32-версию DbVisualiser с 64-разрядной установкой Java (или наоборот).

Если этот сценарий применим, вы можете быстро устранить проблему, просто установив недостающую битовую версию установки Java. Вот краткое руководство по этому:

Примечание. Приведенное ниже руководство должно применяться независимо от используемой версии Windows.

  1. Посетите эту ссылку (Вот) и прокрутите вниз до раздела Windows. Как только вы попадете туда, нажмите на битовую версию, которая вам не хватает, чтобы начать загрузку. В зависимости от версии бита DbVisualiser, загрузите Windows Offline или Windows Offline (64-разрядная версия).Загрузка правильной версии среды Java

    Примечание. Windows Offline — это 32-разрядная версия из трех доступных вариантов.

  2. После завершения загрузки дважды щелкните исполняемый файл установки, а затем следуйте инструкциям на экране для завершения установки.Установка правильной среды Java
  3. После завершения установки закройте мастер установки и перезагрузите компьютер.
  4. При следующем запуске повторите действие, которое ранее вызывало ошибку, и посмотрите, решена ли теперь проблема.

Если эта процедура неприменима или не решает проблему, перейдите к следующему потенциальному исправлению ниже.

2. Исправление переменной среды Java

Как выясняется, ошибка «В вашей системе не найдена JVM (Exe4j_Java_Home)» также может возникать из-за неверной переменной среды Java. Это может произойти по разным причинам, но исправление всегда одинаково.

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

Вот краткое руководство по исправлению вашей переменной среды Java:

  1. Откройте проводник и перейдите к пути установки вашей среды Java. Если вы не установили его в произвольном месте, вы найдете его в следующих местах: C: Program Files Java * Java version * — 64-разрядная версия
    C: Program Files (x86) Java * Java версия * — 32-разрядная версия
  2. Как только вы прибудете в правильное местоположение, щелкните правой кнопкой мыши на панели навигации и выберите «Копировать адрес» из появившегося контекстного меню.Копирование адреса Java из правильного местоположения
  3. Когда в буфере обмена скопировано правильное расположение Java, нажмите клавиши Windows + R, чтобы открыть диалоговое окно «Выполнить». Затем введите «sysdm.cpl» в текстовом поле и нажмите Enter, чтобы открыть экран «Свойства системы».Введите «sysdm.cpl» и нажмите «Enter»
  4. Когда вы окажетесь в окне «Свойства системы», перейдите на вкладку «Дополнительно» и нажмите «Переменные среды».Перейдите на вкладку «Дополнительно» в «Свойствах системы» и нажмите «Переменные среды».Перейдите на вкладку «Дополнительно» в «Свойствах системы» и нажмите «Переменные среды».
  5. Когда вы находитесь в окне переменных среды, перейдите к системным переменным, выберите опцию «Путь» и нажмите кнопку «Изменить».Изменить переменную PathИзменить переменную Path
  6. В следующем окне найдите переменную среды, в которой упоминается Java. Когда вам удастся найти его, измените его значение на правильное местоположение, которое вы ранее определили на шаге 2.
  7. Перезагрузите компьютер и посмотрите, будет ли проблема решена при следующем запуске системы.

В случае, если та же проблема все еще возникает, перейдите к финальному возможному исправлению ниже.

3. Переустановите текущую среду Java

Если вы столкнулись с этой проблемой в отношении сервера Openfire, очень вероятно, что вы столкнулись с этой проблемой из-за ошибки, которая с тех пор была решена в последних выпусках Java. К счастью, Oracle удалось решить эту проблему с помощью сборок, более новых, чем Java 8 Update 161.

Если этот сценарий применим, вы можете устранить проблему, удалив всю среду Java + вспомогательные средства и повторно установив последнюю версию. Этот метод был подтвержден как успешный для многих затронутых пользователей, которые боролись с «В вашей системе не удалось найти JVM (Exe4j_Java_Home)».

Вот краткое руководство о том, что вам нужно сделать, чтобы переустановить текущую среду Java:

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

33 / 33 / 28

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

Сообщений: 333

1

10.05.2016, 12:27. Показов 1840. Ответов 2


Здравствуйте.
Установил виртуальную машину java с этого сайта http://www.java.com/ru/
Установщик сообщил, что программа успешно установлена, но java vm не работает. Например ее даже нет в списке плагинов firefox. java vm нужна для charles proxi, который также пишет — failed to find java vm.
Устанавливал версию jre-8u91-windows-x64.exe, удалял, переустанавливал, пробовал закрыть браузер и установить занова. Так же пробовал эту версию jre-8u40-windows-x64.exe, все равно не работает. Пробовал устанавливать с выключеным брэндмауэром.

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



0



Programming

Эксперт

94731 / 64177 / 26122

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

Сообщений: 116,782

10.05.2016, 12:27

Ответы с готовыми решениями:

Java Script работает в IE, но не работает в Opera
И так задача:
Есть форма, на форме поле ввода типа &quot;file&quot;. Нужно подменить кнопку &quot;обзор&quot;…

Не работает java
уважаемые, если кто знает, играю в ин-ете в 3-д снукер через java2 se v.1.4.2_19, которая…

Не работает Java
Всем доброго времени суток.
у меня ос Win XP x32 ни в одном браузере не работает java, почему?…

Не работает java
Качаю с офф.сайта. При установке выпадает вот эта ошибка: error could not create the java virtual…

2

Хитрая блондиночка $)

1470 / 985 / 399

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

Сообщений: 3,785

10.05.2016, 12:36

2

Цитата
Сообщение от Вовчек
Посмотреть сообщение

ее даже нет в списке плагинов firefox.

А разве JVM и плагин для браузера — одно и то же?



0



33 / 33 / 28

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

Сообщений: 333

10.05.2016, 12:52

 [ТС]

3

Hikari, не одно и тоже, в плагинах используется java tm. Вот на этой странице http://www.java.com/ru/downloa… rowser.xml есть совет, почему java vm может не работать в firefox, и это связано с отключенным плагином, которого у меня вообще нет.



0



IT_Exp

Эксперт

87844 / 49110 / 22898

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

Сообщений: 92,604

10.05.2016, 12:52

Помогаю со студенческими работами здесь

Не работает java
Дела вот в чём, устанавливал пол года назад себе на телефон ( nokia N82 ) Webmoney mobile. Потом…

Не работает Java
Здравствуйте!

Надеюсь, что обращаюсь в правльный раздел форума.

Пролблема в том, что что…

Не работает Java
Вообще не работает никакая версия 78
Устанавливается,воявляются иконки
в браузере на странице…

Java не работает на КПК.
поставил на PocketPC 2003 яву — Jeode. с нета апплеты загружает нормально, а те, которые сам…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

3

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

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

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка failed to fetch что это
  • Ошибка f75 vaillant как исправить ошибку