Dear Wiki user, You have subscribed to a wiki page or wiki category on "Fedora Project Wiki" for change notification. The following page has been changed by DimitrisGlezos: http://fedoraproject.org/wiki/Docs/Beats/Java The comment on the change is: Remove unnecessary heading and promote content ------------------------------------------------------------------------------ - = Java and java-gcj-compat = - This release of Fedora Core includes a free and open source Java environment called `java-gcj-compat`. The `java-gcj-compat` collection includes a tool suite and execution environment that is capable of building and running many useful programs that are written in the Java programming language. [[Admonition("note", "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.")]] @@ -15, +13 @@ {{{ which java && java -version && which javac && javac -version }}} - == Handling Java and Java-like Packages == + = Handling Java and Java-like Packages = In addition to the `java-gcj-compat` free software stack, Fedora Core lets 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 these packages are installed properly, the `root` user may switch between {{{java}}} and {{{javac}}} implementations using the {{{alternatives}}} command: @@ -23, +21 @@ alternatives --config javac }}} - == 64-bit JNI Libraries == + = 64-bit JNI Libraries = The 64-bit JNI libraries shipped by default on x86_64 systems in Fedora Core and Extras will not run on 32-bit JREs. Either switch to a 64-bit java alternative, or install the 32-bit version of the packages, if available. To install a 32-bit version, use the following command: {{{yum install <package_name>.i386 @@ -33, +31 @@ {{{yum install <package_name>.ppc64 }}} - == Handling Java Applets == + = Handling Java Applets = This release of Fedora Core includes a preview release of `gcjwebplugin`, a Firefox plugin for Java applets. `gcjwebplugin` is not enabled by default because although the security implementation in `GNU Classpath` is being actively developed, it is not mature enough to run untrusted applets safely. That said, the AWT and Swing implementations in `GNU Classpath` are now sufficiently mature that they can run many applets deployed on the web. Adventurous users who want to try `gcjwebplugin` can read `/usr/share/doc/libgcj-4.1.1/README.libgcjwebplugin.so`, as installed by the `gcc` rpm. The README explains how to enable the plugin and the risks associated with doing so. - == Fedora and the JPackage Java Packages == + = Fedora and the JPackage Java Packages = Fedora Core includes many packages derived from the JPackage Project, which provides a Java software repository. These packages are modified in Fedora to remove proprietary software dependencies and to make use of GCJ's ahead-of-time compilation feature. Use the Fedora repositories to update these packages, or use the JPackage repository for packages not provided by Fedora. Refer to the JPackage website at http://jpackage.org for more information on the project and the software it provides.