用于 Java 开发的 Linux 发行版

发布于 2024-07-05 16:18:10 字数 45 浏览 10 评论 0原文

简而言之,是否有 Java Developer 特定的 Linux 发行版?

Simply, are there any Java Developer specific Linux distros?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(18

丑疤怪 2024-07-12 16:18:10

我认为这个问题的动机集中在安装的便利性上:是否有任何发行版已经“内置”了 Eclipse 和完整的 Sun Java 包(JRE、JDK 和 DOCS),以便手动安装过程(和卸载) OpenJDK)不是必需的?

为开发团队提供“开箱即用”的标准化环境可以节省大量时间。 如果您还没有机会获得具有 Java 经验的 Linux 系统管理员来指导您完成自己的自动化安装过程,那么学习足够的知识来自己完成安装肯定会令人沮丧。

很少有开发人员喜欢花时间研究操作系统内部结构,以使 Glassfish、Derby、Groovy、Grails、GWT 等工具都能协同工作。 他们更喜欢直接在个人沙箱中编写代码和发明东西,利用预先存在的内置服务生态系统......

在部署方面,拥有一个不需要系统级配置的通用 Linux 安装对于用户来说,除了安装他们最喜欢的 Java 应用程序的 .JAR 文件之外,这将是另一个巨大的胜利。

提供这种服务肯定有市场,但大多数人只是咬紧牙关自己做。

I think the motive for this question is focused on the convenience of setup: Is there any distro that has Eclipse and the full Sun Java package (JRE, JDK, and DOCS) already "baked in" so that a manual install process (and deinstall of OpenJDK) is not required?

Having an "out-of-the-box" standardized environment for a development team is a huge time saver. If you don't already have access to a Java-experienced Linux SysAdmin to guide you through the process of rolling your own automated install, learning enough to do it yourself is definitely frustrating.

Few Developers enjoy spending their time wrenching around with OS internals to get tools like Glassfish, Derby, Groovy, Grails, GWT, etc. all working together. They prefer to go directly to writing code and inventing stuff inside a personal sandbox that exploits a pre-existing ecosystem of built-in services...

On the deployment side, having a common Linux install that requires no system-level configuration for end-users except for installing their favorite Java applications' .JAR file would be another big win.

There's definitely a market for someone to provide this, but most folks are simply gritting their teeth and doing it for themselves.

忆离笙 2024-07-12 16:18:10

真正的 Sun 极客会在这里插话,谈论使用 Solaris 作为 Java 开发平台的优点,但我的态度则更加矛盾。 在任何 Linux 发行版上使用 Java 进行开发都大致相同; 你最终必须安装 JDK 和你选择的工具(Eclipse、Sun Studio、Tomcat 等),所以你也可以根据其他标准选择一个发行版......也许你对它有多舒服,有多容易包管理是,如果看& 感觉适合自己的开发习惯都是大因素。

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

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.

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.

揽月 2024-07-12 16:18:10

Solaris :)

严肃地说,没有专门针对 Java 的 Linux 发行版,所以情况也差不多。

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

Solaris :)

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

OpenSolaris on the other hand (in my very humble 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).

表情可笑 2024-07-12 16:18:10

我非常热衷于 Java 开发,而且我个人使用 Ubuntu,所以我同意 Sean 的这一点。

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

问候,

阿尔詹

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

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

Regards,

Arjen

樱桃奶球 2024-07-12 16:18:10

我使用过 Ubuntu 8.04 和 Fedora 9 成功。

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

在 Fedora 9 上,Sun rpm 工作正常。

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

I have used Ubuntu 8.04 and Fedora 9 with success.

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.

On Fedora 9, the Sun rpms work alright.

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.

第几種人 2024-07-12 16:18:10

不要听这些新手建议使用一种发行版而不是另一种发行版的建议。 Java 就是 Java,几乎所有发行版都可以这样安装 java:

[package manager command to install] jdk

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

重申一下没有java发行版,使用任何可以让你立即开始运行的发行版。

// begin hypocritical personal recomendation

...话虽这么说...我个人使用 Archlinux。 Archlinux 致力于滚动发布,因此它更有可能拥有比世界上“sudo apt-get dist-upgrade && sleep 6 个月”发行版更新的 JDK 版本。

// end hypocritical personal recomendation

另外,我已经做好了被否决的准备,但是请让我在 50 以上,这样我仍然可以发表评论,谢谢!

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:

[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.

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

// begin hypocritical personal recomendation

... that being said ... I personally use 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.

// end hypocritical personal recomendation

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

何处潇湘 2024-07-12 16:18:10

请小心您发行版的 java 安装。 大多数默认安装 gcj。 无论出于何种原因,在大多数 Linux 发行版上的 bash 中输入“java”都不会毫无问题地调用 Sun JVM。

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

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.

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.

戏舞 2024-07-12 16:18:10

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

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

请恋爱 2024-07-12 16:18:10

我在 Mandriva power pack 2008 上获得了愉快的体验。选择诸如开发 ->“java 工具”之类的内容,所有内容都会为您安装。

一切都是 Sun JRE、JDK 和 eclispe。

不过 Solaris 默认安装了 64 位内核......

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

Everything being Sun JRE, JDK, and eclispe.

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

单调的奢华 2024-07-12 16:18:10

我从未听说过 Java 开发人员专用的 Linux 发行版。

如果您需要一个 Linux 发行版用于工作目的(而不是个人家庭使用),那么发行版的选择实际上并不会受到您需要安装 JDK 的影响,而是受到其他因素的影响:

  • 安装速度有多快?
  • 维护(更新等)有多容易?
  • 它开箱即用的功能有多齐全?
  • 它的支持程度如何? (如果需要的话可以提供商业支持,否则社区支持有多好?)

我对工作目的的建议:Ubuntu 和 Suse 对我来说很好。 我对提到的其他人没有经验(例如:Fedora)。

基本上,获得一个“简单有效”的发行版。 您所需的一切(JDK、IDE 等)几乎肯定可以从那里轻松安装。

I have never heard of a Java-developer-specific Linux distro.

If you need a Linux distro for work purposes (not for personal home use) then the choice of distro is not really affected by the fact that you need to install a JDK, but other factors:

  • how quickly can it be installed?
  • how easy is it to maintain (updates etc)?
  • how fully-featured is it out-of-the-box?
  • how well supported is it? (commercial support if you need it, otherwise how good is community support?)

My suggestions for work-purposes: Ubuntu and Suse have been good for me. I have no experience with the others mentioned (eg: Fedora).

Basically, get a distro that "just plain works". Everything you need (JDK, IDE, etc) will almost certainly be easily installed from there.

牵强ㄟ 2024-07-12 16:18:10

首先:大多数(如果不是全部)Linux 发行版允许您“轻松”安装(即:使用发行版的包管理器)jdk 和 jre。 选择本质上更多的是关于发行版的哪个方面与您的个人品味最相关。

就我个人而言,我开始更加重视整体发行版的稳定性(例如:基本系统的升级或多或少可以保证在交付日期前一天不会对我的工作站进行软管),这使得过去几年我一直使用 Debian。

为此付出的代价要么是“sudo apt-get dist-upgrade && sleep 6 个月”,正如 theman_on_vista 指出的那样,要么只是自己在 /opt 中安装相关的东西。 毕竟,安装一些 jdk、maven 或 ant 和 eclipse|netbeans 就足够简单了(天哪,我确信在某个地方甚至有文档:))

For a start: most -if not all- linux distribution allow you to "easily" install (that is: using the distribution's package manager) jdk's and jre's. The choice essentialy is more about what aspect of the distribution is most relevant to your personal taste.

Personnaly, I've come to value overall distribution stability (as in: upgrades to the base system are more or less guaranteed-not-to-hose-my-workstation-one-day-before-delivery-date) more, which made me stick with debian for the past few years.

The price to pay for that is either "sudo apt-get dist-upgrade && sleep 6 months" as theman_on_vista points out, or just install relevant stuff yourself in /opt. After all, installing some jdk's, maven or ant and eclipse|netbeans is easy enough (hell, there even is documentation somewhere I'm sure :) )

心凉怎暖 2024-07-12 16:18:10

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

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 environment and Java installed (aside from the standard tool chain.)

聆听风音 2024-07-12 16:18:10

正如 Nick Stinemates 提到的,Gentoo 是一个用于开发 Java 的优秀发行版。 据我所知,它是少数几个拥有非常活跃的 Java 维护者小组的发行版之一,几乎人们经常使用的所有内容都已经打包好了。

请注意,Gentoo 并不是一个使用 Ubuntu 的简单发行版——您必须了解一些操作系统的工作原理——但它确实提供了一个优秀的开发环境。

As Nick Stinemates mentioned, Gentoo is an excellent distro for developing Java. It is one of the few Distros that I know of that has a very active Java maintainer group and almost everything that people use regularly is already packaged.

Be warned, Gentoo is not a drop dead simple distro to use Ubuntu -- you have to understand a bit about how the OS works -- but it does provide an excellent developerment environment.

圈圈圆圆圈圈 2024-07-12 16:18:10

最新的 Ubuntu 版本。 它非常简单,并且已经打包了 Sun Java、Eclipse、NetBeans、GlassFish、TomCat 和其他 Java 开发相关软件,因此您无需担心从头开始安装和配置它。

Latest Ubuntu version. It is easy enough and have packaged Sun Java, Eclipse, NetBeans, GlassFish, TomCat and other Java development related software so you have no worries installing and configuring it from scratch.

荆棘i 2024-07-12 16:18:10

您可以选择任何可用的发行版,因为 bcoz dere 不是专门用于 java 开发的 Linux 发行版。 就我个人而言,我在 RHEL 5、Fedora 9、Mandriva 上工作并取得了相当大的成功。

安装 jdk、tomcat、eclipse 等后,在任何 Linux 发行版上运行 java 都是一样的。

You can choose any of the distro available bcoz dere is no linux distro specifically for java development. Personally I have worked on RHEL 5, Fedora 9, Mandriva with considerable success.

Working on java is same on any linux distribution after the installation of jdk, tomcat, eclipse, etc.

樱娆 2024-07-12 16:18:10

如果你使用 ubuntu 或其他 debian 系列,你可以尝试这个命令

sudo apt-get install default-jdk default-jre

if you use ubuntu or other debian family you can try this command

sudo apt-get install default-jdk default-jre
可爱暴击 2024-07-12 16:18:10

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

VMWare 还提供了多个 Java 应用服务器 VM(当然,仅限 VMWare)。

While not really a 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).

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

┼── 2024-07-12 16:18:10

他们网站上的 Oracle JVM 在 debian、archlinux 和 slackware(可能还有它们的衍生产品)上具有相同的速度。 最好的选择是调整您可能使用的 Web 服务器/IDE 的 JVM 参数。 请记住,由于 较大的本机指针,因此您最好相应地调整堆大小。 特别是如果您不希望服务器因 OutOfMemoryError 异常而停止。

Oracle JVM from their website is going to have the same speed on debian, archlinux and slackware (and probably their derivatives). Your best bet is to tweak the JVM arguments for the web servers/IDEs you might be using. Remember that java for x64 architectures will consume more memory due to larger native pointers, so you would do well to tweak your heap size accordingly. Especially if you don't want your server to stop with an OutOfMemoryError exception.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文