Today We are Going To Solve Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse in Eclipse. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse Error?
- How to Fix Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse Error?
To Fix Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse Error just Add
-vm(Path_Of_Jdk)
. Here to solve this error you have to just add-vm(Path_Of_Jdk)
on topvmargs
ofeclipse.ini
. Just like you can see in my below example. You can better understand that. So lets see this:-vm C:\Program Files\Java\jdk-11.0.10\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=11
- Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse
To Fix Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required in Eclipse Error just Locate the command. First of all open your command prompt and type java -version. After it open the
eclipse.ini
file. And locate the following line-Dosgi.requiredJavaVersion=11
And just change it to-Dosgi.requiredJavaVersion=1.8
And after doing this just restart Eclipse. It will help you!
Solution 1 : Add -vm(Path_Of_Jdk)
Here to solve this error you have to just add -vm(Path_Of_Jdk)
on top -vmargs
of eclipse.ini
. Just like you can see in my below example. You can better understand that. So lets see this:
-vm
C:\Program Files\Java\jdk-11.0.10\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=11
Solution 2 : Locate the command
First of all open your command prompt and type java -version.
After it open the eclipse.ini
file. And locate the following line
-Dosgi.requiredJavaVersion=11
And just change it to
-Dosgi.requiredJavaVersion=1.8
And after doing this just restart Eclipse. It will help you!
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read This Solutions
- Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- SyntaxError: Cannot use import statement outside a module in nodeJs
- Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0”
- npm does not support Node.js v10.19.0 You should probably upgrade to a newer version of node as we can’t make any promises that npm will work with this version
- A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade