From Fedora Project Wiki

Line 26: Line 26:
  * [http://www.java.com/en/download/help/testvm.xml http://www.java.com/en/download/help/testvm.xml]
  * [http://www.java.com/en/download/help/testvm.xml http://www.java.com/en/download/help/testvm.xml]
  * [http://java.com/en/download/installed.jsp?detect=jre&try=1 http://java.com/en/download/installed.jsp?detect=jre&try=1]
  * [http://java.com/en/download/installed.jsp?detect=jre&try=1 http://java.com/en/download/installed.jsp?detect=jre&try=1]
Firefox detected plugin list can be seen by typing the url:
<pre>about:plugins</pre>


Firefox can be run in debug mode as follows:
Firefox can be run in debug mode as follows:
<pre>
<pre>
ICEDTEAPLUGIN_DEBUG=true firefox http://www.java.com/en/download/help/testvm.xml 2>&1 | tee cons
ICEDTEAPLUGIN_DEBUG=true firefox &lt;URL above&gt; 2>&1 | tee cons
</pre>
</pre>
This will write the standard output also to a file which can be attached to a bug reports.
This will write the standard output also to a file which can be attached to a bug reports.

Revision as of 13:18, 6 November 2009

Java on Fedora

Fedora uses a Free software stack that consists of OpenJDK, GNU Compiler for Java, GNU classpath and the Eclipse Java compiler to implement Java. See our JavaFAQ for more information on that. Note that AOT compilation using GCJ has been deprecated (made optional) and new packages or updated ones will be built with OpenJDK in a regular Java compilation to bytecodes.

Software mentioned on this page may come in different packaging formats. Fedora's own packages (RPM) are easy to install (with Yum) and installation instructions can be found from Docs/Drafts/SoftwareManagementGuide. Third party packages may be in archive formats (.zip, tar) and then case specific instructions should be provided.

Java Runtime Environments (JRE)

Java's history is well known to consist different JRE implementations and wide variety of combinations which work together.


OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

OpenJDK package name on Fedora is java-1.6.0-openjdk.

Sun Microsystems Java SE

Original Sun Microsystem's Java SE (Standard Edition) can be downloaded directly from http://www.java.com/en/download/ and installed manually.


Troubleshooting JRE

Fedora's JRE in browser environment can be tested using the following test pages:

* http://www.java.com/en/download/help/testvm.xml
* http://java.com/en/download/installed.jsp?detect=jre&try=1

Firefox detected plugin list can be seen by typing the url:

about:plugins

Firefox can be run in debug mode as follows:

ICEDTEAPLUGIN_DEBUG=true firefox <URL above> 2>&1 | tee cons

This will write the standard output also to a file which can be attached to a bug reports.

Java Develoment Tools (SDK)

Eclipse

See our Eclipse page for an integrated development environment platform that itself is written in Java and has plugin support for many programming languages.

Maven

Fedora includes a somewhat customized version of Maven in the distribution. The customization is purely to make Maven work well in offline mode with the rest of the system. Details on how packagers can use this customized Maven are located at Java/JPPMavenReadme . We are in the process of upgrading from maven2 2.0.4 to maven2 2.0.8 (ETA = F12). Once that is achieved we will proceed immediately to maven2 2.0.9 and then to 2.0.10. The reason for going by steps is that it is easier to bootstrap a maven2 release from the previous one. Also related to maven2, a feasibility study is being performed to change the installation of Java packages to become a valid maven2 repository. We will no longer have to modify maven2 (not even with our small patch), and it wil be easier to support parallel installation of either "legacy" or "progressive" versions of Java packages. Once some positive results are obtained, it will be discussed on the fedora-devel-java-list.

Java Server Side environments

Apache Tomcat

Fedora ships Apache Tomcat as part of standard distribution.

Apache Tomcat package name on Fedora is tomcat6.

Teaching and Learning Java

As part of planning and implementing new 100% FLOSS Java components into Fedora, this draft document has been opened to give developers a place to teach each other about best practices, patterns, etc.

Docs/Drafts/JavaProgramming

Communicate

You can subscribe to fedora-devel-java-list or talk to us in #fedora-java Freenode IRC channel. Read Communicate page for more information.

See Also

* JavaFAQ

References

* OpenJDK Home
* Open openjdk-1.6.0 tickets for Fedora
* OpenJDK Bug tracking system
* Apache Tomcat