FreeBSD/Java Native Port Hits Beta 55
drdink writes "The long awaited FreeBSD/Java port has hit beta. The port was committed yesterday afternoon by Alexey Zelkin. 'This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed.' And more importantly, 'we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE).'"
Great! (Score:4, Funny)
Re:Great! (Score:2, Insightful)
Re:Great! (Score:2, Interesting)
I can understand it's not Sun's job to port it to every platform out there, but they could at least make it easier. Although, if they really do want Java to dominate then they should port it to every platform out there.
Once Java does run everywhere, then they can sell tools and software and not care where you run it and make money that way. Seems like the only people making money off Java these days is IBM, but they got the money and muscle to implement their own compilers and virtual machine.
Any way, I'd like to see Java on the BSD's one day soon.
Re:Great! (Score:1)
Its not just IBM.
Well perhaps they make money on Java itself, but making Java products is profitable.
Open Source Solaris! (Score:3, Interesting)
SunOS was originally taken from BSD if I'm correct. Adding Java to FreeBSD, and porting over maybe jboss would be a boost to the FreeBSD platform. BSD stability, java portability, opensource security, makes for a unique combination, and I'm sure some smart IT directors or consultants would recommend it for critical operations. But first, Java on BSD should be stabilized and left out in the sun to mature.
Re:Open Source Solaris! (Score:5, Informative)
SunOS was originally taken from BSD if I'm correct
The original SunOS yes, but the modern day Solaris SunOS is actually SVR4 based. Sun have made a lot of changes to their original SVR4 codebase over the years, adding amongst other things, a lot of the best bits from the BSD SunOS.
Chris
Re:Open Source Solaris! (Score:4, Informative)
But since Sun was trying to transition people to new Solaris 2 (SVR4), they did go above and beyond what the SVR4 spec says, including a porting and analysis kit (search your scripts for BSD commands, substitute SVR4 equivs, I think they checked flags somewhat as well) which was good, but also foisted the horror that is
Basis for Net and OpenBSD port? (Score:5, Interesting)
I'm a little bit unsure of the licensing that surrounds Java ports, but could NetBSD (and Open perhaps) base a native port on this work? Do Sun hold the reins when it comes to Java ports by only releasing the TCK under restrictive terms?
Currently I develop Java stuff on NetBSD using the official Sun JDK and the Linux emulation layer. If I could get a native version of the JDK then it would be quite nice to lose the need for the emulation stuff from my kernel, along with the Linux bits from SuSE.
Chris
Re:Basis for Net and OpenBSD port? (Score:1, Flamebait)
Re:Basis for Net and OpenBSD port? (Score:1, Insightful)
Getting Started with BSD (Score:2)
Don't give me that ask Google BS. I already know that they have a linux specifc search, it doesn't really answer my question though.
Re:Getting Started with BSD (Score:2)
I think the comment was based on the fact that you gave no info on what you wanted when it is damn easy to find at least cursory info. It's a perception whole "I'm not going to bother to think or work so I'll ask slashdot so they can do it for me".
Re:Getting Started with BSD (Score:5, Informative)
If I wanted to get started on BSD where is a good place to begin?
If you want to try NetBSD, then download the ISO image from:
ftp://ftp.xx.netbsd.org/pub/NetBSD/iso/1.6/i386c d.iso
If there's a NetBSD mirror site for your country, then replace the "xx" in the FTP server address with your country code. Failing that, the canonical ftp.netbsd.org server is pretty nippy.
Then burn the ISO to a CD-ROM, straightforward enough, although if you need extra instructions they can be found here:
http://www.netbsd.org/Documentation/bootcd.html# cdrecord
Finally, grab the extremely good NetBSD Guide from:
http://www.netbsd.org/Documentation/
Installation should take little more than 20 minutes on modern hardware. Configure the system (little more than editing /etc/rc.conf) and reboot. Then read up on pkgsrc, which is described in the NetBSD guide. This will allow you to install loads of extra software.
FreeBSD and OpenBSD are equally worth a look, but I find Net just that little bit easier to install and configure.
Chris
Re:Getting Started with BSD (Score:2)
I just wanted to give a thumbs up to NetBSD. I have an old Sun SPARC machine for a home firewall. I tried installing the Debian SPARC port, but the installer would randomly fail and panic. I tried installing OpenBSD, but its installer would also fail. I tried installing NetBSD. Simple install and no problems! Plus I find the NetBSD
Re:Getting Started with BSD (Score:2)
Re:Getting Started with BSD (Score:5, Informative)
Hey, I once had the same idea (and I'm still on BSD until now), so here is a big clue: FreeBSD. This is a robust and fast OS, very well organized. It has a straightforward method for updating (you can *easily* compile the entire system by yourself) , also featuring an extremely easy-to-use and powerful ports system (the way you can install apps... it's much simpler than anything like apt-get or so). Also, on their site [freebsd.org] you can find a complete, up-to-date and freely available BOOK about using, administrating and getting the best of your system. Try it, I'm sure you would like!!!
Get the ISO (assuming you have an i386):
Only first CD is enough [freebsd.org]
On the Handbook, you find the installation instructions on the second chapter:
Here is the link [freebsd.org]
Okay, I think it's a good start... Note that if your box is not an i386 you still have options... just search their ftp site [freebsd.org]
Another thing, on their site, you can find two versions of the system: 4.7 and 5.0. The 4.7 is still the production release, so the link above is for 4.7. But if you want, you could also install 5.0, but be sure to read this [freebsd.org] before.
Good Luck!
Re:Getting Started with BSD (Score:2, Informative)
Re:Getting Started with BSD (Score:2)
Try http://www.google.com/bsd
Re:Getting Started with BSD (Score:2, Informative)
NetBSD Handbook [mclink.it]
OpenBSD FAQ [openbsd.org]
Re:Getting Started with BSD (Score:1)
Freebsd.org (Score:5, Informative)
You can grab an ISO ( only need disk 1 ) or just install off floppy direct across the wire.
Plenty of manuals, how-tos, etc.. Plus you dont have to worry about what 'flavor' you are using like with linux.. If it FBSD, its FBSD...
The others are fine too, thats just my preference.
Just to clarify (Score:5, Informative)
Re:Just to clarify (Score:2)
According to http://www.freebsd.org/java/dists/13.html [freebsd.org], only 2-3 weeks ago did 1.3 pass all of Sun's compatability tests. We're still waiting for a solid 1.4 release on FreeBSD because of the nonsense requiring X, or at least Xvfb, to be running to support Java graphics calls - what was Sun thinking? Right, Java was originally designed by a bunch of 20-something kids at Sun that never had any experience in the real world doing languages...
Re:Just to clarify (Score:5, Informative)
Er, that's exactly what Sun (finally) fixed in 1.4; the ability to run AWT applications "headless" (without X). Finally your app can call Toolkit.getToolkit().beep() and not crash horribly trying to connect to :0...
Jon.
Re:Just to clarify (Score:2)
Frankly, I'll believe it when I see it.
Linux bin? (Score:5, Interesting)
SO we stil need to bootstrap off of linux's jdk binary? When will we have a version that's independent of the linux binaries?
Re:Linux bin? (Score:5, Informative)
All 1.4.1 source compiles require a working 1.4.1 java compiler. After you have compiled and installed it once, you can set NATIVE_BOOTSTRAP and get rid of the linux bins.
BWP
Re:Linux bin? (Score:2)
Granted.. it uses
Re:Linux bin? (Score:3, Informative)
You install the binary Linux JDK so you can compile the FreeBSD JDK sources to binary form. After this you can set NATIVE_BOOTSTRAP and get rid of the Linux binary because you now have a FreeBSD binary (but you can't distribute it).
Once Alexey gets the TCK to pass, and Sun gets them the stamp, then you won't have to compile anything, just install the FreeBSD binary JDK.
The problem right now is that the FreeBSD Project/Foundation CAN NOT distribute binary JDKs, so you have to compile it yourself, which requires a working compiler...
BWP
Re:Linux bin? (Score:2)
You aren't lost, I was
Re:Linux bin? (Score:5, Informative)
SO we stil need to bootstrap off of linux's jdk binary?
Yes. Presumably once the JDK works on FreeBSD, Sun will merge in the FreeBSD-specific code, and we'll have a version independent of Linux binaries.
Note that ones this FreeBSD port is complete, you should be a install precompiled JDK binaries. This hasn't been the case in the past because the 1.2/1.3 builds have all been unofficial, and can't be distributed in binary form.
Re:Linux bin? (Score:1)
What this is is an upgrade to the eyesbeyond patchset used to build JDK1.2 and 1.3 before. It's been merged into the ports tree, hence the announcement; it allows you to build a native FreeBSD JDK using the Sun sources and, for boostrapping, the Linux binaries.
Unless something massive and invisible has happened that I missed, there will be no binary packages as a result of this release, because of Sun's licensing. If you'd taken the time to build the port in question, you'll note that you still have to go through a clickwrap to obtain the sources from Sun; it doesn't auto-fetch like most ports. Until Sun's native port is released, don't expect a native FreeBSD binary JDK unless you build one yourself.
Re:Linux bin? (Score:2)
I believe this is a precursor to the Sun release because -- as far as I know -- no one else is working on porting Java to FreeBSD.
Re:Linux bin? (Score:1)
I'd like a completely native version of the JDK. Also, it would be nice to get the olders versions certified and stuff. Just to be complete, I guess.
Re:Linux bin? (Score:1)
Re:Linux bin? (Score:1)
the jdk build. That said, I've heard rumblings
recently on freebsd-java that 1.4.1 is getting
_very_ close to passing the sun tests which will
allow freebsd to distribute a native binary package.
Huh? (Score:2)
And I installed it over 6 months ago. Am I missing something here? Or was that stuff alpha to begin with (although I never experienced problems with it, it didn't _feel_ beta anyway)
Re:Huh? (Score:2, Informative)
JDK 1.3 and 1.4 are very different things. Most notable differences from internals point of view that in 1.4 only native threading model is supported. And since green_threads support was dropped -- it become much more difficult to port JDK 1.4 anythere.
Hello again to Freenet! (Score:2)
anyword on native thread support vs. green? (Score:2)
Any further thoughts/ideas on this?