Slashdot Mirror


Linux JVMs Running Under BSD?

Mock asks: "I work for a web services company, and so part of our business process involves setting up web servers for our customers that include a JVM for running our software. Although I've found FreeBSD to be rock-solid for server applications and the quickest to fix security issues, the JVM support has been lagging behind other systems, for some time now. I would like to know if it is wise, or even possible, to run the Linux JVM under BSD? Are there other alternatives I'd be better off considering (besides using a different operating system)?"

7 of 41 comments (clear)

  1. Whaaaaaat? by Breakerofthings · · Score: 3, Informative
  2. It's called the ports tree. by JumpSuit+Boy · · Score: 5, Informative

    http://www.freshports.org/java/linux-blackdown-jdk 12/
    http://www.freshports.org/java/linux-blackdow n-jdk 13/
    http://www.freshports.org/java/linux-blackdow n-jdk 14/
    http://www.freshports.org/java/linux-ibm-jdk1 3/
    http://www.freshports.org/java/linux-ibm-jdk14 /
    http://www.freshports.org/java/linux-sun-jdk12/
    http://www.freshports.org/java/linux-sun-jdk13/
    http://www.freshports.org/java/linux-sun-jdk14/

    or you could just use the native ones
    http://www.freshports.org/java/jdk12/
    http: //www.freshports.org/java/jdk13/
    http://www.fresh ports.org/java/jdk14/

    That said I used it to run a small enhydra/xmlc java web app. In my last job and I performed well and with the recent (last six months) inclusion of the hotspot stuff it's much faster.

    --
    Oh really?
  3. please stop confusing people by g4dget · · Score: 2, Informative
    "Java" is a trademark of Sun Microsystems. It's a platform, the total of the Java language and the Java libraries, as defined by Sun. Most of the Java platform exists only in a Sun proprietary implementation, which you can obtain under roughly the same conditions as Microsoft's "shared source" implementation.

    Kaffe and GNU gcj are not implementations of Java. At best, they are implementations of the Java language or virtual machine, but even in that capacity, they are not blessed by Sun. Porting most substantial Sun Java-based software system to Kaffe or gcj is essentially impossible.

    So, please spare us your cynicism or misleading use of language. Sun's implementation of Java is not "open source" in any sense that the term is commonly understood (and the term was created and defined by Eric Raymond). It isn't even close to open source; you enter into legal obligations to Sun just by looking at it. If you treat it like it's open source, you may get into lots of legal trouble with Sun. Neither are gcj or kaffe an implementation of "Java"; they aren't even close, as you would find out if you tried porting anything to them.

    However, we agree on this: gcj is a pretty good compiler, and SWT is a pretty good toolkit. I do recommend using them instead of Sun Java. They also have lots of practical advantages, like being smaller, starting up faster, and requiring less memory. But gcj and SWT together don't make "Java". If you are really careful, you can write libraries that will compile and run under both gcj and Sun Java, but it's a significant amount of work and requires a lot of care (as I can tell you from first hand experience).

    1. Re:please stop confusing people by Orthanc_duo · · Score: 2, Informative

      The source of the Java Libraries are released. The Java Language specification is open.. ie. it can be viewed and implemented by anyone.

      Sun has a proprietary java compiler / JVM but there is nothing to stop someone from implementing there own (jikes for example).
      Same situation as gcc vs. Borland C compiler (for example)

    2. Re:please stop confusing people by IronDuck · · Score: 1, Informative

      It's a platform, the total of the Java language and the Java libraries, as defined by Sun.

      Java is defined less and less by Sun alone as it matures. One of the best things about Java is the JCP (Java Community Process) which defines the growth of the Java platform. So, while Java is not as "Open" as some would like, it is a very open and robust language. It's not like Sun defines everything, and reaps all the benefits. The licensing is designed to protect their substantial investment in the technology.

    3. Re:please stop confusing people by g4dget · · Score: 2, Informative
      The source of the Java Libraries are released.

      The source to Windows NT has been released, too. That doesn't make Windows NT open source, and talking about it in that way would be very confusing.

      The Java Language specification is open.. ie. it can be viewed and implemented by anyone.

      Even if that were true, it would be irrelevant. We are not talking about the Java Language, we are talking about Java, which is a language and a set of libraries.

      But your claim actually does not even appear to be true: as far as I can tell, Sun has made no legally binding commitment to allow "anyone" to implement Java. So far, all we have is a letter of intent, as part of the JCP, to allow open source implementations.

  4. Beware by cattlepr0d · · Score: 2, Informative

    We ran a Tomcat based website using the linux JVM on FreeBSD. It rarely stayed up for more than a day at a time (someone told me it's a good way to expose bugs in the emulation layer ;). However, with the native FreeBSD JVM (and the Shujit JIT compiler) it's rock solid.

    --
    R Tape loading error, 0:1