简体   繁体   English

Mac上的Eclipse IDE?

[英]Eclipse IDE on Mac?

I'm trying to get Eclipse 4.5.2 running on Macs with OS X 10.10.5 and Oracle Java 8u73 I got to the point where trying to start Eclipse results in 我试图使Eclipse 4.5.2在OS X 10.10.5和Oracle Java 8u73的Mac上运行,我试图启动Eclipse结果到

The JVM shared library "$JAVA_HOME/bin../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.

Googling this returns a whole bunch of suggestions, none of which work. 对此进行谷歌搜索会返回大量建议,但没有一个起作用。 Some say you absolutely MUST have the JDK (I'm using the JRE). 有人说您绝对必须拥有JDK(我正在使用JRE)。 Others emphatically say the JRE is all you need. 其他人则强调说,JRE是您所需要的。 Some suggest editing an Info.plist or another, with people responding "Yeah that worked!" 有些人建议编辑一个Info.plist或其他,让人们回答“是的,行得通!” right along with "That didn't work" 以及“那没有用”

How do I get past this message? 我如何才能忽略此消息?

You need the JDK because, well, to be honest Apple hates Java and has done a thorough job of screwing up what used to be the best OS for Java development. 之所以需要JDK是因为,说实话,Apple讨厌Java,并且已经做了彻底的工作,弄糟了曾经是Java开发的最佳OS的操作系统。

The "you need legacy Java" message was from OS X, not Eclipse. “您需要旧版Java”消息是来自OS X,而不是Eclipse。 The advice to download and install it is bad advice, but sadly nothing that Eclipse can remedy. 下载和安装它的建议是不好的建议,但是遗憾的是Eclipse无法解决。 Installing "legacy Java" just reverts your system to a VERY outdated JRE and renders much Java-based software, including Eclipse, broken. 安装“旧版Java”只会将您的系统还原为非常过时的JRE,并使很多基于Java的软件(包括Eclipse)损坏。

Eclipse requires Java 7 or above (this year's release of Eclipse packages in June will require Java 8 ), so the best thing is to download JDK 1.8 (not just the JRE), install that, then point your eclipse.ini file to it's exact location per the instructions at the eclipse.ini wiki page . Eclipse需要Java 7或更高版本(今年6月发行的Eclipse软件包将需要Java 8),因此最好的方法是下载JDK 1.8(不仅仅是JRE),进行安装,然后将eclipse.ini文件准确指向根据eclipse.ini Wiki页面上的说明进行位置。

Oracle JDK download links change often, so it's best to Google for "JDK 8 download" and you'll find it. Oracle JDK下载链接经常更改,因此最好是Google进行“ JDK 8下载”,您会发现它。 Here's the page as it stands at the time I'm writing this. 这是我编写本文时的样子。

[quoted from this Eclipse forums message] [引用此Eclipse论坛消息]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM