Solaris / FreeBSD与Linux for Java开发

时间:2021-12-29 17:40:52

Years ago, I switched from Windows to Linux to get a more lightweight and stable desktop environment. It worked out well, but I'm having enough problems with Linux to consider another change. Specifically, I'm looking for better stability in the system libraries.

多年前,我从Windows切换到Linux,以获得更轻便,更稳定的桌面环境。它运行良好,但我有足够的Linux问题考虑另一个变化。具体来说,我正在寻找系统库中更好的稳定性。

I use Debian Unstable (argh..I meant Testing) because I need to track development in some Linux applications. Since they are in active development, I expect occasional bugs in them. My problem is with the frequency of breakage in basic system utilities, like hdparm or halevt. In the past year, every time I have updated a system or done a fresh install, some different utility has been broken.

我使用Debian Unstable(argh ......我的意思是测试),因为我需要跟踪某些Linux应用程序的开发。由于它们正在积极开发中,我希望它们偶尔会出现错误。我的问题是基本系统实用程序(如hdparm或halevt)的破坏频率。在过去的一年中,每次更新系统或进行全新安装时,都会破坏一些不同的实用程序。

The best alternatives seem to be FreeBSD and Solaris. (Solaris is free for development use, which is all I care about). I'm asking here which would be better for my use and/or whether they have enough of their own problems that I would be better off sticking with Linux.

最好的替代品似乎是FreeBSD和Solaris。 (Solaris可供开发使用,这是我所关心的)。我在这里问哪个更适合我的使用和/或他们是否有足够的自己的问题,我会更好地坚持使用Linux。

My usage:

  • Java development, programming style is carefully system-independent, desktop apps, target users mostly on Windows and OS X

    Java开发,编程风格是精心独立于系统的桌面应用程序,主要针对Windows和OS X的目标用户

  • Virtualization to run apps on various OSes

    虚拟化以在各种操作系统上运行应用程序

  • General destop stuff: wordprocessing, web, music

    一般的destop东西:文字处理,网络,音乐

  • Not used as a server

    不用作服务器

So far, it seems to be:

到目前为止,似乎是:

  • FreeBSD Pro documentation, community, clean design, extensive ports Con Java support

    FreeBSD Pro文档,社区,简洁设计,广泛的端口Con Java支持

  • Solaris Pro Java and virtualization support Con see FreeBSD pro stuff

    Solaris Pro Java和虚拟化支持Con看FreeBSD pro的东西

9 个解决方案

#1


1  

I would suggest separating concerns.

我建议分开关注点。

Choose a stable distribution as the host operating system and then install a virtual machine environment in it (like vmware player). Then install those unstable ones you need to track inside it, plus perhaps even a Windows instance.

选择稳定的分发作为主机操作系统,然后在其中安装虚拟机环境(如vmware播放器)。然后安装那些你需要在其中跟踪的不稳定的,甚至是一个Windows实例。

You can then run those you need to, when you need to, while keeping your stable distribution unharmed.

然后,您可以在需要时运行您需要的那些,同时保持稳定的分布不受伤害。

#2


4  

Well, obviously, Java on Solaris is well supported and really stable. It is (or at least was) a primary development platform for the Java team.

嗯,显然,Solaris上的Java得到了很好的支持并且非常稳定。它(或者至少是)Java团队的主要开发平台。

Solaris is pickier about hardware than certainly Linux is, in terms of compatibility and available drivers. It would behoove you to check against the compatibility lists, especially for your graphics card, to make sure it works well for you. Solaris has a pretty rock stable userland, and it also has the other interesting Solaris features that you may or may not want to use (ZFS, DTrace, SMF, etc.).

就兼容性和可用驱动程序而言,Solaris在硬件方面比Linux更为挑剔。你应该检查兼容性列表,特别是你的显卡,以确保它适合你。 Solaris有一个非常稳定的用户区,它还有其他有趣的Solaris功能,您可能想要或不想使用它们(ZFS,DTrace,SMF等)。

At a stability level, FreeBSD is super stable as well, being as the kernel and userland track each other as a whole. I can't speak to Java compatibility on FreeBSD. I can say I didn't have a good experience years ago, but...that was years ago. Linux I believe has/had better Java support than FreeBSD.

在稳定性水平上,FreeBSD也是超级稳定的,就像内核和用户区一样整体跟踪。我不能说FreeBSD上的Java兼容性。我可以说几年前我没有很好的经历,但是......那是多年前的事了。 Linux我相信有比FreeBSD更好的Java支持。

Both systems have large suites of available software packages available, FreeBSD is likely larger, and there's a better chance something may have been ported to FreeBSD over Solaris (depending on the niche of the package, of course).

两个系统都有大量可用的软件包,FreeBSD可能更大,并且有更好的机会可能已经通过Solaris移植到FreeBSD上(当然,取决于软件包的利基)。

Solaris I believe has a bit higher base resource requirements than FreeBSD, if that matters, most likely not. "Solaris on the desktop" is a bit of an oxymoron. It certainly does the basic stuff, but it's not it's dominant area of success (things like sound, flash, video, etc.)

Solaris我认为基本资源要求比FreeBSD要高一些,如果这很重要,很可能不会。 “桌面上的Solaris”有点像矛盾。它肯定会做基本的东西,但它不是它的主要成功领域(如声音,闪光灯,视频等)

If your hardware works with Solaris (or you're willing to buy hardware), then I would go with Solaris. If the "multi media" desktop is really important to you, FreeBSD may be better assuming the Java works.

如果您的硬件适用于Solaris(或者您愿意购买硬件),那么我会使用Solaris。如果“多媒体”桌面对您来说非常重要,那么假设Java可以运行,FreeBSD可能会更好。

Me, I use a Mac. I don't say that in some smug way or anything, but if you want a Unix workstation environment to develop Java on, a Mac is really hard to beat, especially now with Oracle picking up the SDK support to keep Java (ideally) up to date more timely than Apple did. (Yes, there are lots of reasons to not like a Mac, but if "unix" and "java" are high on your list of requirements, the Mac actually meets those pretty well.)

我,我用的是Mac。我不是说以某种自鸣得意的方式或任何东西,但如果你想要一个Unix工作站环境来开发Java,Mac真的很难被击败,特别是现在Oracle已经获得了SDK支持以保持Java(理想情况下)到目前为止比Apple更及时。 (是的,有很多理由不喜欢Mac,但如果“unix”和“java”在你的要求列表中很高,那么Mac实际上很好地满足了这些要求。)

I used Ubuntu for about a year and half. 8.x was nice. 9.x not so much, never upgraded to 10.x. I'd use any of these over Windows.

我使用Ubuntu大约一年半。 8.x很好。 9.x没那么多,从未升级到10.x.我会在Windows上使用其中任何一个。

So, in my priority list: Mac, Solaris, Linux, BSD unless BSD's Java support has gotten completely hassle free and functional with no "Oh, you're using BSD"isms. Then I'd try BSD before Linux.

因此,在我的优先级列表中:Mac,Solaris,Linux,BSD,除非BSD的Java支持已经完全无忧无虑且没有“哦,你正在使用BSD”主义。然后我会在Linux之前尝试BSD。

#3


2  

I suggest you to stick to linux. instead of using unstable Debian, you might want to consider something like Fedora. it gets updates frequently. You have Java IDE's(Eclipse, Netbeans) and Linux java support. you can also use virtual machines like virtualbox.

我建议你坚持使用linux。而不是使用不稳定的Debian,你可能想要考虑像Fedora这样的东西。它经常得到更新。您拥有Java IDE(Eclipse,Netbeans)和Linux java支持。您还可以使用虚拟机等虚拟机。

#4


1  

At the risk of sounding heretical, you should re-consider Java development on Windows.

听到异端的风险,你应该重新考虑Windows上的Java开发。

Windows XP is VERY stable [0].

Windows XP非常稳定[0]。

The only problem is that the "main" Java IDE for Windows (Eclipse) is VERY VERY memory hoggish.

唯一的问题是Windows的“主要”Java IDE(Eclipse)非常非常内存。

[0] this comes from someone who installed his first Slackware to replace Windows 3.11 at the very first part time office job he had and have run Linux nearly non-stop for ~15 years

[0]这来自安装他的第一个Slackware的人,他在他第一次兼职办公室工作时取代了Windows 3.11,并且几乎不停地运行Linux大约15年

#5


1  

FreeBSD's main weaknesses here are Java and virtualization support, which happen to be Solaris' strengths. I wouldn't recommend Solaris 10 as a desktop OS, but try Solaris 11 Express, the descendent of OpenSolaris. It's a great OS, whose main weakness in my mind is its small user base. The documentation from Oracle is good, and there is an active mailing list, but you'll find less in the way of Google results for that one obscure issue etc.

FreeBSD的主要缺点是Java和虚拟化支持,这恰好是Solaris的优势。我不建议将Solaris 10用作桌面操作系统,但请尝试使用Solaris 11 Express,它是OpenSolaris的后代。这是一个很棒的操作系统,我认为它的主要弱点是它的用户群很小。来自Oracle的文档是好的,并且有一个活跃的邮件列表,但是对于那个模糊不清的问题,你会发现谷歌的结果更少。

I'd expect that FreeBSD would be more stable (least changing from release to release) than either Linux or S11E.

我希望FreeBSD比Linux或S11E更稳定(从发布到发布最不变)。

In terms of general desktop use, S11E might have the edge, but neither is near the level of say Mac OS X.

在一般桌面使用方面,S11E可能有优势,但两者都没有接近Mac OS X的水平。

#6


0  

Consider the latest Ubuntu (10.10?) instead of debian unstable. Ubuntu is far less conservative than Debian, so you will get closer to the bleeding edge.

考虑最新的Ubuntu(10.10?)而不是debian unstable。 Ubuntu远比Debian保守,所以你会更接近最前沿。

Debian unstable is labeled as so for a reason...

因为某种原因,Debian unstable被标记为......

#7


0  

Of all the thousands of Linux distributions out there, you picked the one with the word "unstable" in it ;)? Get Ubuntu / Fedora / OpenSuse / Slackware or something equally well-tested and stable. Go to Distrowatch if you need help choosing.

在那里的所有数千个Linux发行版中,你选择了一个带有“不稳定”的单词;)?获取Ubuntu / Fedora / OpenSuse / Slackware或同样经过良好测试和稳定的东西。如果您需要帮助选择,请转到Distrowatch。

#8


0  

Debian testing will do what you want, it's unstable + 10 days if there are no bugs, and you can still use sid sources with pinning if you need some up to date packages.

Debian测试会做你想要的,如果没有bug,它会不稳定+ 10天,如果你需要一些最新的软件包,你仍然可以使用固定来源。

#9


0  

It really have to be one machine ?

它真的必须是一台机器?

It would be much simpler to divide work on 2-3 machines. I have Win7+Office on laptop, Centos6 on PC (plenty of RAM and VM's), older PC with Centos5 (with OpenVZ, plenty of linux distros on it), old laptop with gentoo (newest soft etc... and i'm more careful when OS is direct on hardware), and two more old PC's just in case.

在2-3台机器上划分工作要简单得多。笔记本电脑上有Win7 + Office,PC上有Centos6(大量内存和虚拟机),带有Centos5的旧电脑(带有OpenVZ,上面有大量的Linux发行版),带有gentoo的旧笔记本电脑(最新的软件......等等)当操作系统直接在硬件上时更加小心),以及两个更旧的PC以防万一。

If it have to be one computer then I think RHEL6 + OpenVZ would be the best solution. OpenVZ containers can run without problem with other types of virtualization at the same time. So if you will need Windows on VM, there is no problem for doing that.

如果它必须是一台计算机,那么我认为RHEL6 + OpenVZ将是最好的解决方案。 OpenVZ容器可以同时运行其他类型的虚拟化而没有问题。因此,如果您需要VM上的Windows,那么这样做没有问题。

#1


1  

I would suggest separating concerns.

我建议分开关注点。

Choose a stable distribution as the host operating system and then install a virtual machine environment in it (like vmware player). Then install those unstable ones you need to track inside it, plus perhaps even a Windows instance.

选择稳定的分发作为主机操作系统,然后在其中安装虚拟机环境(如vmware播放器)。然后安装那些你需要在其中跟踪的不稳定的,甚至是一个Windows实例。

You can then run those you need to, when you need to, while keeping your stable distribution unharmed.

然后,您可以在需要时运行您需要的那些,同时保持稳定的分布不受伤害。

#2


4  

Well, obviously, Java on Solaris is well supported and really stable. It is (or at least was) a primary development platform for the Java team.

嗯,显然,Solaris上的Java得到了很好的支持并且非常稳定。它(或者至少是)Java团队的主要开发平台。

Solaris is pickier about hardware than certainly Linux is, in terms of compatibility and available drivers. It would behoove you to check against the compatibility lists, especially for your graphics card, to make sure it works well for you. Solaris has a pretty rock stable userland, and it also has the other interesting Solaris features that you may or may not want to use (ZFS, DTrace, SMF, etc.).

就兼容性和可用驱动程序而言,Solaris在硬件方面比Linux更为挑剔。你应该检查兼容性列表,特别是你的显卡,以确保它适合你。 Solaris有一个非常稳定的用户区,它还有其他有趣的Solaris功能,您可能想要或不想使用它们(ZFS,DTrace,SMF等)。

At a stability level, FreeBSD is super stable as well, being as the kernel and userland track each other as a whole. I can't speak to Java compatibility on FreeBSD. I can say I didn't have a good experience years ago, but...that was years ago. Linux I believe has/had better Java support than FreeBSD.

在稳定性水平上,FreeBSD也是超级稳定的,就像内核和用户区一样整体跟踪。我不能说FreeBSD上的Java兼容性。我可以说几年前我没有很好的经历,但是......那是多年前的事了。 Linux我相信有比FreeBSD更好的Java支持。

Both systems have large suites of available software packages available, FreeBSD is likely larger, and there's a better chance something may have been ported to FreeBSD over Solaris (depending on the niche of the package, of course).

两个系统都有大量可用的软件包,FreeBSD可能更大,并且有更好的机会可能已经通过Solaris移植到FreeBSD上(当然,取决于软件包的利基)。

Solaris I believe has a bit higher base resource requirements than FreeBSD, if that matters, most likely not. "Solaris on the desktop" is a bit of an oxymoron. It certainly does the basic stuff, but it's not it's dominant area of success (things like sound, flash, video, etc.)

Solaris我认为基本资源要求比FreeBSD要高一些,如果这很重要,很可能不会。 “桌面上的Solaris”有点像矛盾。它肯定会做基本的东西,但它不是它的主要成功领域(如声音,闪光灯,视频等)

If your hardware works with Solaris (or you're willing to buy hardware), then I would go with Solaris. If the "multi media" desktop is really important to you, FreeBSD may be better assuming the Java works.

如果您的硬件适用于Solaris(或者您愿意购买硬件),那么我会使用Solaris。如果“多媒体”桌面对您来说非常重要,那么假设Java可以运行,FreeBSD可能会更好。

Me, I use a Mac. I don't say that in some smug way or anything, but if you want a Unix workstation environment to develop Java on, a Mac is really hard to beat, especially now with Oracle picking up the SDK support to keep Java (ideally) up to date more timely than Apple did. (Yes, there are lots of reasons to not like a Mac, but if "unix" and "java" are high on your list of requirements, the Mac actually meets those pretty well.)

我,我用的是Mac。我不是说以某种自鸣得意的方式或任何东西,但如果你想要一个Unix工作站环境来开发Java,Mac真的很难被击败,特别是现在Oracle已经获得了SDK支持以保持Java(理想情况下)到目前为止比Apple更及时。 (是的,有很多理由不喜欢Mac,但如果“unix”和“java”在你的要求列表中很高,那么Mac实际上很好地满足了这些要求。)

I used Ubuntu for about a year and half. 8.x was nice. 9.x not so much, never upgraded to 10.x. I'd use any of these over Windows.

我使用Ubuntu大约一年半。 8.x很好。 9.x没那么多,从未升级到10.x.我会在Windows上使用其中任何一个。

So, in my priority list: Mac, Solaris, Linux, BSD unless BSD's Java support has gotten completely hassle free and functional with no "Oh, you're using BSD"isms. Then I'd try BSD before Linux.

因此,在我的优先级列表中:Mac,Solaris,Linux,BSD,除非BSD的Java支持已经完全无忧无虑且没有“哦,你正在使用BSD”主义。然后我会在Linux之前尝试BSD。

#3


2  

I suggest you to stick to linux. instead of using unstable Debian, you might want to consider something like Fedora. it gets updates frequently. You have Java IDE's(Eclipse, Netbeans) and Linux java support. you can also use virtual machines like virtualbox.

我建议你坚持使用linux。而不是使用不稳定的Debian,你可能想要考虑像Fedora这样的东西。它经常得到更新。您拥有Java IDE(Eclipse,Netbeans)和Linux java支持。您还可以使用虚拟机等虚拟机。

#4


1  

At the risk of sounding heretical, you should re-consider Java development on Windows.

听到异端的风险,你应该重新考虑Windows上的Java开发。

Windows XP is VERY stable [0].

Windows XP非常稳定[0]。

The only problem is that the "main" Java IDE for Windows (Eclipse) is VERY VERY memory hoggish.

唯一的问题是Windows的“主要”Java IDE(Eclipse)非常非常内存。

[0] this comes from someone who installed his first Slackware to replace Windows 3.11 at the very first part time office job he had and have run Linux nearly non-stop for ~15 years

[0]这来自安装他的第一个Slackware的人,他在他第一次兼职办公室工作时取代了Windows 3.11,并且几乎不停地运行Linux大约15年

#5


1  

FreeBSD's main weaknesses here are Java and virtualization support, which happen to be Solaris' strengths. I wouldn't recommend Solaris 10 as a desktop OS, but try Solaris 11 Express, the descendent of OpenSolaris. It's a great OS, whose main weakness in my mind is its small user base. The documentation from Oracle is good, and there is an active mailing list, but you'll find less in the way of Google results for that one obscure issue etc.

FreeBSD的主要缺点是Java和虚拟化支持,这恰好是Solaris的优势。我不建议将Solaris 10用作桌面操作系统,但请尝试使用Solaris 11 Express,它是OpenSolaris的后代。这是一个很棒的操作系统,我认为它的主要弱点是它的用户群很小。来自Oracle的文档是好的,并且有一个活跃的邮件列表,但是对于那个模糊不清的问题,你会发现谷歌的结果更少。

I'd expect that FreeBSD would be more stable (least changing from release to release) than either Linux or S11E.

我希望FreeBSD比Linux或S11E更稳定(从发布到发布最不变)。

In terms of general desktop use, S11E might have the edge, but neither is near the level of say Mac OS X.

在一般桌面使用方面,S11E可能有优势,但两者都没有接近Mac OS X的水平。

#6


0  

Consider the latest Ubuntu (10.10?) instead of debian unstable. Ubuntu is far less conservative than Debian, so you will get closer to the bleeding edge.

考虑最新的Ubuntu(10.10?)而不是debian unstable。 Ubuntu远比Debian保守,所以你会更接近最前沿。

Debian unstable is labeled as so for a reason...

因为某种原因,Debian unstable被标记为......

#7


0  

Of all the thousands of Linux distributions out there, you picked the one with the word "unstable" in it ;)? Get Ubuntu / Fedora / OpenSuse / Slackware or something equally well-tested and stable. Go to Distrowatch if you need help choosing.

在那里的所有数千个Linux发行版中,你选择了一个带有“不稳定”的单词;)?获取Ubuntu / Fedora / OpenSuse / Slackware或同样经过良好测试和稳定的东西。如果您需要帮助选择,请转到Distrowatch。

#8


0  

Debian testing will do what you want, it's unstable + 10 days if there are no bugs, and you can still use sid sources with pinning if you need some up to date packages.

Debian测试会做你想要的,如果没有bug,它会不稳定+ 10天,如果你需要一些最新的软件包,你仍然可以使用固定来源。

#9


0  

It really have to be one machine ?

它真的必须是一台机器?

It would be much simpler to divide work on 2-3 machines. I have Win7+Office on laptop, Centos6 on PC (plenty of RAM and VM's), older PC with Centos5 (with OpenVZ, plenty of linux distros on it), old laptop with gentoo (newest soft etc... and i'm more careful when OS is direct on hardware), and two more old PC's just in case.

在2-3台机器上划分工作要简单得多。笔记本电脑上有Win7 + Office,PC上有Centos6(大量内存和虚拟机),带有Centos5的旧电脑(带有OpenVZ,上面有大量的Linux发行版),带有gentoo的旧笔记本电脑(最新的软件......等等)当操作系统直接在硬件上时更加小心),以及两个更旧的PC以防万一。

If it have to be one computer then I think RHEL6 + OpenVZ would be the best solution. OpenVZ containers can run without problem with other types of virtualization at the same time. So if you will need Windows on VM, there is no problem for doing that.

如果它必须是一台计算机,那么我认为RHEL6 + OpenVZ将是最好的解决方案。 OpenVZ容器可以同时运行其他类型的虚拟化而没有问题。因此,如果您需要VM上的Windows,那么这样做没有问题。