如何使用 Aptana 启用 Java 支持?没有 Java 支持或任何插件。添加软件没有 URL
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7920535/
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
How do I enable Java support with Aptana? There's no Java support or any plugins. Add Software has no URLs
提问by kinesis
I want to work with Java in Aptana but there is no support for it, plus there are no URLs to add software with (it's empty). What do I do?
我想在 Aptana 中使用 Java,但不支持它,而且没有用于添加软件的 URL(它是空的)。我该怎么办?
回答by camria
This is how I configure Aptana to get java support:
这是我配置 Aptana 以获得 Java 支持的方式:
Verify the version of Eclipse that it is using. Go to menu Help → About Apatana... -> Click on the Eclipse icon, the version to take into account is the one for feature 'Eclipse plataform'.
Make sure the update site for your version of Eclipse exists in the Available software sites.
- First find the update site that corresponds to your version of Eclipse; for instance, if you have Eclipse plataform version 3.7 (also known as Indigo) the update site would be http://download.eclipse.org/releases/indigo/(make sure you have the correct URL).
- Then go to menu Window → Preferences, then choose Install/Update → Available Software sites. There you should have an entry for Eclipse and the location should be the update site from the previous step; if it doesn't exist just add it with the appropriate information.
Install 'Eclipse Java development tools'. Go to menu Help → 'Install new software...'. Select your Eclipse update site, from the drop down list. A list of available updates/features will be shown. Look for Java (using the filter field) or navigate to 'Programming languages'; in either case, check the box for 'Eclipse Java development tools', click next and follow any additional steps until installation is done.
Configure preferences for Java in Aptana. Go to menu Window → Preferences, in the left pane you should now see an item called 'Java'. The subitem 'Installed JREs', should have at least one entry (this is the version of JRE that will be used during development. It is possible to add more JREs there (Not going into the detail here, as it is not really the question to be answered).
验证它正在使用的 Eclipse 版本。转到菜单 Help → About Apatana... -> 单击 Eclipse 图标,要考虑的版本是功能“Eclipse 平台”的版本。
确保您的 Eclipse 版本的更新站点存在于可用软件站点中。
- 首先找到你的Eclipse版本对应的更新站点;例如,如果您有 Eclipse 平台版本 3.7(也称为 Indigo),更新站点将是http://download.eclipse.org/releases/indigo/(确保您拥有正确的 URL)。
- 然后转到菜单窗口 → 首选项,然后选择安装/更新 → 可用软件站点。在那里您应该有一个 Eclipse 条目,该位置应该是上一步中的更新站点;如果它不存在,只需添加适当的信息。
安装“Eclipse Java 开发工具”。转到菜单“帮助”→“安装新软件...”。从下拉列表中选择您的 Eclipse 更新站点。将显示可用更新/功能的列表。查找 Java(使用过滤器字段)或导航到“编程语言”;在任何一种情况下,选中“Eclipse Java 开发工具”框,单击下一步并执行任何其他步骤,直到安装完成。
在 Aptana 中为 Java 配置首选项。转到菜单窗口 → 首选项,在左窗格中,您现在应该看到一个名为“Java”的项目。子项“Installed JREs”应该至少有一个条目(这是将在开发过程中使用的 JRE 版本。可以在那里添加更多 JRE(此处不详述,因为这不是真正的问题)待回答)。
Now you should be able to add Java projects and so on.
现在您应该能够添加 Java 项目等。
回答by Barry Jordan
Aptana is designed for web development, so supports many web development features such as HTML, JavaScript, css syntax highlight and support for popular current web development languages and frameworks such as Rails.
Aptana 专为 Web 开发而设计,因此支持许多 Web 开发功能,例如 HTML、JavaScript、css 语法高亮,并支持当前流行的 Web 开发语言和框架,例如 Rails。
If you want to do Java development I recomment you download Eclipse for Java Developers
如果您想做 Java 开发,我建议您下载Eclipse for Java Developers
You can then install aptana as a plugin following these instructions http://update1.aptana.org/studio/3.2/024747/index.htmlto have the best of both worlds.
然后,您可以按照这些说明将 aptana 作为插件安装http://update1.aptana.org/studio/3.2/024747/index.html以获得两全其美的效果。
回答by Janos
This SO question on how to add the Java Development Tools (JDT) for a CDT Eclipse distribution also answers this question:
这个关于如何为 CDT Eclipse 发行版添加 Java 开发工具 (JDT) 的问题也回答了这个问题: