Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Java Operating Systems Programming BSD

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).'"
This discussion has been archived. No new comments can be posted.

FreeBSD/Java Native Port Hits Beta

Comments Filter:
  • Great! (Score:4, Funny)

    by Hellraisr ( 305322 ) on Friday March 07, 2003 @11:05AM (#5458623)
    Now maybe Sun can port this to their Solaris platform..
    • Re:Great! (Score:2, Insightful)

      by Anonymous Coward
      How about Sun actually delivers on the 'Java everywhere' advertising slogan and actually puts forth the effort to ship Java for the BSD's, just like they do for Windows, Linux etc?

      • Re:Great! (Score:2, Interesting)

        by bsd_usr ( 140514 )
        That's what I'm saying!!!! They're run everywhere slogan is completely misleading! Java doesn't run everywhere, as it should.

        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.

        • Actually, we are making a decent sum on Java as well.
          Its not just IBM.
          Well perhaps they make money on Java itself, but making Java products is profitable.
  • Open Source Solaris! (Score:3, Interesting)

    by mnmn ( 145599 ) on Friday March 07, 2003 @11:25AM (#5458831) Homepage

    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.
    • by LizardKing ( 5245 ) on Friday March 07, 2003 @11:33AM (#5458910)

      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

      • by cant_get_a_good_nick ( 172131 ) on Friday March 07, 2003 @02:12PM (#5460606)
        Minor quibble: SVR4 itself is an amalgam of SYS5 and BSD. Sun didn't didn't mix them totally on their own, it's part of SVR4.

        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 /usr/ucb/cc. Sun also added bits to BSD when SUnOS 4 was around. When folks bitch about how Linux rul3z and Solaris suxx0rs cause they don't give anything back, they need to remember that Sun invented NFS and some other things.
  • by LizardKing ( 5245 ) on Friday March 07, 2003 @11:30AM (#5458875)

    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

  • If I wanted to get started on BSD where is a good place to begin?

    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.
    • by LizardKing ( 5245 ) on Friday March 07, 2003 @01:27PM (#5460109)

      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


      • 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 /etc/rc.conf easier to configure than Debian.

    • What are you wanting to do?
    • by hmendes_br ( 534740 ) on Friday March 07, 2003 @02:14PM (#5460628)

      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!

    • Of course the linux specific search doesn't answer your question. It's for linux.

      Try http://www.google.com/bsd
    • FreeBSD Handbook [freebsd.org]

      NetBSD Handbook [mclink.it]

      OpenBSD FAQ [openbsd.org]

    • Here's a great place: bsdforums [bsdforums.org]
    • Freebsd.org (Score:5, Informative)

      by nurb432 ( 527695 ) on Sunday March 09, 2003 @02:23PM (#5471959) Homepage Journal
      Start there, its the largest and best supported ( meaning for getting help, and hardware support ) BSD out there of the 3 main OSS BSD's..

      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)

    by Larne ( 9283 ) on Friday March 07, 2003 @01:30PM (#5460147)
    This is a native port of JDK 1.4.1, which has indeed been eagerly awaited. High-quality native ports of the JDK 1.3 series have been around for quite some time.
    • Beg to differ a wee bit...

      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)

        by JKR ( 198165 ) on Sunday March 09, 2003 @02:02PM (#5471851)
        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

        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.

    • I believe this is actually to be the basis for a binary release, which was announced about 2 years ago.

      Frankly, I'll believe it when I see it.
  • Linux bin? (Score:5, Interesting)

    by sporty ( 27564 ) on Friday March 07, 2003 @01:44PM (#5460299) Homepage
    From the make file...

    BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-j dk14


    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)

      by bovinewasteproduct ( 514128 ) <gclarkii@gma i l .com> on Friday March 07, 2003 @02:17PM (#5460662) Homepage
      When Alexey gets all 27,000+ tests passing, Sun stamps it and they get to ship a binary image, instead of making people compile from the source.

      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
      • My next question is, why not patch the linux source version to make a freebsd binary directly? Why compile the linux version just so you can compile a freebsd version? Sounds like a lot of hoop jumping. I had to do it too to get 1.3.1 working. Now I have to do it again for 1.4.1?

        Granted.. it uses /usr/ports, it's a lengthly process for the 'puter to do. I think make world is faster?
        • You lost me there... The three Linux JDKs in the ports tree are BINARY installs, you don't have to compile them.

          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:5, Informative)

      by rplacd ( 123904 ) on Friday March 07, 2003 @02:18PM (#5460664) Homepage

      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.

      • I think perhaps you may be confusing this release with Sun's native port. That's not what this is, though we've been waiting for that for some time (Dec.2001, I believe).

        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.
        • I am, yes, assuming that this will turn into a Sun release at some point. Once all the tests patch and it's proven to work in the field, Sun can integrate the patches into its source tree.

          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.
    • No kidding, it's like having to install Linux to boot FreeBSD. The idea of it is lame.

      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.
    • a binary install will always be needed to bootstrap
      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.
  • I thought FreeBSD already had a native java in ports. It used the Sun Linux java vm to compile the classes on FreeBSD. See /usr/ports/java/jdk13

    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)

      by Anonymous Coward
      > I thought FreeBSD already had a native java in ports. It used the Sun Linux java vm to compile the classes on FreeBSD. See /usr/ports/java/jdk13

      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.
  • I'd been running a Freenet server in its own jail, and finally had to abandon it because the various flavors of JDK 1.4 were too unstable, and the native JDK 1.3 was dog slow. If the native 1.4 really works at a reasonable level, I can finally start hosting that service again. Thanks, guys!
  • We've been trying to use this for quite some time (the 1.3 at least on FreeBSD), and have had issues with the threading model implemented. Not sure why whoever decided to port used green threads. Also, the SecureRandom is broken due to the number of threads it instantiates to determine a "random" number. It seems that through our use, extensive use of threads causes the entire system to crash, which meant we had to rework alot of code to specifically work on BSD by limiting the number of java threads we invoked.

    Any further thoughts/ideas on this?

"If it ain't broke, don't fix it." - Bert Lantz

Working...