java FreeBSD 作为一个开发平台有多好?

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

How good is FreeBSD as a development platform?

javaoperating-systemfreebsdplatform

提问by Marko

I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform?

我知道很多网络托管提供商都提供 FreeBSD,但 FreeBSD 作为开发平台有多好?

Specifically, is Java 1.6 available in it? Is there somthing specific that it offers with regard to tools that is not available under Linux?

具体来说,Java 1.6 是否可用?对于 Linux 下不可用的工具,它是否提供了一些特定的东西?

采纳答案by apolinsky

I've always found FreeBSD a wonderful secure hosting environment, but perhaps not the easiest development platform. You will have to dig a bit to get Java 1.6 up and running, though I think it will be doable. I hope you are familiar with emacs or vi. The ports system will afford you access to many pieces of software, but they will have to be compiled from source code. If you are familiar with standard Unix command line tools and the the command line itself, you should have no problems with FreeBSD.

我一直认为 FreeBSD 是一个很棒的安全托管环境,但可能不是最简单的开发平台。虽然我认为这是可行的,但您将不得不进行一些挖掘才能启动并运行 Java 1.6。我希望你熟悉 emacs 或 vi。端口系统可以让您访问许多软件,但它们必须从源代码编译。如果您熟悉标准的 Unix 命令行工具和命令行本身,那么您应该对 FreeBSD 没有任何问题。

Alan

艾伦

回答by Keltia

You can get binary distributions of Java from the FreeBSD Foundation, they signed an agreement with Sun for that. Art from Java, FreeBSD is awonderful development platform with every language and environement you may need/want. Disclaimer: I've been a FreeBSD developer for more than 13 years.

您可以从FreeBSD Foundation获得 Java 的二进制发行,他们为此与 Sun 签署了协议。来自 Java 的艺术,FreeBSD 是出色的开发平台,具有您可能需要/想要的每种语言和环境。免责声明:我作为 FreeBSD 开发人员已经超过 13 年了。

回答by Tiberiu Ana

Putting the actual issues with Java and such aside, the real question is what are you developing for.

把 Java 的实际问题放在一边,真正的问题是你在.

If you are writing rich desktop applications, then you naturally want to develop on the platform that is most popular with your users -- and I'm pretty sure that can't be FreeBSD.

如果您正在编写丰富的桌面应用程序,那么您自然希望在最受用户欢迎的平台上进行开发 —— 我很确定那不可能是 FreeBSD。

If you are developing web applications, then you want your development serverto be as close as possible to your production hosting environment. If you are going to deploy on FreeBSD, then it might make sense to also run it locally, at least in a virtual machine. (Browser testing, of course, is a different issue.)

如果您正在开发 Web 应用程序,那么您希望您的开发服务器尽可能靠近您的生产托管环境。如果您打算在 FreeBSD 上进行部署,那么至少在虚拟机中也在本地运行它可能是有意义的。(当然,浏览器测试是一个不同的问题。)

Do keep in mind that, while all development tools you can run on BSD are also available on Linux, the opposite is certainly not true, especially since Linux has gained more commercial traction.

请记住,虽然您可以在 BSD 上运行的所有开发工具也可以在 Linux 上使用,但事实并非如此,尤其是因为 Linux 获得了更多的商业吸引力。

All this being said, the best way is to see for yourself: try replicating your development environment, whatever that might be, on FreeBSD. If you succeed (and you're coming from Linux, heh), once you get coding you won't even care what OS you're on.

话虽如此,最好的方法是亲眼看看:尝试在 FreeBSD 上复制您的开发环境,无论它是什么。如果你成功了(而且你来自 Linux,呵呵),一旦你开始编码,你甚至不会关心你在什么操作系统上。

回答by Hernán

FreeBSD is an awesome platform for development. If you look at the kernel source, for example, it's so clean and understandable in comparison with the mess at Linux. It's stable, and the community is very professional. I'm using FreeBSD since release 4.

FreeBSD 是一个很棒的开发平台。例如,如果您查看内核源代码,与 Linux 的混乱相比,它是如此干净和易于理解。很稳定,社区也很专业。我从第 4 版开始使用 FreeBSD。

But for Java development I would choose Linux, Windows or Solaris. The lastest Java binaries perform better on my Ubuntu than on XP (Netbeans performs better as IDE also).

但是对于 Java 开发,我会选择 Linux、Windows 或 Solaris。最新的 Java 二进制文件在我的 Ubuntu 上的性能比在 XP 上更好(Netbeans 作为 IDE 的性能也更好)。

回答by JeeBee

FreeBSD is an awesome hosting platform for live environments, however Java has been a thorn in its side for quite some time. However it appears this is no longer the case although installation is not trivial.

FreeBSD 是一个很棒的实时环境托管平台,但是 Java 一直是它的眼中钉。然而,尽管安装并非微不足道,但情况似乎不再如此。

You have to get the JDK source from Sun, then apply the FreeBSD patch set from http://www.eyesbeyond.com/freebsddom/java/jdk16.html, and then compile.

您必须从 Sun 获取 JDK 源代码,然后应用http://www.eyesbeyond.com/freebsddom/java/jdk16.html 中的 FreeBSD 补丁集,然后编译。

More information: http://www.freebsd.org/java/

更多信息:http: //www.freebsd.org/java/

Once you have the JDK, running Eclipse and other Java applications should be a lot easier, but I don't know about SWT for FreeBSD... anyone?

一旦你有了 JDK,运行 Eclipse 和其他 Java 应用程序应该会容易得多,但我不知道 FreeBSD 的 SWT ......有人吗?

回答by Hank

You can either run the native Java 1.6 port or the Linux JDK from Sun in Linux emulation mode, both are available in the ports tree. I used to run the Linux JDK (with Emacs JDEE) way back without any problems, your mileage may vary however.

您可以在 Linux 仿真模式下运行本机 Java 1.6 端口或 Sun 的 Linux JDK,两者都在端口树中可用。我曾经运行 Linux JDK(使用 Emacs JDEE)没有任何问题,但是你的里程可能会有所不同。

As for IDEs, both Netbeans and Eclipse are available in the ports tree.

对于 IDE,端口树中提供了 Netbeans 和 Eclipse。

I recommend at least trying it out, if for no other reason than to see what the fuss is about. All it'll cost you is time.

我建议至少尝试一下,如果不是为了看看有什么大惊小怪的原因。你所付出的只是时间。

回答by Hank

I use FreeBSD solely for development. It is quite secure and incredibly stable. The stability is huge factor for me, and FreeBSd makes up where Linux and windows leave you wanting.

我仅将 FreeBSD 用于开发。它非常安全且非常稳定。稳定性对我来说是一个重要因素,而 FreeBSd 弥补了 Linux 和 Windows 的不足。

回答by Basil Bourque

TrueOS

真操作系统

enter image description here

在此处输入图片说明

TrueOS, the evolution of PC-BSD, is built on top of FreeBSD.

TrueOSPC-BSD的演变,建立在FreeBSD之上。

With just a click or two in the App Cafe (package manager built into TrueOS), I installed OpenJDK8 Update 102 (the latest) and NetBeans8.1 (the latest).

只需在 App Cafe(内置于 TrueOS 中的包管理器)中单击或两次,我就安装了OpenJDK8 Update 102(最新)和NetBeans8.1(最新)。

Took about three minutes for the automated download and install by App Cafe. Then launched NetBeans and had a Hello World app up and running in another minute.

App Cafe自动下载和安装大约需要三分钟。然后启动 NetBeans 并在另一分钟内启动并运行一个 Hello World 应用程序。

回答by Brian Knoblauch

Well, there's no Java 1.6 in the /usr/ports of the version I recently installed (latest version AFAIK). The port of Netbeans is only up to 5.5 bundled. At a minimum you'd have to go look around for more current versions. Doesn't look promising as a fully kept up to date development platform.

好吧,我最近安装的版本(最新版本 AFAIK)的 /usr/ports 中没有 Java 1.6。Netbeans 的端口最多只捆绑了 5.5。至少,您必须四处寻找更多最新版本。作为一个完全保持最新的开发平台,看起来并不乐观。

回答by max

If your main concern is Java I suggest staying away from FreeBSD. Getting a Java development setup up and running is much easier on Linux/OpenSolaris.

如果您主要关注 Java,我建议您远离 FreeBSD。在 Linux/OpenSolaris 上启动和运行 Java 开发设置要容易得多。

*BSD is the preferred development platform for man System-, Hardware- and Kernel-Level coders, because this parts a usually better documented than on Linux and you have a "official" target while on linux distributions vary in patches etc.

*BSD 是系统级、硬件级和内核级编码人员的首选开发平台,因为这部分通常比 Linux 上的文档更好,并且您有一个“官方”目标,而在 linux 发行版上,补丁等各不相同。