Skip to main content

Mac OS- Error - eclipse (JVM) while updating Catalina to Big Sur

 


Hi,

As you have received your new OS update Big Sur 11 from Catalina 10 

You might be facing issue of eclipse throwing an error "failed to create Java virtual machine".

This a bug already reported to the community and you will find many confusing solution to fix the issue

I'll explain you in simple steps how to fix this issue.


Press keys (command_shift+G) make sure while pressing these buttons your mouse is pointing on desktop   Go to folder, A window will open  where you have to enter. " /Library/Java/JavaVirtualMachines " and press Go

it will take you the version installed of JDK in your machine in my case it is jdk1.8.0_241.jdk shown as below


you need to find the eclipse installed in your system it can be under application(which can be found in Finder) in my case it was present in home directory under software folder

 
click on eclipse and go to "show package contents" 



Open "contents" folder check the file "info.pilst". open the file using : Text Edit




Go to end of the document  and check the commented section.


copy the code
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java</string>

update your JDK version here which was as shown above in screenshot (pasting it again) in my case it is  

jdk1.8.0_241.jdk

which will now make the string  

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java</string>

copy this code "above the commented section" and save

Go to your Terminal. open the bash file  as suggested in my first blog 
Open the bash file by entering command "open -e .bash_profile"

update Java Home path

export JAVA_Home =/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home

and save 




This will solve your issue.
you have to change the path of workspace and it will work fine.






Comments

Popular posts from this blog

Cucumber - Execution of test cases and reporting

Before going through this blog please checkout blog on   Cucumber Fundamentals Cucumber is testing tool which implements BDD(behaviour driven development).It offers a way to write tests that  anybody can understand, regardless of there technical knowledge. It users Gherkin (business readable language) which helps to  describe behaviour without going into details of implementation It's helpful for  business stakeholders who can't easily read code ( Why cucumber tool,  is  called  cucumber , I have no idea if you ask me I could have named it "Potato"(goes well with everything and easy to understand 😂) Well, According to its founder..... My wife suggested I call it  Cucumber  (for no particular reason), so that's how it got its  name . I also decided to give the Given-When-Then syntax a  name , to separate it from the  tool . That's why it's  called  Gherkin ( small variety of a cucumber that's been pickled. I...

Cucumber Datatable testing without using scenario outline and Issues

  Before going through this blog please visit blog The issue you might encounter while running cucumber project- 1.  you have created the cucumber all file in src/test/java and you are trying to  move it in another folder transition might not be smooth, It will give error one fix will led to other.(depends on the setup) 2. If on running a feature file and successfully creating a stepdef file, If application still says that  few steps are still needs to be implemented or all of them(not detecting creation of step definition) then there is a high chance you have mistakenly wrote some other annotation in stepdef when compares to you feature file eg:- feature file @And ( "^user close browser$" ) public   void  user_close_browser()  throws  Throwable { Stepdef:-             @Then ( "^user close browser$" ) public   void  user_close_browser()  throws  Throwable { driver .quit(); 3. Duplicate S...

Beginners tutorial -:working with JMeter in Mac and windows - Part-01

  Prequisite   you should have Java downloaded in your system with Home path set under environment variables.(as of today Java version 8 and higher are required fro jmeter ) for help check out this link Note Always run the jmeter on your secondary browser,  if you give the primary browser for proxy settings then your internet connection will be disrupted for the browser as well as system For ex if you have chrome and firefox and your primary or default browser is chrome then do all the proxy setting in firefox so it won't hamper the system Internet connection  if you have safari as your default browser in your mac os then set proxy in chrome/firefox  MAC Download jmeter from the link  here click on the hypelink under section Binaries  "Apache JMeter( 5.3 ). tgz" file  for Mac   Tar file will get downloaded Double click on the tar file to unzip  once you open the folder  got to bin and search for jmeter.sh file this is a executa...