如何使用 Eclipse 作为 Javascript IDE?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6661707/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:35:42  来源:igfitidea点击:

How use Eclipse as a Javascript IDE?

javascripteclipseeclipse-pluginrtejsdt

提问by Zeeno

I downloaded the eclipse Javascript IDE from the official download page however, when i start the application it says "A Java Runtime Environment or Java development Kit must be available in order to run eclipse." I already have a java IDE copy of eclipse that runs fine so I don't understand why its asking for another JDK.

我从官方下载页面下载了 eclipse Javascript IDE,但是,当我启动应用程序时,它说“必须提供 Java 运行时环境或 Java 开发工具包才能运行 eclipse。” 我已经有一个运行良好的 Eclipse 的 Java IDE 副本,所以我不明白为什么它要求另一个 JDK。

I just want to develop Javascript in Eclipse, does anyone have any idea how to? Are there special tools or plugins i'm meant to get to get it to work?

我只想在 Eclipse 中开发 Javascript,有人知道怎么做吗?是否有特殊的工具或插件可以让它发挥作用?

采纳答案by Ivan Ivani?

For best experience doing JS/HTML/CSS I recommend you using Aptana as plugin. Here you can download it http://www.aptana.com/products/studio3/downloadBe sure to check Eclipse Plug-in Versionoption.

为了获得最佳的 JS/HTML/CSS 体验,我建议您使用 Aptana 作为插件。在这里你可以下载它http://www.aptana.com/products/studio3/download一定要检查Eclipse Plug-in Version选项。

回答by Tu Tran

Maybe other copy of eclipse use -vm variable in eclipse.ini file, therefore, it work correctly. Make sure you have JAVA_HOME in Environment Variables or add -vm configuration into eclipse.ini file.

也许 eclipse 的其他副本在 eclipse.ini 文件中使用了 -vm 变量,因此,它可以正常工作。确保环境变量中有 JAVA_HOME 或将 -vm 配置添加到 eclipse.ini 文件中。

For more information, see this link: http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F

有关更多信息,请参阅此链接:http: //wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F

回答by Meim

Check your version of the runtime that you installed. You can upgrade or downgrade (i.e. if JDK 7, then try JDK 8 and vice versa you can even try JDK 6) and see if it works.

检查您安装的运行时版本。您可以升级或降级(即如果是 JDK 7,则尝试 JDK 8,反之亦然,您甚至可以尝试 JDK 6)并查看它是否有效。

On Ubuntu 14.10 open JDK 7 did not help me much but the older (open JDK java 6 runtime) and the newer open JDK Java 8 helped me out.

在 Ubuntu 14.10 上,开放 JDK 7 对我帮助不大,但较旧的(开放 JDK java 6 运行时)和较新的开放 JDK Java 8 帮助了我。