为初学者选择 Java 工具(IDE 和编译器)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1927308/
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-10-29 18:33:40  来源:igfitidea点击:

Choosing Java tools (IDE and compiler) for beginners

java

提问by Newb

I stumbled across this:

我偶然发现了这个:

http://en.literateprograms.org/Vending_Machine_%28java%29

http://en.literateprograms.org/Vending_Machine_%28java%29

It is a java vending machine, I want to read it and also follow along, write the same code.

这是一个java自动售货机,我想读它,也跟着写,写同样的代码。

What's the fastest way to get java setup such that I can just start coding the java vending machine as I read along?

什么是获得 java 设置的最快方法,这样我就可以在阅读时开始对 java 自动售货机进行编码?

I was in the process of downloading the Java SE Development Kit 6u17 for Windows, Multi-language, when I looked to the right hand side of the same page and just realized that I can also download Netbeans.

我正在下载适用于 Windows 多语言的 Java SE 开发工具包 6u17 的过程中,当我查看同一页面的右侧时,才意识到我也可以下载 Netbeans。

Again, the question is what's the best java IDE or compiler that a newb like me can use to do the java vending machine linked to above.

同样,问题是像我这样的新手可以用来做上面链接的 java 自动售货机的最好的 java IDE 或编译器是什么。

Or

或者

What are the java programmers using to code java with?

java程序员用什么来编写java代码?

I am new to java, C++ is easy to install and start coding, likewise so is PHP, but java just seems like an interesting new beast to me, thank you for not flaming.

我是 Java 新手,C++ 易于安装和开始编码,PHP 也是如此,但 Java 对我来说似乎是一个有趣的新野兽,谢谢你没有发火。

回答by cwap

There's the 3 big ones:
Eclipse
NetBeansand
IntelliJ

有 3 个大的:
Eclipse
NetBeans
IntelliJ

All are nice. I'm a big Java noob, but I like NetBeans the best. Can't really tell you why, though :) It's all personal preference.

一切都很好。我是一个大 Java 菜鸟,但我最喜欢 NetBeans。不能真正告诉你为什么:)这都是个人喜好。

NetBeans is probably the most RAM-hungry of the three..

NetBeans 可能是三个中最耗内存的。

回答by Thorbj?rn Ravn Andersen

Just for the record. If all you want to do is actually just do some minor editing, compile and run, you can do nicely with your favorite editor along with javac from the Java Development Kit (as opposed to the Java Runtime).

只是为了记录。如果您想要做的实际上只是进行一些小的编辑、编译和运行,您可以使用您最喜欢的编辑器以及 Java Development Kit(而不是 Java Runtime)中的 javac 很好地完成。

Have a look at the Java Tutorial which tells you all you need to know. http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

看看 Java 教程,它告诉你所有你需要知道的。 http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

回答by Laurence Vanhelsuwe

Eclipse also has great support for C++ and PHP development, so given your experience with these languages, you may find Eclipse attractive.

Eclipse 还对 C++ 和 PHP 开发提供了很好的支持,因此根据您使用这些语言的经验,您可能会发现 Eclipse 很有吸引力。

回答by ftl

I think the simplest and fastest way for a newbe to really learn java is to use only the tools contained in the SDK and a simple text editor. This way you can concentrate on the language and its ecosystem. You are not distracted by IDE issues like project management or launch configurations etc.

我认为新手真正学习java的最简单和最快的方法是只使用SDK中包含的工具和一个简单的文本编辑器。通过这种方式,您可以专注于语言及其生态系统。您不会被项目管理或启动配置等 IDE 问题分心。

With this approach you are forced to learn also what is normally hidden by the IDE. Priceless knowledge when something goes really bad.

通过这种方法,您还必须了解 IDE 通常隐藏的内容。当事情变得非常糟糕时,无价的知识。

回答by ziggystar

Though for learning Java, I'm tempted to suggest that you start with the SDK and no IDE but a decent programming editor and compile and run by hand for the first program. There are also some very light-weight IDE/editor hybrids for Java - though I can't produce a name right now.

虽然为了学习 Java,我很想建议您从 SDK 开始,没有 IDE,而是一个不错的编程编辑器,然后为第一个程序手动编译和运行。还有一些非常轻量级的 Java IDE/编辑器混合体——尽管我现在无法命名。

I think the big Java IDE have too many features and stuff going on for a newbie. On the other hand they correct many errors on their own. Can't make up my mind if this is a good or a bad thing for a newb.

我认为大型 Java IDE 为新手提供了太多功能和内容。另一方面,他们自己纠正了许多错误。我无法下定决心,这对新手来说是好事还是坏事。

回答by Huub

You should also take a look at BlueJ. This is a small but powerful Java IDE, designed with a strong focus on education. BlueJ is part of an approach to learn OO programming in general and java in particular. BluJ fills the gap between bare bones JDK tools and advanced professional IDE's like Eclipse and NetBeans. It may be exactly what you want and and need for your purpose.

您还应该看看 BlueJ。这是一个小巧但功能强大的 Java IDE,专为教育而设计。BlueJ 是学习 OO 编程特别是 Java 的一种方法的一部分。BluJ 填补了基本 JDK 工具与 Eclipse 和 NetBeans 等高级专业 IDE 之间的空白。它可能正是您想要和需要的。

回答by Zakir Sajib

When I first learnt Java back in 2001, I used TextPad for java programming, for me it was very good, I had write code to develop GUI, no drag and drop option, simple pure code. Then I used JBuilder, Now I am using Netbeans. My suggestion is start with something which will concentrate on pure coding rather than depending on IDE's drag on drop features. When you will comfortable with coding then you can move on to more sophisticated IDE which I mentioned above. Good luck!

早在2001年我第一次学习Java的时候,我就用TextPad进行java编程,对我来说非常好,我会写代码来开发GUI,没有拖放选项,简单的纯代码。然后我使用 JBuilder,现在我使用 Netbeans。我的建议是从专注于纯编码而不是依赖于 IDE 的拖放功能的东西开始。当您对编码感到满意时,您可以继续使用我上面提到的更复杂的 IDE。祝你好运!

回答by Dave Webb

Two obvious suggestions are NetBeansand Eclipse.

两个明显的建议是NetBeansEclipse

Both are free and great for Java Development.

两者都是免费的,而且非常适合 Java 开发。

Which you use is a matter of choice. For Java Development I personally probably prefer NetBeans. As NetBeans is produced is usually very up to date with latest developments in Java. I also like how the project build is all done via Antbut again this is down to personal taste.

你使用哪个是一个选择问题。对于 Java 开发,我个人可能更喜欢 NetBeans。由于 NetBeans 的产生,通常与 Java 的最新发展保持同步。我也喜欢项目构建是如何通过Ant完成的,但这同样取决于个人喜好。

Although I'm currently using Eclipse as the Google Plug-in for Android development is only for Eclipse. I would say this usually the case with a lot of Plug-ins.

虽然我目前使用 Eclipse 作为 Android 开发的 Google 插件仅适用于 Eclipse。我会说这通常是很多插件的情况。

回答by Pramod

Dr. Javais brilliant for newbies. It doesn't have code completion/project tools that scare you. Instead it's simple to use and also has an interactive shell I use to check my syntax

Java 博士对新手来说非常出色。它没有让您感到害怕的代码完成/项目工具。相反,它使用起来很简单,而且还有一个交互式 shell,我用它来检查我的语法

回答by Vijin Paulraj

As a beginner, it's good to use the basic notepador notepad++to write the Java code and compile & execute it using the command prompt. It will help to understand the fundamentals such as how the compiler works and how code is built etc. For professional development, I'd prefer IntelliJ IDEA.

作为初学者,最好使用基本的notepadnotepad++编写 Java 代码并使用命令提示符编译和执行它。它将有助于理解基本原理,例如编译器如何工作以及如何构建代码等。对于专业开发,我更喜欢 IntelliJ IDEA。