OpenBSD Journal

Say Hello To Java 5 On OpenBSD/amd64

Contributed by jolan on from the 0xdecafc0ffeebad dept.

ian@ wrote in to mention:
kurt@ did some clever work for Java, first to make Kaffe work on OpenBSD/amd64 and then to make Sun's JDK "bootstrap" itself -- using Kaffe instead of an existing copy of Sun's JDK. He & I tested it, but he went on vacation so I got to commit the jdk/1.5 changes. This also should make it easier and faster to get started with Java on i386, as you no longer need any JDK-Linux stuff, just Kaffe (which you might find in packages) and the long list of manual downloads which is dictated by Sun's licensing policy.

Kaffe does require an sbrk change to work properly on amd64 so make sure you have built from recent source or upgraded via snaps before giving the port a try. Also, there is still a bit of work to do, for example the Mozilla plugin isn't built due to some 64-bit problems in the Mozilla codebase.

I think it should also be pointed out that kurt@ doesn't even have an amd64 machine and it certainly might speed up future work on this kind of stuff if he did...

(Comments are closed)


Comments
  1. By Anonymous Coward (81.57.42.108) on

    Nice Job !

    On a related and recent front: Sun is trying to ease the redistribution of Java with free Operating Systems (that probably the only way to keep it up when facing a .Net runtime that will be distributed with windows). Debian, Ubuntu and Gentoo are already involved.

    Sun started a website to coordinate those packaging and porting works: https://jdk-distros.dev.java.net/ and crafted a new licence, for distributors: http://download.java.net/dlj/DLJ-v1.1.txt

    This licence grant rights to redistribute Java with the operating systems. The bad news is that they provide a definition of operating system: ""Operating System" means any version of the Linux or OpenSolaris operating systems". Too bad !

    Comments
    1. By Anonymous Coward (218.214.194.113) on

      > Nice Job !
      >
      > On a related and recent front: Sun is trying to ease the redistribution of Java with free Operating Systems (that probably the only way to keep it up when facing a .Net runtime that will be distributed with windows). Debian, Ubuntu and Gentoo are already involved.
      >
      > Sun started a website to coordinate those packaging and porting works: https://jdk-distros.dev.java.net/ and crafted a new licence, for distributors: http://download.java.net/dlj/DLJ-v1.1.txt
      >
      > This licence grant rights to redistribute Java with the operating systems. The bad news is that they provide a definition of operating system: ""Operating System" means any version of the Linux or OpenSolaris operating systems". Too bad !
      >
      >

      Hmmmm.... maybe they would swap a licence for Java for a licence for SSH?

      Nahhhhh.... they have the latter.

    2. By jtorin (194.103.189.24) on

      > This licence grant rights to redistribute Java with the operating systems. The bad news is that they provide a definition of operating system: ""Operating System" means any version of the Linux or OpenSolaris operating systems". Too bad !

      Actually, the license does not say anything about permitting use in Linux only.

      The FAQ says:

      What does the DLJ allow me to do?

      You can:
      - Use the JDK on your OS to design, develop, test, and run Java programs.
      - Distribute the JDK on any media, online, and preinstalled on systems as a package with your OS.
      - Distribute the JDK directly, or indirectly through your licensees, distributors, resellers, OEMs, or downstream recipients of your OS.

      Which in my eyes (in a quick readthrough) doesn't sound to bad. However, the license (in the usual sneaky Sun way) says:

      ...provided that: [...] (c) you do not combine, configure or distribute the Software to run in conjunction with any additional software that implements the same or similar functionality or APIs as the Software;

      This could be interpreted that it's not permitted to distribute for example GNU Classpath or JamVM in simultaenously. But heck, what do I know - IANAL. Thank ${deity}.

      Comments
      1. By hakan (195.84.194.52) hakan@prinsig.se on

        > Actually, the license does not say anything about permitting use in Linux only.

        Well, here's what the license says:
        "Operating System" means any
        version of the Linux or OpenSolaris operating systems that manages
        the hardware resources of a general purpose desktop or server
        computer and shares these resources with various software programs
        that run on top of it.
        I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".

        Comments
        1. By Anonymous Coward (207.41.234.229) on

          > I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".

          They might. seems to be a common misconception that OpenBSD is a Linux disto.

          Comments
          1. By Anonymous Coward (81.57.42.108) on

            > > I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".
            > > They might. seems to be a common misconception that OpenBSD is a Linux disto.

            That's not the problem in that case. Sun is perfectly aware that this licence exclude BSD systems, they even aknowledged it on the jdk-distros FAQ :
            Why did you not include the BSD-derived operating system distros like FreeBSD in the license, and this initiative?
            The DLJ is a binary license. Since Sun does not support BSD-based operating systems, we have no binary bundles to provide.

            Comments
            1. By Anonymous Coward (84.188.224.111) on

              > I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".
              >
              > They might. seems to be a common misconception that OpenBSD is a Linux disto.
              >
              > That's not the problem in that case. Sun is perfectly aware that this licence exclude BSD systems, they even aknowledged it on the
              > jdk-distros FAQ :
              >
              > Why did you not include the BSD-derived operating system distros like FreeBSD in the license, and this initiative?
              > The DLJ is a binary license. Since Sun does not support BSD-based operating systems, we have no binary bundles to provide.
              >

              Linux is no OS so the license is useless.
              OpenBSD can run Linux-Applications. During the License OpenBSD is also a "Linux OS" then...

              Comments
              1. By tedu (69.12.168.114) on


                > Linux is no OS so the license is useless.
                > OpenBSD can run Linux-Applications. During the License OpenBSD is also a "Linux OS" then...
                >
                >

                um, linux is a kernel. openbsd's kernel is not the linux kernel.

        2. By ptomli (198.54.202.226) on

          > Actually, the license does not say anything about permitting use in Linux only.
          >
          > Well, here's what the license says:
          > "Operating System" means any
          > version of the Linux or OpenSolaris operating systems that manages
          > the hardware resources of a general purpose desktop or server
          > computer and shares these resources with various software programs
          > that run on top of it.
          >
          > I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".

          Although I doubt it'll pan out, would Linux emulation count?

          Since Linux is a kernel rather than an OS, the clause is somewhat non-sensical in any case. Would L4Linux be considered "Linux"? If I change the #defines in the Linux headers so it (the kernel) reports to be "Linuy" is that now invalid? RHEL on VMWare/$(favourite_virtualisation_model)?

          What I'm getting at is; can Linux emulation on OpenBSD be construed to be "a version of the Linux [...] operating system"?

          Comments
          1. By Anonymous Coward (66.8.248.237) on

            No, emulation would not count.

        3. By Anonymous Coward (72.66.68.60) on

          > I don't think Sun is likely to call OpenBSD a "Linux or OpenSolaris operating system".

          They probably didn't mean to intentionally exclude BSDs. The "Linux or OpenSolaris" is probably the result of some dumb lawyer or businessman, or the result of poor communication between aforementioned people and people with some degree of competence.

      2. By Anonymous Coward (72.66.68.60) on

        > ...provided that: [...] (c) you do not combine, configure or distribute
        > the Software to run in conjunction with any additional software
        > that implements the same or similar functionality or APIs as the
        > Software;

        Would this also affect Apache Tomcat? It implements Sun APIs, namely servlets and JSP. These aren't included with the free JDK, but with a few pricey add-ons sun will probably be kind enough to give it to you. :P

        Comments
        1. By Anonymous Coward (69.193.125.65) on

          > > ...provided that: [...] (c) you do not combine, configure or distribute
          > > the Software to run in conjunction with any additional software
          > > that implements the same or similar functionality or APIs as the
          > > Software;
          >
          > Would this also affect Apache Tomcat? It implements Sun APIs, namely servlets and JSP. These aren't included with the free JDK, but with a few pricey add-ons sun will probably be kind enough to give it to you. :P

          What are you talking about? The servlet api comes with tomcat and the api itself isn't a trade secret (that'd be pretty stupid). When people talk about redistributing or open-sourcing "java" they're only talking about one particular implementation of the spec.

    3. By Anonymous Coward (84.188.224.111) on

      > Nice Job !
      >
      > On a related and recent front: Sun is trying to ease the redistribution of Java with free Operating Systems (that probably the only way to keep it up when facing a .Net runtime that will be distributed with windows). Debian, Ubuntu and Gentoo are already involved.
      >
      > Sun started a website to coordinate those packaging and porting works: https://jdk-distros.dev.java.net/ and crafted a new licence, for distributors: http://download.java.net/dlj/DLJ-v1.1.txt
      >
      > This licence grant rights to redistribute Java with the operating >systems. The bad news is that they provide a definition of operating >system: ""Operating System" means any version of the Linux or OpenSolaris >operating systems". Too bad !

      Would it be possible to INCLUDE (or via ports) all stuff compat_sunos needs? OpenSolaris is "Open" so also free in the restribution...
      So it should be possible to add a port/package wich contains all stuff compat-sunos needs. Or am I wrong?

    4. By Anonymous Coward (66.8.248.237) on

      The real question is "does this aid installation via ports or packages ?", currently there is a lot of manual downloading to be done to get it to work, which is a real pain.

      If a package were available via FTP, then the need to install kaffee goes away, which means less redundant krud on your box.

      Comments
      1. By Anonymous Coward (72.66.68.60) on

        > If a package were available via FTP, then the need to install kaffee goes away, which means less redundant krud on your box.

        I don't know about kaffe in this case, but when you install JDK 1.5 by using other binaries (be it JDK 1.4 or a Linux binary), you can safely remove the "cruft" once the native JDK is installed

  2. By Anonymous Coward (202.6.138.34) on

    ok miod@, toby@. olrite mickey@

    heh :-)

    Comments
    1. By Nikolai (63.66.6.15) on

      > ok miod@, toby@. olrite mickey@
      >
      Hey, Mickey, learning German? :)

  3. By Henrik (217.157.20.133) hlk@kramse.dk on

    I have used JAVA on OpenBSD/I386 for some time, and it works great!

    I have also tried compiling Kaffe on amd64 - and I still haven't got it compiled. Tooooo many !#&% dependencies.

    If anyone has the requisites needed to compile JDK or made it work, please tell me how ;-)

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.]