Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

java - MacOS Big Sur 11.1 can't launch eclipse installer

I updated my MacOS to Big Sur 11.1 and I tried to download Eclipse IDE for Java Developers, and when I try to run the Eclipse Installer, it keep spinning at the Mac dock and nothing happens at all. The launcher doesn't move forward with the process like this:

enter image description here

I have Java installed and I checked the version like this :

$ /usr/bin/java -version 
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

I follow this link to setup Java directory home

Then, I updated the JAVA_HOME using the below commands:

$ vi ~/.bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home

Then, in a new terminal window and test the variable is setup like this:

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Hom

And I still have issues to run Eclipse Installer, so I found these links (link1 , link2) explaining how I should edit the eclipse.ini file and info.plist file in the Contents folder in Eclipse.app as it is shown in the pictures:

enter image description here

This is the line in eclipse.ini:

-vm
/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home/bin/Java

enter image description here

In the info.plist, I added this under Eclipse, array as it shown:

<key>Eclipse</key>

    <array>
        <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home/bin/Java</string>

enter image description here

And still the Eclipse installer doesn't work, I contacted apple support and they said that the problem is need to be take care of from the Eclipse side and they can't do anything about it ..

Does anyone has any idea how to avoid this problem or fix the issue I have.. I tried multiple times to remove java and install it again and I still facing the same problem .

Also I tired this command using Homebrew but I keep getting this error Message you see in the picture:

brew cask install eclipse-java

enter image description here

I'm really in need for help, and I spent more than 10 days to figure out what the issue is and I'm very frustrated , and I need to install this Eclipse in particular for school.

Thank you!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...