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)?"
Like this?
http://www.freshports.org/java/linux-blackdown-jdk 12/w n-jdk 13/w n-jdk 14/1 3/4 //
: //www.freshports.org/java/jdk13/h ports.org/java/jdk14/
http://www.freshports.org/java/linux-blackdo
http://www.freshports.org/java/linux-blackdo
http://www.freshports.org/java/linux-ibm-jdk
http://www.freshports.org/java/linux-ibm-jdk1
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
http://www.fres
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?
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).
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