Skip to Content
Tomcat: The Definitive Guide, 2nd Edition
book

Tomcat: The Definitive Guide, 2nd Edition

by Jason Brittain, Ian F. Darwin
October 2007
Intermediate to advanced
496 pages
16h 50m
English
O'Reilly Media, Inc.
Content preview from Tomcat: The Definitive Guide, 2nd Edition

Working Around Older GCJ and Kaffe JVMs

Most Linux distributions have, at some point, shipped either a GCJ or Kaffe JDK as a standard part of their operating system. From the command line, it appears that a java executable is available, and it appears to identify itself as a JDK (usually as Java version 1.4.x). And, most of these distributions also come with Java programs that have been developed specifically for the GCJ or Kaffe JVM. These applications run all right because they have been thoroughly tested and modified to run on the JDK shipped with the Linux distribution. But, if the user installs other Java programs that were not developed this way—regular Java software that was probably developed with a 100 percent compatible JDK—that user-installed Java software will not work correctly. The user thinks that because the java executable is there, and the binary comes from her favorite Linux distro vendor, it will work, but mainly it doesn't. This includes Red Hat Enterprise 5 and older, Fedora 7 and all previous Fedora versions, Debian Sarge and older, SUSE Linux 10 and older, and so on.

Older Linux distributions bundled the Kaffe JVM, and somewhat newer distributions bundled the GCJ/GIJ JVM. Neither of these is complete JVMs, and you will have trouble running your Java software on them if you try.

GCJ is the GNU Compiler for Java. It is a frontend for the GCC compiler collection that can compile Java bytecode into native binaries. It also comes with a runtime that can interpret ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learning Apache Tomcat

Learning Apache Tomcat

Martin Kalin
Head First Servlets and JSP, 2nd Edition

Head First Servlets and JSP, 2nd Edition

Bryan Basham, Kathy Sierra, Bert Bates
Modern Java in Action

Modern Java in Action

Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma
Java 8 in Action

Java 8 in Action

Alan Mycroft, Mario Fusco, Raoul-Gabriel Urma

Publisher Resources

ISBN: 9780596101060Errata