JavaFrom MozillaZine Knowledge Base(Redirected from Firefox : FAQs : Install Java)
Java is a programming language originally developed by Sun Microsystems (now Oracle). Many web pages use Java applets for interactive content such as online games. To run these Java applets, you need the "Java Runtime Environment" ("JRE") installed and enabled. Note that Java is not the same as JavaScript. See JavaScript is not Java for more information. Starting in Firefox 3.6, Java will not work unless you are using the Next-Generation Java Plug-In (included in Java 6 Update 10 and above). [1] Important: Mozilla adds outdated or insecure plugins to its Add-ons Blocklist as a security measure. Depending on the version of Java and your Mozilla browser, the Java plugin may be disabled in the Firefox or SeaMonkey Add-ons Manager or the Java plugin may require Click to Play (CTP) activation. See this blog post for details. [2] [[3] [edit] Testing Java
[edit] Enabling JavaIf Java is installed but isn't working, make sure that the Java plugin is enabled in the Add-ons Manager Plugins list (see Managing installed plugins for more information). [4]
The Java plugin name shown will depend on your operating system and Java version. On Mac OS 10.7 and above, the Java plugin is shown as Java Applet Plug-in. On Mac OS X 10.6 the Java plugin is listed as Java Plug-in 2 for NPAPI Browsers. On Windows, the Java plugin will be listed as Java(TM) Platform SE <version> and underneath, it will show "Next Generation Java Plug-in <version> for Mozilla browsers", where <version> refers to the Java plugin version. The Java plugin must be detected and enabled in the Firefox or SeaMonkey Add-ons Manager for Java applets to work in the browser. If the Java plugin is disabled, the entry will be "greyed out" with an "Enable" button. After enabling Java, test Java again. Note: The Java Deployment Toolkit plugin (which is installed along with Java) does NOT need to be enabled for Java applets to work. If you only see the Java Deployment Toolkit plugin listed in the Add-ons Manager, then Java is not properly detected. If the Java plugin does not appear in the Add-ons Manager, even though Java is installed, first do the following, before reinstalling Java or trying other solutions:
[edit] Disabling JavaTo disable the Java plugin in your Mozilla browser, open the Add-ons Manager, find the Java plugin entry as described above, and then click the "Disable" button. [edit] Enabling and disabling Java from the Java Control PanelOn Windows, starting with Java 7 Update 10, The Java Control Panel includes the Security option, "Enable Java content in the browser", which is selected by default. De-selecting this option will prevent Java from running in any browser. For more information, see this Java.com help page and Oracle's Java Control Panel documentation. [7] [8] [edit] If Java is installed and enabled but does not work
[edit] Java downloadsMac OS: You can download Java from Apple Support Downloads (Java 6 and below). On Mac OS X 10.7.3 (Lion) and above, Java 7 is available here or from this download page. See How do I get Java support for Mac? for more information. Windows and Linux: You can download Java here or you can select the offline (full) installer for your operating system from this download page. You can download the latest Java 6 from this page but note that, according to Oracle's Java 6 FAQ page, Java SE 6 Update 45 released in April 2013 is the last available Java 6 posted to its public download sites. You can also download an offline installer using the "JRE" download link on Oracle's Java SE Downloads. Important! Even if you have a 64-bit operating system, you need the 32-bit (x86) Java download for 32-bit browsers. On Windows, make sure you select the 32-bit JRE since Firefox and SeaMonkey official releases are 32-bit (e.g., select "Windows x86 Offline" for the offline installer linked from Oracle's Java SE Downloads page). See below for more information on installing or updating Java on Windows. See 64 bit builds for more information about 64-bit versions of Mozilla applications. [24] [25] [26] [edit] Installing or updating Java[edit] On Mac OS XInstalling Java:
For more information, see How do I get Java support for Mac?. Updating Java:
Note: The Java Embedding Plugin has been bundled with Mac distributions of older Mozilla browsers, including Firefox 3.x and SeaMonkey 2.0. This utility allows browsers other than Apple's Safari to use the most recent versions of Java on Mac OS X. [27] The Java Embedding Plugin is no longer needed in newer Mozilla browsers such as Firefox 4 and is no longer included. [28] [29] [30] [edit] On LinuxFor Linux installation instructions, see How do I download and install 32-bit Java for Linux Platforms? or What are the Linux 64-bit installation instructions for Java? See Manual Installation and Registration of Java Plugin for Linux at oracle.com for additional information. [edit] On WindowsAutomatic update: The Java Update feature automatically checks for updates at scheduled intervals and notifies you when an update is available so that you can install it. If you have administrative privileges, you can also check for updates and install them from the Java Control Panel "Update" tab (available in 32-bit versions of Java). You can access the Java Control Panel via "Start -> Control Panel -> Java (32-bit)". You can also access the Java 32-bit Control panel by opening the file "javacpl.exe" which on 64-bit Windows 7, is located under C:\Program Files (x86)\Java\jre6\bin\ (JRE6) or C:\Program Files (x86)\Java\jre7\bin\ (JRE7). [31] Important: The automatic Java update feature will upgrade Java 6 to Java 7. [32] [33] [34] On 64-bit Windows, you can have both 32-bit Java (needed for 32-bit browsers like Firefox and SeaMonkey) and 64-bit Java (needed for 64-bit browsers, such as the unofficial Waterfox 64-bit version of Firefox and 64-bit Internet Explorer). [35]. If both 32-bit and 64-bit versions of Java are installed, the Windows Control Panel will display only the 64-bit Java Control Panel which does not include an Update tab. In such cases, you can update 32-bit Java by running the javacpl.exe file located under C:\Program Files (x86)\Java\jre6\bin\ (JRE6) or C:\Program Files (x86)\Java\jre7\bin\ (JRE7) , then going to the Update tab and clicking the "Update Now" button. Note that, if Java 6 is installed, using the automatic update feature or the Update tab in the Java (32-bit) Control Panel will update Java 6 to Java 7. Alternately, you can update Java using the manual update method (see below). [36] Manual install or update:
If you prefer an offline installation or if you need Java 6, go to the Java Downloads page (see above for links) and save the Windows Offline installer to any convenient location, close your browser and run the installer. [37] Note: Previous to Java 6 Update 10, installing or updating to a newer Java version would add another Java Runtime Environment (JRE) instead of replacing the existing version. Starting with Java 6 Update 10, Java updates patch the current version by default instead of adding an additional version. For example, if you previously installed JRE 6 Update 10 in the C:\Program Files\Java\jre6 directory, and later installed JRE 6 Update 14, the version 6u14 installer does not create a new directory. Instead, it updates the pre-existing "jre6" directory with the new 6u14 content (JRE Update 10 will no longer exist). This prevents an accumulation of unused and potentially insecure Java versions. [38] [39] [edit] Windows installation issuesIf you have problems installing or updating Java or if Java doesn't work afterwards, first restart your browser (or reboot the computer), make sure that Java is enabled (see above), and then test Java again. [40]. The Windows Online Installation and Update FAQ, the Java Help Center, and this help page on Error Messages may also help. If you still have problems, try the following solutions. [edit] Use Internet Explorer to install JavaIf you have problems installing the latest version of Java, a user reports success installing Java online using Internet Explorer, after first completely uninstalling Java from his system. Opening Internet Explorer and then visiting a page that uses the Java plugin, such as this javatester.org page, should detect that Java isn't installed and offer to install it. Alternately, go to the Java.com download page using Internet Explorer and run the online installer (details here). [41] [42] [43] Note: If you visit a page that uses Java with your Mozilla browser and it detects that the Java plugin is missing, the Plugin Finder Service (PFS) may offer an outdated version. (Mozilla is planning to either remove the PFS or change the process for downloading missing plugins, at some future date.) [44] [45] [46] [47] [edit] Uninstall JavaFXIf the Java (TM) Platform plugin for your installed Java version is not detected after updating to Java 7 Update 10 or above, this can be caused by a standalone installation of JavaFX that prevents the Java plugin from being properly registered. JavaFX used to be bundled with earlier versions of the Java 7 JRE (Java Runtime Environment) but is now included as part of the JRE. To resolve, follow the instructions given here to get to the Windows Control Panel list of installed programs and uninstall JavaFX. (This java.com help page recommends uninstalling all Java versions, including JavaFX, and then reinstalling the latest version of Java.) [48] [49] [50] [51] [52] [edit] Add back missing registry keyNote: Updating to the latest Java 7 release after Java 7u13 may resolve this issue (see Oracle's bug 8005410) so be sure to update Java before trying a registry fix. If the Java (TM) Platform plugin is no longer detected after updating to the latest Java 7 JRE and the previous suggestion to uninstall JavaFX doesn't resolve the issue (or if there is no JavaFX listed to uninstall), your Java 7 installation may be missing this Windows Registry key, which Mozilla browsers need to detect the Java plugin:
The problem has been reported by users after updating to Java 7 Update 10 (7u10) or Update 11 (7u11). If you're comfortable with a registry fix, do one of the following: Option 1: Add back the missing registry key using a .reg file containing the code posted in this post for Java 7 Update 10 on 64-bit Windows (you'll need to change Option 2: Uninstall ALL versions of Java and JavaFX, use a registry editor to delete these registry keys, if they are not empty, and then reinstall the latest Java 7. [57] [58]
[edit] Remove outdated Java files from the browser plugins folderIf Java is installed and enabled (see Enabling Java, above) check about:plugins to make sure that older Java plugins are not being detected from other locations, such as the browser plugins folder (e.g., C:\Program Files\Mozillla Firefox\plugins), which no longer exists by default. For example, if Java 7 Update 10 is installed, you should see Java(TM) Platform SE 7 U10 File: npjp2.dll Version: 10.10.2.18 Next Generation Java Plug-in 10.10.2 for Mozilla browsers. If older Java plugin versions are shown, you can see the full path to the Java plugin in about:plugins by opening about:config and toggling the preference plugin.expose_full_path to true. Having Java files from previous versions in the browser plugins folder has been known to prevent the current Java version from working and those outdated Java files should be removed. [59][60] [edit] Java-related issuesImportant: Starting in Firefox 3.6, Java will not work unless you are using the Next-Generation Java Plug-In (included in Java 6 Update 10 and above). [61] [edit] Java content requires click-to-play activationMozilla has added Java plugin versions up to and including Java 7 Update 11 to its Add-ons Blocklist as a security measure. Depending on the Java plugin and Mozilla browser version, this may result in outdated Java plugins being disabled in the Add-ons Manager or, in current Firefox and SeaMonkey versions, Java content may require Click to play activation. See bug 829111 and this blog post for details. [62] Note: Starting in Java 7 Update 11, even though you activate Java, a "Security Warning" (screenshot) may appear that you must click through, before the Java applet will run. This occurs because the default security level in Java has been changed from "Medium" to "High". See Oracle's Java Control Panel documentation for more information. [63] [64] [edit] Plugin Check reports outdated Java has been disabled when it is up-to-date or when Java is not installedDue to a bug, Mozilla's Plugin Check page will display the message, Missing JAVA? For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version. even if your Java is up-to-date, if you manually disable the Java plugin in the Add-ons Manager. You will also see that message if Java isn't even installed. (screenshot) [65] [66] [edit] Java Deployment Toolkit pluginInstalling Java 6 Update 10 or above adds a "Java Deployment Toolkit<version>" plugin, which is used for Java version detection by Java applets and applications that require a specific version of Java. This plugin is not needed to run Java applets and can be disabled in the Add-ons manager. Java Deployment Toolkit plugin versions previous to 6.0.200.2 are insecure and are now blocklisted (bug 558584). Updating to Java 6 Update 20 should remove the vulnerable plugin "npdeploytk.dll" and replace it with a fixed 6.0.200.2 version named "npdeployJava1.dll"; however, in some cases, not all copies of the older plugin are removed. [67]. To manually remove the older, vulnerable plugin, find and delete all copies of "npdeploytk.dll" (or rename to "Xnpdeploytk.dll"). [68] [69][70] [edit] Java ConsoleThe Java installer places a Java Console extension in the Firefox installation directory and uninstalling Java removes the extension. Starting in Firefox 3.6, a "Java Console <version>" extension will appear in the Add-ons Manager for each installed version of Java (in previous Firefox versions, these extensions were hidden). [71] The Java Console extension is not needed for Java to work and can be disabled or removed from the Extensions list (see below). Starting with Java 6 Update 10, the Java Console menu item in older versions of Firefox ("Tools -> Java Console") and SeaMonkey 2 ("Tools -> Web Development -> Java Console") is nonfunctional and no longer opens the Java Console (current versions of Firefox and SeaMonkey no longer include this menu item). This is by design. [72] [73] If you don't use the Java Console, there is no need to do anything. The Java article How do I enable and view the Java Console? explains how to open the Java Console, if you need to use it. [edit] Multiple Java Console extensionsStarting in Firefox 3.6, a "Java Console <version>" extension will appear in the Firefox "Tools -> Add-ons -> Extensions" list for each Java version installed (previous to Firefox 3.6 these extensions were hidden). [74] Uninstalling Java should also remove the Java Console extension. Updating Java 6 Update 10 or later removes the previous Java version but may not uninstall the Java Console for that version, causing Firefox to accumulate multiple Java Console extensions. The Java Console extension is not needed for the Java plugin to work (see above) and can be disabled or removed from the Extensions list. On Windows, if the uninstall button to remove the Java Console extension is "greyed-out" or missing, exit Firefox, reopen Firefox from the context (right-click) menu "Run as Administrator" option, then try again. [75] [76] You can also manually remove unwanted extensions by opening the installation directory "extensions" folder and deleting the associated subfolder (e.g., to uninstall the Java Console 6.0.18 extension on 64-bit Windows, open the C:\Program Files (x86)\Mozilla Firefox\extensions\ folder and delete the "{CAFEEFAC-0016-0000-0018-ABCDEFFEDCBA}" subfolder). [77] [78] In Firefox 4 and above, the Firefox installer and updater should automatically remove Java Console extensions from the installation directory "extensions" folder but may not always do so; this should be fixed in Firefox 8. [79] [80] [edit] Java applet causes browser process to remain in memory after exiting the browserSometimes after running a Java applet and then exiting Mozilla Suite, SeaMonkey or Firefox, the browser process may remain in memory [81] [82]. Attempting to restart the browser without ending the existing browser process will result in a profile in use error or, in Firefox 1.5 and later, a message that Firefox is already running but not responding. Allowing the Java applet to fully load before exiting the browser may help prevent the problem from occurring [83]. Exiting the page with the Java applet (click the "Back" button or go to a different web page) before closing the browser may also help [84]. To resolve the issue, try updating to the latest JRE version. [edit] Java applet causes backwards or jumbled typing in text boxesSometimes running a Java applet during the browser session can cause the cursor to behave erratically when you type in a text field, so that your text will display backwards or jumbled. Additionally, you may not be able to copy text to the clipboard. If you are having these problems, exit the browser and end its process if necessary (see above) then restart your Mozilla application. [85] [86] [edit] External links
|
|