Eclipse Indigo for OS X Mavericks使用Java SE 7推出

时间:2014-05-15 17:02:20

标签: java-7 osx-mavericks eclipse-indigo

我想在Mac OSX Mavericks上安装eclipe Indigo SR2,当我在终端中启动 ./ eclipse 时收到了这条消息:

  

警报:无法创建Java虚拟机

在终端中:

JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.

我在我的系统上有这个:

java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

2 个答案:

答案 0 :(得分:7)

我做了什么:

cd /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/
sudo mkdir bundle
cd bundle
sudo mkdir Libraries
ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/server/libjvm.dylib libserver.dylib

有效!

答案 1 :(得分:1)

我做了什么:

cd /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/
sudo ln -s /Library/Java/Home/bundle bundle

有效!