Java could not create virtual machine and other errors - java

My eclipse won't start since a few days. If I manage to get one error message at start to go away, it will be another new one, or another that I thought I'd already fixed. I do not know what exactly I've done so far, but I'll summarize as far as I remember. One thing you should know: it was very much.
I tried to:
1. Setting the -Xms[WXYZ] variable to another values, like 256M, 512M, 1024M and 2048M in the
- eclipse.ini
- environment variables
2. Added in eclipse.ini before -vmargs
- -vm [absolute path to my jdk\bin\javaw.exe]
- -vm [absolute path to my jre\bin\server\jvm.dll]
3. Changed environment variables
- I don't know anymore what I've done there
4. At some point I tried something with the JAVA_HOME environment variable, but it does not helped at all.
I think that I've done so far all of these imaginable combinations.
I've deleted eclipse and reinstalled JRE and JDK, I think I've got nothing left.
Here are all of this pictures on imgur itself (because I can't post images).
It were a great help if anyone could help me with that problem.
Edit: The current error message is:
Failed to create the Java Virtual Machine.
Edit 02: Changed system variable _JAVA_OPTIONS from value in picture to -Xms512M
Edit 03: If i start eclipse with
[path to eclipse]\eclipse -vm C:\Program Files\Java\jre1.8.0_202\bin\javaw.exe it stated that a runtime environment or development kit has to be available in order to run eclipse. It give me just C:\Program as location. However, if I take the absolute path and write it into the eclipse.ini, i get the same error message (Failed to create the Java Virtual Machine.)

if possible remove -vm P:\Programs\jdk1.6\bin line
more details in here Eclipse error: 'Failed to create the Java Virtual Machine'

Open the Control Panel
■ Go to System
■ Go to Advanced Systems Properties
■ Then Environment Variables
■ In System Variables, click Add
■ New Variable Name: _JAVA_OPTIONS
■ New Variable Value: -Xmx512M
■ Click OK
That's it, your Java program should now be able to execute properly.
For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.
■ Xmx sets the maximum heap memory size
■ Xms sets the minimum heap memory size
See http://www.jafaloo.com/2011/10/30/java-xmx-memory-settings/ for more details on Java Heap memory size and parameters.

I've done it.
The temporary newest Version of eclipse (2019-03) does NOT match with the newest Versions of JDK or JRE, as one of my lecturer told me.
So I head back to my favourite Version of eclipse; Luna. And I've got to delete all Java Version on my PC.
I have now Java 8 Update 202 on my PC. You can find it at this link, it is the jdk-8u201-windows-x64 (for Win10 64-bit) file.
JRE is included in this Version of Java.
Another zip`s of eclipse can be found at this link.
In my case, I had to configure the eclipse.ini file again:
C:\Program Files\Java\jdk1.8.0_201\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
I had to correct the -Dosgi.requiredJavaVersion=-Line and had to add the absolute path to my jvm.dll, as I had add the --add-modules=ALL-SYSTEM-line. I can't tell you if this is necessary.
You can check your Java Version via CMD-> java -version
Now I had to get to the system environment variables and had to change:
JAVA_OPTIONS to Value -Xms256m -Xms512m
JAVA_HOME to C:\Program Files\Java\jre1.8.0_202\bin
and had to add to the Path: C:\Program Files\Java\jdk1.8.0_201\bin and C:\Program Files\Java\jre1.8.0_202\bin
I could've set all [...]\jre1.8.0_202\bin[...] to [...]Java\jdk1.8.0_201\jre\bin, but I don't wanted anymore, I'm just happy to fixed it finally.

I had a similar problem on Windows 10. I upgraded my JDK to version 8 update 211 and added the following line to eclipse.ini just before the line containing -vmargs:
-vm
C:/Program Files/Java/jdk1.8.0_211/bin/javaw.exe
It resolved the problem. Please consider using forward slash i.e. / instead of backslash.

Related

IntelliJ - Can't start - "JAVA_HOME does not point to a valid JVM installation"

For every other StackOverflow question that's been asked about this, here, here, and here, I've followed all the steps to resolve this issue, and none have worked.
When launching IntelliJ IDEA 64-bit on my 64-bit Windows 7 machine, I encounter the following error:
The environment variable JAVA_HOME (with the value of "C:\Program Files\Java\jdk1.8.0_74")
does not point to a valid JVM installation.
However, the file path does exist:
And in my Environment Variables, I have set JAVA_HOME to that location:
I've tinkered around with putting it in my User variables instead of the System and vice-versa, and tried putting it in both. It didn't work with the Java 7 JDK I had originally, so I just downloaded the Java 8 JDK and tried it - no dice.
I also restarted my computer, and CMD can use java and javac with no problem at all:
Any help on how I could resolve this? My last resort is uninstalling and reinstalling IntelliJ, which I may have to do.
In my case, the issue was that JAVA_HOME was pointing to a path upto /bin folder (C:\Program Files (x86)\Java\jdk1.8.0_91\bin\) - while Eclipse accepts this, IntelliJ does not.
Updating to JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_91 resolved the issue.
The java and javac executables are using the PATH environment variable, while intelliJ is using JAVA_HOME variable. Remove the additional quotation marks in your JAVA_HOME value.
It might shows that your path to the jdk installation directory is hard coded in the PATH, rather then using %JAVA_HOME%.
The problem will almost certainly be with the quotation marks around your JAVA_HOME path. Remove those and see if it works. If not, then I would recommend only putting your JDK installations under the root and with no spaces in them. I tend to put them in C:\JDK\1.8.0_65, etc. It makes referencing them far easier and you don't have to worry about quotation marks to protect spaces like you do with "Program Files".
I faced the same issue.. My mistake was I was taking the path till /bin/ and putting ; at last.
Correct is - JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
no /bin/ no ';'
Had the same issues opening PHPSTORM from command line.
Solution was to download jdk version 8 x86(32bit). Edit settings in Environment Variables by setting JAVA_HOME path in user variables for... to C:\Program Files (x86)\Java\jdk1.8.0_221
Open a CMD window, and enter:
echo %JAVA_HOME%
Verify the result is indeed the path entered your JAVA_HOME variable,
i.e. C:\Program Files\Java\jdk1.8.0_74.
In my case, a space was slipped in, that was not visible in the
Envrironment Variables window.
My problem was adding 2 path in JAVA_HOME variable (I had added x64 jdk path with x86 jdk and my android studio needed just the x86 one. I deleted the x64 path and it has just worked :)
The problem I had seemed to be due to attempting to launch idea.exe rather than idea64.exe - when I moved to the 64 one then it worked.
Since this question appeared in my google search, and none of the aforementioned answers worked for me - here is my resolution.
What worked for me was changing \ to / in path.
So in my case it was:
C:/Program Files/Java/jdk-11.0.11/ :)
You can also change the installation of OpenJDK (if you still have the installer packages) and add the JAVA_HOME variable (you have to enable it), afterwards just click through the installation until it is finished.

Oracle SQL Developer: Unable to find a JVM

I'm trying to open Oracle SQL Developer on my Windows7 64-bit.
When I tried to open SQL Developer it asked for java.exe path and I gave C:\Java\jdk1.6.0_34\jre\bin\java.exe
I got an error from Oracle SQL Developer saying: Unable to find a Java Virtual Machine. To point to a location of a JVM. Please refer to oracle9i jdeveloper install guide (jdev install.html)
Any clue on how to fix this?
Another Solution:
This worked for me several times. Install JDK7 and point to location of jdk7\jre\bin\java.exe
Probably this is you are looking for (from this post):
Oracle SQL developer is NOT support on 64 bits JDK. To solve it,
install a 32 bits / x86 JDK and update your SQL developer config file,
so that it points to the 32 bits JDK.
Fix it! Edit the “sqldeveloper.conf“, which can be found under
“{ORACLE_HOME}\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf“, make
sure “SetJavaHome” is point to your 32 bits JDK.
Update:
Based on #FGreg answer below, in the Sql Developer version 4.XXX you can do it in user-specific config file:
Go to Properties -> Help -> About
Add / Change SetJavaHome to your path (for example - C:\Program Files (x86)\Java\jdk1.7.0_03) - this will override the setting in sqldeveloper.conf
Update 2: Based on #krm answer below, if your SQL Developer and JDK "bits" versions are not same, you can try to set the value of SetJavaHome property in product.conf
SetJavaHome C:\Program Files\Java\jdk1.7.0_80
The product.conf file is in my case located in the following directory:
C:\Users\username\AppData\Roaming\sqldeveloper\1.0.0.0.0
I just installed SQL Developer 4.0.0.13 and the SetJavaHome can now be overridden by a user-specific configuration file (not sure if this is new to 4.0.0.13 or not).
The location of this user-specific configuration file can be seen in the user.conf property under 'Help -> About' on the 'Properties' tab. For example, mine was set to:
C:\Users\username\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf
On Windows 7.
The first section of this file is used to set the JDK that SQLDeveloper should use:
#
# By default, the product launcher will search for a JDK to use, and if none
# can be found, it will ask for the location of a JDK and store its location
# in this file. If a particular JDK should be used instead, uncomment the
# line below and set the path to your preferred JDK.
#
SetJavaHome C:\Program Files (x86)\Java\jdk1.7.0_03
This setting overrides the setting in sqldeveloper.conf
The solution that worked for me:
If you have Sqldeveloper with java incorporated, you can use the \sqldeveloper\bin\sqldeveloper.bat to launch sqldeveloper as told here.
Version 1.5 is very, very old.
In the latest builds, we support 32 and 64 bit JDKs. In version 4.0, we find the JDK for you on Windows. If the software can't find it, it prompts for that path.
That path would look something like this
C:\Java\jdk1.7.0_45
You can read more about this here.
“C:\Users\admin\Downloads\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf” is misleading, it’s not the file which sets the Java Home variable. The actually file used is”%AppData%\sqldeveloper{PRODUCT_VERSION}\product.conf” [in my case it is "%AppData%\sqldeveloper\1.0.0.0.0\product.conf"]
The secret is you need to copy msvcr100.dll to the path where the installation says msvcr100.dll is missing (dialog box) and then try to install the sql developer.
For me I had to create bin folder in
C:\sqldeveloper\jdk\bin
and Copy msvcr100.dll to it.
If still not working! Try this!
You might also need to change the config file settings found in
C:\sqldeveloper\sqldeveloper\bin
Download and install 32 bit JDK (Windows) and set the path in config file as
SetJavaHome C:/Program Files (x86)/Java/jdk1.7.0_01
There is another route of failure, besides the version of Java you are running: You could be running out of Heap/RAM
If you had a once working version of SQLDeveloper, and you are starting to see the screenshot referenced in the original post, then you can try to adjust the amount of space SQLDeveloper requests when starting up.
Edit the file:
/ide/bin/ide.conf
Edit the line that specifies the max ram to use: AddVMOption -Xmx, reducing the size. For example I changed my file to have the following lines, which solved the issue.
#AddVMOption -Xmx640M # Original Value
AddVMOption -Xmx256M # New Value
If you have a 64-bit version of SQL Developer, but for some reason your default JDK is a 32-bit JDK (e.g. if you develop an Eclipse RCP application which requires a 32-bit JDK), then you have to set the value of the SetJavaHome property in the product.conf file to a 64-bit version of JDK in order to run the SQL Developer.
For example:
SetJavaHome C:\Program Files\Java\jdk1.7.0_80
The product.conf file is in my case located in the following directory:
C:\Users\username\AppData\Roaming\sqldeveloper\1.0.0.0.0
The solution described above worked in my case. The solutions of #evgenyl and #FGreg did not work in my case.
The Oracle SQL developer is not supported by the 64bit JDK.
To resolve this issue:
Install a 32bit JDK (x86)
Update your SQL developer config file (It should now point to the new 32bit JDK).
Edit the sqldeveloper.conf, which can be found under {ORACLE_HOME}\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
Make sure SetJavaHome is pointing to your 32bit JDK.
For example:
SetJavaHome C:\Program Files (x86) \Java\jdk1.6.0_13
This is known to happen even if there are some syntactical errors in your heap space setting in the sqldeveloper.conf.
If you have defined the heap space in any of the wrong ways mentioned here,
it still will show the same error when you launch it.
EDIT :
The correct way to set your heap size parameters would be something like this:
AddVMOption -XX:MaxPermSize=256M
AddVMOption -Xms256M
AddVMOption -Xmx768M
I also had the same problem after installing 32 bit version of java it solved.

Where does Eclipse default to look for the JDK/JRE to use?

I have four or five difference java installations on my Linux computer. I have set the JAVA_HOME in the bash_profile and bashrc to point to the latest version but whenever I install eclipse it finds a really old version that was installed and ignores the $JAVA_HOME. Is there another system variable it's looking at to pick that one? How do I fix this?
When launching, Eclipse looks for a JVM first in a jre/ directory directly below the locaiton of the eclipse executable. If that isn't found, it will consult the eclipse.ini file. If there's no -vm argument in eclipse.ini, it will look on the system $PATH environment variable to find a java executable. As you probably know, the command "which java" will show you what java executable is found first on your $PATH.
This is all described in these pages:
http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM
http://wiki.eclipse.org/Equinox_Launcher#Finding_a_VM.2C_Using_JNI_Invocation_or_Executing_Java
But you should take note that the overwhelmingly recommended way to get Eclipse to use a specific JVM is to specify it in eclipse.ini as described here.
In eclipse.ini add :
-vm
%Path to java exec%
I don't remember if it should be the first argument, but add it first just to make sure. The file is located in your eclipse installation folder.
To explicitly specify a JVM of your choice, you can use the -vm command line argument:
eclipse -vm c:\jre\bin\javaw.exe ''start Java by executing the specified java executable
eclipse -vm c:\jre\bin\client\jvm.dll ''start Java by loading the jvm in the eclipse process
More information here .
As mentioned in Eclipse official FAQ : Eclipse DOES NOT consult the JAVA_HOME environment variable.

Eclipse will not launch on my Windows 7 system, JRE not found error

When I launch eclipse, i immediately get the following error:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must
be available in order to run Eclipse. No Java virtual machine was
found after searching the following locations: C:\Program
Files\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH
It appears that it can't read the ini file, or the actual java Path System variable.
Following something that I have read on the web, I have created an eclipse.ini file with the following contents:
-vm
c:\program files\java\jre7\bin\javaw.exe
This was supposed to obviate mucking about in the PATH.
I am running on Windows 7, sp1.
Any thoughts and comments are appreciated!
Regards,
Steve O'Sullivan
Create an Environmental Variable PATH with value as path to ur jdkbin folder
While the PATH variable does work, best practice is to put it in eclipse.ini because that will allow you to quickly change what JRE you are working with. That being said, there are some quirky issues as far as placement and syntax when it comes to eclipse.ini.
- The -vm option and its value (the path) must be on separate lines.
- The value must be the full absolute path to the Java executable, not just to the Java home directory.
- The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
Hope this helps.
try placing the path in between quotations like "c:\program files\java\jre7\bin\javaw"

A JRE or JDK must be available in order to run Eclipse. No JVM was found after searching the following locations

Eclipse is unable to open, have used eclipse before and has open before without a problem. Now I keep getting the following error message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
Have gotten eclipse to open and work on projects before and won't open.
Here is a screen shot of what I keep getting:
You can explicitly tell Eclipse where to find it. Open eclipse.ini and add the following lines to the top of the file:
-vm
/absolute/path/to/jre6/bin
Update: I just nailed down the root cause on my own Windows machine. The GlassFish installer complained with exactly the same error message and after digging in GlassFish forums, the cause was clear: a corrupt JRE install on a Windows machine. My JRE came along with the JDK and the Java 6 JDK installer didn't install the JRE properly somehow. A DLL file was missing in JDK's JRE installation. After I reinstalled the standalone JRE from http://java.com, overwriting the old one, the GlassFish installer continued and also Eclipse was able to start flawlessly without those two lines in eclipse.ini.
I got this problem because i uninstalled the jdk version 13 and reinstall the jdk version 8
Even though i have updated the path variables eclipse still pick the old configuration.
You need to edit the eclipse.ini file which is in your folder where eclipse.exe is placed.
Just update this file with the latest path so eclipse can pick it up
It usually is because:
you indicated the wrong jvm path in your -vm argument: see this SO question for an concrete example.
the eclipse.ini got corrupted somehow (if it hasn't been modified, this isn't it, but if setting a jvm path doesn't work, ... I would replace the eclipse.ini by one coming from a fresh installation just to be sure)
the java which eclipse search by default is no longer accessible (because the $PATH is no longer up-to-date)
More details on the wiki page "Finding a VM, Using JNI Invocation or Executing Java"
No -vm specified
When no -vm is specified, the launcher looks for a virtual machine first in a jre directory in the root of eclipse and then on the search path.
If java is found in either location, then we look for a jvm shared library (jvm.dll on window, libjvm.so on *nix platforms) relative to that java executable.
If a jvm shared library is found we load it and use the JNI invocation api to start the vm.
If no jvm shared library is found, we exec the java launcher to start the vm in a new process.
As mentioned in "FAQ How do I run Eclipse?":
Eclipse DOES NOT consult the JAVA_HOME environment variable.
So I would check your $PATH, starting by n new shell sesion (whatever your OS is), typing 'java -version' to see if it still returns anything.
Copy javaw.exe from C:\Program Files\Java\jre1.8(or)1.6(or)1.7\bin
and paste it inside Eclipse folder
where eclipse.exe is there. That's all.
Here is how I fixed mine:
find the location where your jre is installed. in my case, it was located at C:\Program Files\Java\jdk1.7.0_10
copy the jre folder and paste it where your eclipse files are located (where eclipse.exe is located).
when you download eclipse, you get a .zip package containing eclipse.exe and all the other files needed to run eclipse but it is missing the jre files. so all you need to do is to find where jre folder is located on your hard drive and add it to the rest of the eclipse package.
I had the same problem and the issue was that I had a 32 bit version of Eclipse running on my 64 bit machine and it wanted the 32 bit version of JRE.
I changed Program Files to Program Files (x86) in the eclipse.ini file like so:
-VM
C:Program Files (x86)\Java\jre6\bin
and that solved the problem.
You may want to just install the 64 bit Eclipse, but this will take care of the error.
Did you install Java via the java.com web browser auto install? If so, then that's your problem! You need to to the "manual" install: http://www.java.com/en/download/manual.jsp
It's just a matter of having the correct match of 32-bit Eclipse/32-bit Java or 64-bit Eclipse/64-bit Java. Many 64-bit Windows have 32-bit browsers and the latter is the version of Java that the auto-installer will provide - not what the 64-bit Eclipse wants.
Make sure the install path of JDK is in your Path variable in Windows.
adding -vm C:/Program Files/Java/jdk1.6.0_29/bin/javaw.exe to the .ini file helped me.
Is so simple,only add your java path for example:
C:\Program Files\Java\jdk1.8.0_121\bin
in PATH system variable
I have faced the similar issue earlier with Eclipse and STS IDE'S
Please check weather JDK/JRE is available or not in your machine. If not please install JDK and setup the environment variables.
Even after step 1, if you are still facing the issue then it's time to set the vm argument in eclipse.ini or sts.ini in the following way.
-vm
C:Program Files (x86)\Java\jre8\bin
I also had same problem when developing android applications using eclipse IDE.
I solved it by removing all the java installations (I had java 6 and 7 both) and re-install only jdk 7.
I got this fixed by doing the below steps,
1)
The eclipse finds the JAVA executables from 'C:\ProgramData\Oracle\Java\javapath'
The folder structure will contain shortcuts to the below executables,
i. java.exe
ii. javaw.exe
iii. javaws.exe
For me the executable paths were pointing to my (ProgramFiles(x84)) folder location
I corrected it to Program Files path(64 bit) and the issue got resolved
Please find the screenshot for the same.
Just to add on top of other answers:
Windows Users: You can give the PATH to JRE in eclipse.ini separated by '/' or '\'. It doesn't matter. Eclipse will pick it anyway. For example, in my windows system, either of the paths is fine (after -vm of course):
C:/Program Files/Java/jre1.8.0_181/bin
or C:\Program Files\Java\jre1.8.0_181\bin
Change the vm value in eclipse.ini file with the correct path to your JDK something like this,
-vm /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home/bin
Path to eclipse.ini looks to me something like this,
/Users/tomcat/eclipse/jee-2018-09/Eclipse.app/Contents/Eclipse
This sometimes happen if you remove Java from your path variables.
To set the PATH variable again, add the full path of the jdk\bin directory to the PATH variable. Typically, the full path is:
C:\Program Files\Java\jdk-11\bin
To set the PATH variable on Microsoft Windows:
Select Control Panel and then System.
Click Advanced and then Environment Variables.
Add the location of the bin folder of the JDK installation to the
PATH variable in system variables.
I had this problem too on a win7 machine.
I wanted to update the jre with a jdk. So i deleted the jre folder and downloaded and unzipped the new jdk.
The issue was i manually deleted the jre folder, when instead i should've uninstalled it. This leaves a bunch of registry entries that still point to the old jre. Somehow eclipse still wants to use the old jre.
I couldn't uninstall the old java vm, i kept getting this error:
Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor
So i had to use this MS utility to fix the uninstall:
http://support.microsoft.com/kb/2438651/
Then i had to install again the vm. I installed to the same location the original one was at, to avoid losing another hour! After that eclipse started correctly.
Julio
I just had this problem and fixed it this way. I noticed the error message has jre in it not jre6 or jre7, so i copied jre6 from program files to eclipse folder then renamed it from jre6 to jre, then it worked :p
Newb move on my part, but I had installed just the JRE instead of JDK. Installed JDK and my problem went immediately away.
I had this problem and it was due to my windows machine playing up. I went into control panel -> system -> advanced - environment variables.
I edited the PATH variable (which was already correctly set up), changed NOTHING, clicked OK to come back out of the screens.
Then eclipse worked. No idea why, except because windows. Hopefully this may help someone.
I had this issue; I fixed it by going to
Computer-->Properties-->Advanced Settings-->Environmental Variables
In the System Variables find the variable named PATH.
-->Select Edit
-->At the very end of the Path Variable, put a ";" then add your path of your JDK and put \bin\ at the end
Should be fixed.
Example:
System Variable-
C:\Program Files (x86)\Common Files.......HP\LeanFT\bin
JDK path-
C:\Programs Files\Java\jre1.8.0_121
Final Path -
C:\Program Files (x86)\Common Files.......HP\LeanFT\bin;C:\Programs Files\Java\jre1.8.0_121\bin\
Sources:
https://www.java.com/en/download/help/path.xml
Its simple.
JDK bin directory or JRE bin directory should be in path variable
Example :
Java Installed directory:
Assume your java installed in 'C:\Program Files\java\Jdk1.8.0_144' directory
Now you can find bin directory in 'C:\Program Files\java\Jdk1.8.0_144\bin'
Navigate to user's environment variable
Control Panel --> User Accounts --> User Accounts --> Change my environment variables
In popup click Path under User variables for section
Click Edit... button and another popup will appear
Click New button and enter C:\Program Files\java\Jdk1.8.0_144\bin
Click OK button and again OK button in Environment variables popup.
Now you can open your eclipse without error
I found a solution wherein the Eclipse.ini the location was the old version of Java, and after updating the new version of java the location of
-vm
C:\Program Files\Java\jre1.8.0_201\bin
was same so I had to change the directory to my new version of Java.
So solution is to just open the most updated Java version and copying its directory path and replacing it in the Eclipse.ini file.
Moderately future proof example for Linux-like systems. Assuming javac installed and on your path.
./eclipse -vm dirname $(readlink -f $(which javac))
This will find the directory where javac is installed, and pass as vm argument to eclipse.
If on Linux (ex: Ubuntu 18), try installing (or reinstalling in your case?) default-jre, as follows:
sudo apt update
sudo apt install default-jre
I had the same error when just trying to run the Eclipse installer (./eclipse-inst) on a fresh Eclipse download just now, and the installer wouldn't even run! Installing default-jre solved it!
Source:
https://linux4one.com/how-to-install-eclipse-ide-on-ubuntu-18-04/
In my case I had edited the eclipse.ini for a different purpose to include -vm parameter. That was causing the failure. I removed the -vm and following line where I had included \bin and that fixed the problem.
I got ERROR:
RESOLUTION :
in file eclipse.ini at below location :
make change as :
-vm
C:/Program Files/Java/jdk1.8.0_251/jre/bin/server/jvm.dll
Restart eclipse and error will be resolved
C:\Program Files\Java\jre1.8.0_221\bin
worked for me

Categories

Resources