首选 Windows Java 开发环境

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

Preferred Windows Java Development Environment

javawindowspreferences

提问by JF.

I've been a Linux Java developer for years and have loved it. I just got a new laptop which is running Windows 7. I could wipe the drive and go back to my typical Linux dev setup: vim for editing, tabbed Bash windows running javac and java for smaller projects, ant for big projects

我多年来一直是 Linux Java 开发人员并且非常喜欢它。我刚买了一台运行 Windows 7 的新笔记本电脑。我可以擦除驱动器并返回到我典型的 Linux 开发设置:vim 进行编辑,选项卡式 Bash 窗口运行 javac 和 java 用于较小的项目,ant 用于大型项目

That said, I'm really thinking it couldn't hurt to learn to develop in a new environment. So, with that in mind, are there any Windows-based Java devs out there? What setup do you like to use to get things done? It'd be interesting to hear both ways to emulate my Linux-based environment as well as completely different styles that I might benefit from trying.

也就是说,我真的认为学习在新环境中发展不会有什么坏处。那么,考虑到这一点,是否有任何基于 Windows 的 Java 开发人员?你喜欢用什么设置来完成工作?听到两种模拟基于 Linux 的环境的方法以及我可能会从尝试中受益的完全不同的风格,会很有趣。

回答by Pindatjuh

I use NetBeansfor all my Java development work, also on a laptop. (I recommend not wiping the drive of a laptop, as special software for laptop-specific features, e.g. webcam and Bios configuration, might not run on Linux: use virtualization for Linux)

我的所有 Java 开发工作都使用NetBeans,也在笔记本电脑上进行。(我建议不要擦除笔记本电脑的驱动器,因为笔记本电脑特定功能的特殊软件,例如网络摄像头和 Bios 配置,可能无法在 Linux 上运行:对 Linux 使用虚拟化)

Besides NetBeans I have Notepad++ for all "quick & dirty" programming, though start-up times for NetBeans 6.8 are so good and memory consumption is quite low, I often have NetBeans open all the time. NetBeans has ANT, and it has an intergrated console (with input!) for your smaller projects. No need to run in a seperate window.

除了 NetBeans 我有 Notepad++ 用于所有“快速和脏”编程,虽然 NetBeans 6.8 的启动时间非常好并且内存消耗非常低,但我经常让 NetBeans 一直打开。NetBeans 具有 ANT,并且具有用于较小项目的集成控制台(带输入!)。无需在单独的窗口中运行。

It takes some time to configure everything right in Netbeans & Notepad++ (think of templates, code-completion timing, indentation, colouring, paths, etc.) but once you've got it, it works like a charm.

在 Netbeans 和 Notepad++ 中正确配置所有内容需要一些时间(想想模板、代码完成时间、缩进、着色、路径等),但是一旦你掌握了它,它就像一个魅力。



I tried Eclipse, but it's really a matter of taste; I never have liked SWT applications.

我尝试过 Eclipse,但这确实是一个品味问题;我从不喜欢 SWT 应用程序。

回答by R0MANARMY

When I was doing Java development on Windows I used Eclipse as the IDE. It would be quite a different setup from what you're used to, and Eclipsedoes require a bit of tweaking before it behaves out but overall it was a fairly pleasant experience.

当我在 Windows 上进行 Java 开发时,我使用 Eclipse 作为 IDE。这将与您习惯的设置完全不同,Eclipse确实需要进行一些调整才能正常运行,但总体而言,这是一次相当愉快的体验。

If you rely on outside packages for your development you might want to look into Maven. When I used it it was a really nice way to manage dependencies and be able to pull down the latest version of each package I relied, build it from source, and make sure my code still played nice with the latest release of said packages.

如果您依赖外部包进行开发,您可能需要查看Maven。当我使用它时,它是一种非常好的管理依赖项的方式,并且能够提取我依赖的每个包的最新版本,从源代码构建它,并确保我的代码仍然与所述包的最新版本兼容。



If you are partial to VIM as an interface you might also be interested in this question: Vim Commands in Eclipse.

如果您偏爱 VIM 作为界面,您可能也对这个问题感兴趣:Eclipse 中的 Vim 命令

回答by Jacob

If I had a choice I would probably use Eclipse. It is a good looking, easy to use and flexible IDE tailored mostly for Java, although with plugins (of which there are heaps!) it can do anything (or near enough :)

如果我有选择,我可能会使用 Eclipse。它是一款外观漂亮、易于使用且灵活的 IDE,主要为 Java 量身定制,尽管带有插件(其中有很多!)它可以做任何事情(或几乎可以做任何事情:)

However at work we must use IntelliJ which is commercial. Great product with heaps of features and because it is designed for Java development it really supports it in as many ways as possible.

但是在工作中我们必须使用商业的 IntelliJ。具有大量功能的出色产品,并且因为它是为 Java 开发而设计的,所以它确实以尽可能多的方式支持它。

Both IDEs can be used with ANT or if you want something different, and I have heard more powerful, you could check out Maven.

两种 IDE 都可以与 ANT 一起使用,或者如果您想要不同的东西,而且我听说功能更强大,您可以查看 Maven。

回答by Anthony Forloney

I have always been a Java Windows developer, so I have never crossed into the Linux development side. My Windows Java IDE of choice has always been Eclipse for Java Developers.

我一直是 Java Windows 开发者,所以从未涉足 Linux 开发端。我选择的 Windows Java IDE 一直是Java Developers 的 Eclipse

I strongly encourage you to try developing in Java on Windows. Come to find out if you don't like it or nostalgia kicks in, (whichever comes first) I recommend downloading Sun's Virtual Box, install Linux along with your preferred tools for developing and you can now start where you had left off while still using Windows as your operating system.

我强烈建议您尝试在 Windows 上使用 Java 进行开发。来看看您是否不喜欢它或怀旧情绪(以先到者为准)我建议下载Sun 的 Virtual Box,安装 Linux 以及您喜欢的开发工具,现在您可以从上次停止的地方开始,同时仍在使用Windows 作为您的操作系统。

Hope this helps.

希望这可以帮助。

回答by John Munsch

Well, there's always your friend the IDE! Both Netbeansand Eclipseare free to try out and work well on Windows, Linux, and Mac.

好吧,IDE 永远是您的朋友!双方的NetbeansEclipse的免费试用,并在Windows,Linux和Mac工作。

While there's something to be said for the dedicated editors of the world like Vi and Emacs, I sometimes find the Hyman-of-all-trades IDE that is dedicated to doing everything for your programming needs and doing them all adequately to be pretty handy.

虽然对于 Vi 和 Emacs 等世界上的专用编辑器有一些话要说,但我有时发现全能 IDE 致力于为您的编程需求做任何事情,并且充分地完成所有这些工作,非常方便。

回答by Yishai

In terms of emulating a linux environment, have a look at Cygwin.

在模拟 linux 环境方面,看看 Cygwin。

In terms of what to use in Windows, an IDE is really a must. There are three worth looking at out of the box: Eclipse, NetBeans and IDEA. All are open source, but IDEA's open source version is kind of crippled. Beyond basic JavaSE development you need the paid for version, but then again it is as good as vim and bash in almost anything. Eclipse is "standard." And NetBeans is the closest to the bleading edge.

就在 Windows 中使用什么而言,IDE 确实是必须的。有三个值得一看的开箱即用:Eclipse、NetBeans 和 IDEA。都是开源的,但是IDEA的开源版本有点残废。除了基本的 JavaSE 开发之外,您还需要付费版本,但话又说回来,它几乎在任何方面都与 vim 和 bash 一样好。Eclipse 是“标准的”。而 NetBeans 是最接近前沿的。

All of those IDEs run on Linux as well, so if you haven't used one until now, I imagine you will gravitate towards Cygwin, at which point you might as well wipe and install your favorite Linux distro.

所有这些 IDE 也可以在 Linux 上运行,所以如果您到现在为止还没有使用过一个,我想您会被 Cygwin 所吸引,此时您不妨擦除并安装您最喜欢的 Linux 发行版。

回答by irreputable

回答by Edgar Zavala

If you don't want to be an adventurer to use an IDE, download cygwin and setup a 'linux-like' development enivornment, that's what i do for my own projects when the final server is on a Linux env and i want to keep the same build scripts and environment, even u can use rsync to keep them in sync if u want to have a backup linux env. for development.

如果您不想成为使用 IDE 的冒险家,请下载 cygwin 并设置一个“类似 linux”的开发环境,当最终服务器在 Linux 环境上并且我想保留时,这就是我为自己的项目所做的工作相同的构建脚本和环境,如果您想要备份 linux env,即使您可以使用 rsync 使它们保持同步。为发展。

回答by Wayne Werner

I used Eclipse IDE for all my Java needs throughout my semester long Java course. I also used the vrapper plugin to get the vim keybindings for movement.

在整个学期的 Java 课程中,我使用 Eclipse IDE 来满足我所有的 Java 需求。我还使用了 vrapper 插件来获取用于移动的 vim 键绑定。

I know for a fact that going this route made writing Java code a whole lot easier than had I gone my normal route of vim+command line. I'm also fairly sure that is the environment my brother uses programming for Amazon.

我知道一个事实,走这条路使编写 Java 代码比使用 vim + 命令行的常规路线要容易得多。我也相当确定那是我兄弟使用亚马逊编程的环境。

For writing Java code on windows OR linux (I mostly exclusively use linux), Eclipse is the best. Having also used NetBeans, I can tell you my preference was for Eclipse - it felt more solid, more "real". I'm not sure how else to describe it. Of course I never worked on a huge (> 2000 LOC) -- ((< 2000 LOC) if you read LISP) -- program, so I don't have any experience with the serious sluggish issues formerly mentioned.

对于在 windows 或 linux(我主要使用 linux)上编写 Java 代码,Eclipse 是最好的。也使用过 NetBeans,我可以告诉您我更喜欢 Eclipse - 它感觉更可靠、更“真实”。我不知道如何描述它。当然,我从来没有参与过一个巨大的(> 2000 LOC)——(如果你阅读 LISP,则为(< 2000 LOC)——程序,所以我对前面提到的严重缓慢的问题没有任何经验。

回答by Phani

Linux will be a bit faster compared to Windows. Personally I would love to stay with Linux but try using IDE like Eclipse/NetBeans which are highly used in project development.

与 Windows 相比,Linux 会快一些。就我个人而言,我希望继续使用 Linux,但尝试使用 Eclipse/NetBeans 等 IDE,它们在项目开发中被广泛使用。