OpenBSD Journal

OpenJDK 1.7 import started

Contributed by deanna on from the almost there dept.

Ian Darwin (ian@) writes:

Kurt@ imported the first OpenJDK port today, the first step toward making Sun's GPL'd Java implementation available to our users; this will eventually mean we can have the JDK binaries available as packages.

Note that it is not hooked into the ports build yet. Nor is it ready for prime time yet! Why not? Unfortunately Sun have not yet released the full source code for the JDK; it's taking time because they have to deal with lawyers and business partners to ensure that they only release stuff they either own or have agreement to put out. As a result, this OpenJDK port is a hybrid - it's the 1.7 JVM but only 1.5 class libraries, and needs 1.5 in order to build. So calling it "1.7" is a bit of a misnomer: the API is only 1.5. It's not meant for production running of Java 6 software, but is to help develop the openjdk-based ports.

Sun said they'd have the whole thing out by the middle of 2007, and it's now May. Their big JavaOne conference is this week (May 8-11); we're hoping they'll stop making announcements and just release code :-) , so we can start shipping binaries. They've also said they'll release the full 1.6 sources soon (which will also be GPL'd), so we should wind up with a range of JVM binary packages available to OpenBSD users "real soon now".

(Comments are closed)


Comments
  1. By Kevin (198.53.241.18) on

    Awesome, great news. Thanks for working on this. Some of us are looking forward to being able to host our Java web apps on OpenBSD.

    Comments
    1. By Ian Darwin (216.111.165.3) on

      > Awesome, great news. Thanks for working on this. Some of us
      > are looking forward to being able to host our Java web apps
      > on OpenBSD.

      Well, you already can do that, with some effort - at present you have to download some files and compile the whole JDK - it's a bit of a bear but it can be done. I run my web site on Tomcat and have for some time.

      The real value in the JDK1.7 stuff is that it's GPL'd so we can
      distribute binaries; then it will be as easy to install compiled packages of OpenJDK on OpenBSD as on other systems (actually, easier than most thanks to the way our packaging system works).

      --Ian

      Comments
      1. By Anonymous Coward (138.163.0.46) on

        > > Awesome, great news. Thanks for working on this. Some of us
        > > are looking forward to being able to host our Java web apps
        > > on OpenBSD.
        >
        > Well, you already can do that, with some effort - at present you have to download some files and compile the whole JDK - it's a bit of a bear but it can be done. I run my web site on Tomcat and have for some time.
        >
        > The real value in the JDK1.7 stuff is that it's GPL'd so we can
        > distribute binaries; then it will be as easy to install compiled packages of OpenJDK on OpenBSD as on other systems (actually, easier than most thanks to the way our packaging system works).
        >
        > --Ian
        >
        >


        AC here...


        That is something I've never understood... if someone can build the packages, why can't we post them on a website. I mean, Damien built firmware for the iwi(4) driver, and put them on his site.

        I've built them once. Took over 15 hours for me to build up to 1.5 on my laptop, but I would have posted them to my web site (if it was up at the time).

        If we can build them, then what is the harm of putting them up publicly...?

        I hope to see them in the -current package directory soon...

        One other thing... how do you get that cool "prove your a human being" checker at the bottom???? That would be great for my website...

        Comments
        1. By sthen (85.158.44.149) on

          > That is something I've never understood... if someone can build the packages, why can't we post them on a website.

          For the same reason you can't post Windows on your website; the license doesn't allow it.

          > One other thing... how do you get that cool "prove your a human being" checker at the bottom???? That would be great for my website...

          The source code to undeadly is available (see below), the relevant file is captcha.c.

  2. By Kurt Miller (69.122.119.232) on

    In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.

    Comments
    1. By Leonardo Rodrigues (201.34.47.150) leonardovcr@gmail.com on

      > In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.

      Thanks for the effort Kurt!
      It will be a real blessing not having to compile the jdk. Packages all the way =)

    2. By Kevin (70.73.58.70) on

      > In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.

      Sorry if this is a dated question but is it yet possible to run Java on AMD64? I seem to remember not being about to compile Java as Linux emulation was required to bootstrap the build (which wasn't supported on AMD64). Am I correct in assuming this is still the case?

      Comments
      1. By Anonymous Coward (70.73.58.70) on

        Sorry, should have done my homework before posting:
        http://www.undeadly.org/cgi?action=article&sid=20060518065549&mode=flat

        Thanks so much Kurt, for all your work.

        Kevin

    3. By Anonymous Coward (82.40.182.26) on

      > In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.

      Great news about Java coming to OpenBSD, thanks for your hard work Kurt. Does Sun releasing the rest of OpenJDK 7 mean that I'll be able to run Java 6 applications using it?

    4. By Henrik Kramshoej (90.184.69.92) hlk on

      > In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.


      Great stuff Kurt, and thanks for doing this!

      I would not be able to run my webserver and JAVA applications without your continued support for JDK on both i386 and amd64!

    5. By James Mansion (147.114.226.174) on

      > In the same hour that I committed this, Sun released the rest of OpenJDK 7. It will be a few weeks before I get the rest ported over.

      Is there anywhere I can go to see what the progress is for OpenJDK to BSD?

      James

  3. By JavaGuy (69.3.182.158) on

    This is great news. Finally, full-strength Java coming to OpenBSD. Java, with its JVM and security model, is a great fit for OpenBSD's security culture. Also, OpenBSD has some super-cool memory management tricks. It would be great to have the JVM take advantage of these, so that when an object is GC, its memory can be returned to the OS, for example. I'm looking forward to returning to running OpenBSD, now that I will soon be able to use Java on it.

    Comments
    1. By Anonymous Coward (69.36.252.2) on

      This begs the question, does the JVM play well with W^X? Is JIT compilation disabled, or is W^X disabled?

      Comments
      1. By Otto Moerbeek (otto) on http://www.drijf.net

        > This begs the question, does the JVM play well with W^X? Is JIT compilation disabled, or is W^X disabled?

        AFAIK, neither. Only after JIT is done, the pages are marked executable (and thus not writable).

      2. By Janne Johansson (194.218.229.80) jj@openbsd.org on

        > This begs the question, does the JVM play well with W^X? Is JIT compilation disabled, or is W^X disabled?
        >

        Program that do JIT or generate live code should always have done mprotect() on those regions, long before W^X came about. When W^X appeared you quickly found those apps that for some reason didn't.

        There seems to have been some confusion about this, as if you had to invent some workaround in OpenBSD, but even though Open might have been the, or among the first to enforce it, the requirement or possibility to mark pages for executability has been there for a long time.

  4. By Brad (128.118.75.199) on

    Kurt, you da man. Thanks very much for all your hard work to get Java running on OpenBSD.

  5. By Anonymous Coward (81.200.20.112) on

    OpenJDK 7 is a future, so what about Apache Harmony 1.5 and 1.6?

    Comments
    1. By Anonymous Coward (87.78.155.12) on

      > OpenJDK 7 is a future, so what about Apache Harmony 1.5 and 1.6?

      If you want it, port it.
      See http://openbsd.org/porting.html for more information.

    2. By Motley Fool (MotleyFool) on

      > OpenJDK 7 is a future, so what about Apache Harmony 1.5 and 1.6?

      yep, go to work on it, by the way did you see what license it's released under?

      "A compatible, independent implementation of the Java SE 5 JDK under the Apache License v2"

  6. By Anonymous Coward (24.4.110.118) on

    This is really great news. I am still running linux on a desktop because I need java, javaws to work out of the box without having to spend hours fooling around. this is awesome!! i must say sun has been pretty impressive with how much they are willing to open source

    Comments
    1. By David Gwynne (dlg) on

      I'm utterly frustrated by what sun isn't open sourcing.

      Comments
      1. By Anonymous Coward (82.40.182.26) on

        > I'm utterly frustrated by what sun isn't open sourcing.

        Some of the (OnlyPartly)OpenSolaris drivers for the newer chips they're putting out?

        Comments
        1. By Anonymous Coward (74.13.44.21) on

          > > I'm utterly frustrated by what sun isn't open sourcing.
          >
          > Some of the (OnlyPartly)OpenSolaris drivers for the newer chips they're putting out?

          Hardware documentation would be nice from them.

      2. By Anonymous Coward (80.176.71.13) on

        > I'm utterly frustrated by what sun isn't open sourcing.

        They're probably too busy talking about paying open source developers...

  7. By Anonymous Coward (85.222.21.198) on

    Please update "Building the Sun JDK" http://www.openbsd.org/faq/faq8.html#Programming

    Comments
    1. By Anonymous Coward (198.208.159.19) on

      > Please update "Building the Sun JDK" http://www.openbsd.org/faq/faq8.html#Programming

      who the f*ck are you asking?

    2. By tedu (69.12.168.115) on

      > Please update "Building the Sun JDK" http://www.openbsd.org/faq/faq8.html#Programming

      faq is for releases.

    3. By Brad (brad) on

      > Please update "Building the Sun JDK" http://www.openbsd.org/faq/faq8.html#Programming

      Update it with what? The FAQ is for releases and this isn't even usable yet.

  8. By Kurt Miller (69.122.119.232) on

    Well things are not all roses. A chunk of the j2SE stuff is still encumbered and Sun couldn't release it in source form under GPL2. To get by that they've made the encumbered components available in binary form ('binary plugs') with a different binary license.

    Unfortunately, the binary license has defend and indemnify clauses. Which makes it not possible for us to create packages at this time. There are other issues like the binary plugs have native shared libs in there too but no GPL source to build them.

    Sun has started projects to replace the encumbered components but it could be 6 months to a year before they are replaced. Java packages may have to wait until that happens.

Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]