用于 Java 开发的 Linux 发行版

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

Linux distros for Java Development

javalinuxdistro

提问by Ande Turner

Simply, are there any Java Developer specific Linux distros?

简单地说,是否有任何 Java Developer 特定的 Linux 发行版?

采纳答案by Sean

A real Sun geek would chime in here about the virtues of using Solaris as a Java development platform, but I am much more ambivalent. Developing with Java is about the same on any linux distro; you are going to wind up having to install the JDK and tools of your choosing (Eclipse, Sun Studio, Tomcat, etc) so you may as well choose a distro on other criteria... perhaps how comfortable you are with it, how easy package management is, and if the look & feel suit your development habits are all big factors.

一个真正的 Sun 极客会在这里谈论使用 Solaris 作为 Java 开发平台的优点,但我更加矛盾。在任何 Linux 发行版上使用 Java 进行开发都差不多;您最终将不得不安装 JDK 和您选择的工具(Eclipse、Sun Studio、Tomcat 等),因此您也可以根据其他标准选择发行版……也许您对它有多舒服,有多容易包管理是,如果外观和感觉适合您的开发习惯都是重要因素。

So, to answer your question more directly, a Java developer would do well with any major linux distro that they are comfortable with using in general. If you want some Java goodness out of the box, Fedora 9 and Ubuntu 8.04 have OpenJDK (and NetBeans) according to a recent announcement.

因此,为了更直接地回答您的问题,Java 开发人员可以很好地使用他们通常习惯使用的任何主要 linux 发行版。如果您想要一些开箱即用的 Java 优点,根据最近的公告,Fedora 9 和 Ubuntu 8.04 具有 OpenJDK(和 NetBeans)。

回答by Nick Stinemates

The distro which is most developer friendly, in my opinion, is Gentoo. Since you compile everything from scratch, you choose exactly what makes up your system. Java can be installed very easily, so you could potentially just have a window environmentand Java installed (aside from the standard tool chain.)

在我看来,对开发人员最友好的发行版是Gentoo。由于您从头开始编译所有内容,因此您可以准确选择构成系统的内容。Java 可以非常容易地安装,因此您可能只安装了一个窗口环境和 Java(标准工具链除外)。

回答by Slartibartfast

Solaris :)

索拉里斯 :)

On a serious note, there is no Linux distro dedicated to Java, so it would be about the same.

严肃地说,没有专用于 Java 的 Linux 发行版,因此大致相同。

OpenSolarison the other hand (in my veryhumble experience) would be a bit faster, and you would have bonus of Dtrace as a tool. (Not that you can't find similar tools in Linux, but Dtrace should be somewhat more advanced).

另一方面(以我非常谦虚的经验)OpenSolaris会快一点,并且您将获得 Dtrace 作为工具的好处。(并不是说您在 Linux 中找不到类似的工具,而是 Dtrace 应该更高级一些)。

回答by credmp

I am very heavy into Java development and I personally use Ubuntu, so I agree with Sean on this one.

我非常喜欢 Java 开发,而且我个人使用 Ubuntu,所以我同意 Sean 的观点。

The package manager allows you to easily install the various SDKs (the SUN one, or even the upcoming OpenJDK 7).

包管理器允许您轻松安装各种 SDK(SUN 的,甚至是即将推出的 OpenJDK 7)。

Regards,

问候,

Arjen

阿尔让

回答by Jay R.

I have used Ubuntu8.04 and Fedora9 with success.

我已经成功使用了Ubuntu8.04 和Fedora9。

For Ubuntu, the community forums were very helpful and if I remember correctly one of the repositories provided apt packages for Sun's Java6 distribution.

对于 Ubuntu,社区论坛非常有帮助,如果我没记错的话,其中一个存储库为 Sun 的 Java6 发行版提供了 apt 包。

On Fedora 9, the Sun rpms work alright.

在 Fedora 9 上,Sun rpm 运行正常。

In either case, alternative/galternative is your friend to make sure that you point "java" and "javac" at the Sun install. I've been using Netbeans 6.1 and Eclipse 3.4 both on Fedora 9_x64 with no problems.

在任何一种情况下,alternative/galternative 都是您的朋友,以确保您在 Sun 安装时指向“java”和“javac”。我一直在 Fedora 9_x64 上使用 Netbeans 6.1 和 Eclipse 3.4,没有任何问题。

回答by John Meagher

While not reallya distribution, there is a virtual machine available for Tomcat. It could be adapted pretty easily for other Java based deployments (available for several virtualization technologies).

虽然不是真正的发行版,但有一个可用于Tomcat的虚拟机。它可以很容易地适应其他基于 Java 的部署(可用于多种虚拟化技术)。

There are also several Java App Server VMs available from VMWare(VMWare only, of course).

VMWare还提供了多个 Java App Server VM (当然,仅适用于VMWare)。

回答by Tim Williscroft

I had a pleasant experience with Mandriva power pack 2008. Select something like development->"java tools" and everything is installed for you.

我在 Mandriva power pack 2008 上获得了愉快的体验。选择 development->"java tools" 之类的东西,一切都会为您安装。

Everything being Sun JRE, JDK, and eclispe.

一切都是 Sun JRE、JDK 和 eclispe。

Solaris did install a 64bit kernel by default though.....

尽管 Solaris 默认安装了 64 位内核.....

回答by vartec

Either SUSE or RH, both have official support. http://www.java.com/en/download/help/5000010500.xml

无论是 SUSE 还是 RH,都有官方支持。 http://www.java.com/en/download/help/5000010500.xml

回答by vartec

Dont listen to any of these noobs suggesting one distro over another. Java is Java and just about all distros can install java as such:

不要听这些菜鸟建议一个发行版而不是另一个发行版。Java 就是 Java,几乎所有发行版都可以这样安装 Java:

[package manager command to install] jdk

If the question was about creating RPM's, then obviously RH/CentOS/Fedora would be desirable over deb distros, source distros, or whatever other format you love. However, due to the nature of Java, a specific distro to use is only relevant if the OP cant formulate their own opinion and must follow whatever other people are doing.

如果问题是关于创建 RPM 的,那么显然 RH/CentOS/Fedora 比 deb 发行版、源发行版或您喜欢的任何其他格式更受欢迎。但是,由于 Java 的性质,只有当 OP 无法表达自己的意见并且必须遵循其他人正在做的事情时,才可以使用特定的发行版。

To reiterate There is no java distro, use whatever will have you hit the ground running.

重申一下,没有 java 发行版,请使用任何可以让您顺利运行的东西。

// begin hypocritical personal recomendation

... that being said ... I personallyuse Archlinux. Archlinux works on rolling releases so it is more likely to have a more recent JDK version then the "sudo apt-get dist-upgrade && sleep 6 months" distros of the world.

...话虽如此...我个人使用Archlinux。Archlinux 支持滚动发布,因此它更有可能拥有更新的 JDK 版本,而不是世界上的“sudo apt-get dist-upgrade && sleep 6 个月”发行版。

// end hypocritical personal recomendation

Also, I am fully prepared to get downvoted, but please, leave me above 50 so i can comment still, thanks!

此外,我已做好充分准备被否决,但请让我保持在 50 以上,以便我仍然可以发表评论,谢谢!

回答by jasonnerothin

Just be careful with your distro's java installation. Most install gcj by default. For whatever reason, typing "java" into bash on most linux distros will not invoke a Sun JVM without some futzing.

小心你的发行版的java安装。大多数默认安装 gcj。无论出于何种原因,在大多数 linux 发行版上将“java”输入到 bash 中都不会调用 Sun JVM。

Usually, there needs to be a bunch of soft-linking from /usr/local/bin -> $JDK_HOME/bin/* to get things working as I typically expect them.

通常,需要从 /usr/local/bin -> $JDK_HOME/bin/* 进行一堆软链接,以使事情按我通常期望的那样工作。