Eclipse | How to fix Version of the JVM is not suitable for this product. 2023

Eclipse | How to fix Version of the JVM is not suitable for this product. 2023


Eclipse | How to fix Version of the JVM is not suitable for this product. 2023

IMPORTANT NOTE: Update your JDK
This fix was tested in 2023 and it does still work

In this tutorial I’ll show youhow to fix this error in Eclipse: How to fix Version 1.8.0 of the JVM is not suitable for this product. Version: 11 or greater is required.
When you dowloaded Eclipse for Java Development.


My help Discord: https://discord.gg/56FAhCAJVd


Correction: I made a mistake in my narration of the video. When you typed in the -vm command you must paste the file path in a new line direclty beneath it. Otherwise it won’t work. So it’s not for astetic purpose, it must be done that way. Sorry for any confusion
so it should look like this


-vm
Your file path


Text version of this tutorial:

1. Go into the main directory of eclipse.
2. Open the eclipse.ini (you can use notepad)
3. Open the java directory (it should be located in the programs folder)
4. When you are in the java folder, open the folder jdk - the version of your jdk and then open the bin folder
5. Copy the filepath
6. Go back to the eclipse.ini and then find the line -vmargs
7. Type in -vm and press enter one time, then paste in the before copied filepath. (Caution you must put the file path in the new line, otherwise it won’t work, so it’s not for astetic purpose it must be done the way I showed in the video)
8. Add \javaw.exe to the filepath (it should look similar to this C:\Program Files\Java\jdk-15\bin\javaw.exe)
9. Save the file, and you are done.




Music:
Track 1: dj quads - it’s near
YouTube link:    • dj quads - it’s near  



These timestamps are just so my narrating error is easier to notice
0:00 - Normal Video
1:43 - You must paste the file path in a new line (narration mistake)
2:00 - Normal Video again


Content

0.48 -> let's say you just installed eclipse and also don't need the jdk for java
4.319 -> programming and you get this error message when trying to run eclipse
7.52 -> itself so basically what this error message is
10.48 -> saying that we got an outdated version of jvm
13.519 -> but if we just downloaded the latest version from the java website
16.96 -> that can't be true so basically what you're going to need to do to fix this
21.76 -> is you will need to go to the eclipse main directory so in my case this is on
26.64 -> local disk c then in program files and then we're
31.199 -> going to go to the eclipse folder then we want to start
36 -> the eclipse.ini so yeah we're just going to leave that
40.96 -> open here and we're going to go back to our folder
44.32 -> what you want to do next is go to your java directory so basically where you
48 -> got java installed so in my case this is again local disk c
53.039 -> program files and then down here on java so now you want to select the version of
58.8 -> jdk you installed so in my case this is jdk 15
63.68 -> so i'm gonna go right here and then we're gonna go into the bin folder
68.24 -> and the next thing we will do is just copy the program path
73.2 -> so i'm just gonna press ctrl c and then we're gonna go back here to our
78.92 -> eclipse.ini so i just opened this with notepad and
83.28 -> yeah it doesn't really matter so what you want to do next is find
88.08 -> where it says v marks and basically go one line up
93.2 -> and then press enter it doesn't really matter
96.72 -> if you got a few entries or that that really isn't important
101.04 -> so what you want to add is minus vm so just going to press enter another
106.799 -> time for *you must paste it in a new line (I made a narrating mistake sorry)* and then we're going
110.72 -> to paste in our program path
114.159 -> but before we save we want to add another backslash
117.36 -> and then type in java w dot exe after that we want to save the file
124.88 -> and yeah you're pretty much done if we close
128 -> this again and go back to our eclipse so right here and start it again you
134.64 -> will see that it works so basically what happened is that
139.04 -> eclipse didn't choose the right library and after we added those lines it will
144.08 -> now automatically start from the right library yeah that's
149.2 -> pretty much it with this video i hope it was helpful and if you got any
152.959 -> questions just leave them in the comments and i'll try
155.599 -> to answer them
172.64 -> you

Source: https://www.youtube.com/watch?v=CgwpdheXvls