简体   繁体   English

带有Eclipse Luna和Java8的e(fx)eclipse

[英]e(fx)eclipse with eclipse Luna and Java8

I m trying to use e(fx)clipse with java8 and eclipse Luna on my mac (yosemite). 我想在我的Mac(优胜美地)上使用带有Java8的e(fx)clipse和Eclipse Luna。

In a terminal : java -version gives me 在终端中:java -version给了我

java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) Java版本“ 1.8.0_25” Java™SE运行时环境(内部版本1.8.0_25-b17)Java HotSpot(TM)64位服务器VM(内部版本25.25-b02,混合模式)

In my eclipse.ini I m putting : 我在eclipse.ini中输入:

-vm /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -vm /库/ Internet插件/JavaAppletPlugin.plugin/Contents/Home/bin/java

which points to my java8 folder. 指向我的java8文件夹。 In eclipse I ve set up the java8 jre. 在Eclipse中,我设置了java8 jre。

But when I open eclipse I m still getting : 但是当我打开日食时,我仍然得到:

You are not running your eclipse instance with Java8 .... 您没有使用Java8 ...运行您的Eclipse实例。

I can't get where I am wrong. 我无法到达错误的地方。 Any clue? 有什么线索吗?

Thanks. 谢谢。

I had faced similar issue when I had installed JavaFX eclipse plugin in a 32bit eclipse (Luna). 在32位Eclipse(Luna)中安装JavaFX eclipse插件时,我也遇到过类似的问题。 It seems, though you have 64bit OS and 64bit JRE/JDK, and you have setup Environment Variables, you will need 64bit Eclipse to run JavaFX under Eclipse. 看起来,尽管您具有64位操作系统和64位JRE / JDK,并且已经设置了环境变量,但是您将需要64位Eclipse才能在Eclipse下运行JavaFX。

Hence, make sure you have 64bit Eclipse running on your machine. 因此,请确保您的计算机上运行着64位Eclipse。 If it is a 32bit machine, then there won't be any problem as neither we could install 64bit JDK or 64bit Eclipse. 如果它是32位计算机,那么不会有任何问题,因为我们都无法安装64位JDK或64位Eclipse。

I hope this solves the problem. 我希望这可以解决问题。

Thanks 谢谢

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

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