Product SiteDocumentation Site

14. Java and java-gcj-compat

A free and open source Java environment is available within this Fedora Core release, called java-gcj-compat. java-gcj-compatincludes a tool suite and execution environment that is capable of building and running many useful programs that are written in the Java programming language.

Fedora Core Does Not Include Java

Java is a trademark of Sun Microsystems. java-gcj-compat is an entirely free software stack that is not Java, but may run Java software.
The infrastructure has three key components: a GNU Java runtime (libgcj), the Eclipse Java compiler (ecj), and a set of wrappers and links (java-gcj-compat) that present the runtime and compiler to the user in a manner similar to other Java environments.
The Java software packages included in this Fedora release use the new, integrated environment java-gcj-compat. These packages include OpenOffice.org Base, Eclipse, and Apache Tomcat.
Refer to the Java FAQ at http://www.fedoraproject.org/wiki/JavaFAQ for more information on the java-gcj-compat free Java environment in Fedora.

Include location and version information in bug reports

When making a bug report, be sure to include the output from these commands:
which java && java -version && which javac && javac -version

14.1. Handling Java and Java-like Packages

In addition to the java-gcj-compat free software stack, Fedora Core is designed to let you install multiple Java implementations and switch between them using the alternatives command line tool. However, every Java system you install must be packaged using the JPackage Project packaging guidelines to take advantage of alternatives .
Once installed properly, the root user should be able to switch between java and javac implementations using the alternatives command:
alternatives --config java
alternatives --config javac