Install Java Plugin Firefox Portable Edition
- Starting with Java 8 Update 20 (8u20), on Windows systems, the Java Uninstall Tool is integrated with the installer to provide an option to remove older versions of Java from the system. The change is applicable to 32 bit and 64 bit Windows platforms. Notifications about disabled Java and restoring prompts.
- Java Runtime Environment - To use Java apps with Mozilla Firefox, Portable Edition, just install jPortable alongside. If Firefox Portable is in X: PortableApps FirefoxPortable, jPortable should install to X: PortableApps CommonFiles Java. The Firefox Portable launcher will automatically detect and configure the Java plugin for use.
How to Use Mozilla Firefox, Portable Edition. You may have spent years, months, or mere days getting your Firefox just the way you like it, but when you use a computer at work, school, or at someone else's house, you're stuck with the way.
I'd like to install Java in Firefox on Windows but I don't have administrative privileges on my machine.
Any clue on how to achieve this?
studiohack♦7 Answers
Unfortunately the answer for the moment is negative:
You can't install Java in a portable manner, since it requires lots of updates to the registry.
There is nowadays much of a debate as regarding that point, and doubtless with all the portable apps hype going on it's only a matter of time before a portable version of Java becomes available that doesn't use the registry.
To resume, while Firefox is portable, Java isn't. Not yet, anyway. Stay tuned to Sun announcements concerning Java, and hopefully the problem will be resolved in the coming months.
harrymcharrymc
Browse to http://portableapps.com/apps/internet/firefox_portable and download Mozilla Firefox, Portable Edition. Install it to a local folder with write access. You can add anything as this version puts all the files in one location.
You can also install a portable java on a usb stick, check this.
ChrisChrisNot much detail in this question but this part confused me:
I don't have administrative privileges on my machine.
It's your machine, yet you have no administrative privileges? Did you forget the password? You can clear the administrator password using Offline NT Password & Registry Editor. If it is someone elses machine, you can download the Java installer and extract it with Universal Extractor Binary Archive (no install needed) to any location you want, then follow the steps Goyuix outlined to have Firefox recognize it.
Maybe more insight into why you don't have administrative privileges can help us give you a better answer.
If you have Firefox and Java running on that computer (portable or otherwise), the only remaining glue is to get the Java Platform Plugin registered with Firefox. How it detects where Java is installed and which runtime to use is a bit of a mystery honestly, it probably looks in the registry or checks for the JAVAHOME environment variable. Not sure.
- Copy the np*.dll files for your version of the JRE from the following location: C:Program FilesJavaj2rebin (or whatever the path is to your JVM)
- Paste them into your Firefox plugins folder, which is typically in the following location: C:Program FilesMozilla Firefoxplugins (or whatever the path is to your Firefox)
There are also several references to Java in the extensions.ini, extensions.rdf and pluginreg.dat. All of these are plain text files that you can edit, though it still may not be the required ingredients. Compare them with a known good, working Firefox + Java install and hopefully you can make it work. These files are in the %APPDATA%Mozilla folder, and in your profile, by default. Not sure where they will be on your portable version.
GoyuixGoyuixFirefox (both installed version and portable version) may use the environment variable 'MOZ_PLUGIN_PATH' to search for plugins, so you can:1) create a new environment variable in your OS using the above-mentioned name and put as value [current plugins folder];[portable java plugins folder]2) simply create a batch file (.BAT file), using the 'set' DOS command to set the above-mentioned environment variable in the same format:set moz_plugin_path=[current plugins folder];[portable java plugins folder]and then insert a new line to run Firefox.3) using the .INI file of the portable firefox version to include the plugins folder of Portable Java.
The [current plugins folder] is the current folder of Firefox Plugins. If you don't know where it is, open firefox, go to Plugins page, search for 'default plugin', you can read the full path where the default firefox plugin is placed.The [portable java plugins folder] is the current folder of plugins used by portable java. It is placed in 'Javabinnew_plugin' folder (Java is the root folder where Portable Java has been installed). If you still have problem, search for file 'npjp2.dll', and take note of the related folder where it is placed.
To check if one of the above-mentioned procedure has gone well, open Firefox and you should have two new items inside Plugins page:'Java Deployment Toolkit' and 'Java Platform SE'.
Hope this may be useful for all of you.
P.S. If you use the procedure 1, you must logoff Windows and logon Windows again in order to let Windows load the new environment variable.
Sure, gain Admin priviledges ;)
Use OphCrack to get the passwords for the local accounts on your computer and then use the credentials to launch an offline Java installation as an admin. Of course, this is assuming the rainbow tables in Ophcrack are capable of cracking the local account passwords.
rodeyrodeyEasy peasy...even mom can do it! ;-)
Not the answer you're looking for? Browse other questions tagged windowsfirefoxjavaadministrator or ask your own question.
I am trying to install Java and plugins for Firefox. I installed both the JDK and JRE.
When I try with the sudo update-alternatives --config java command it shows only one choice available.
Plugins are not usable in Firefox.
Braiam6 Answers
If you are using a version after 52 (not ESR), which disabled NPAPI, you are out of luck. If you are using one prior, which you absolutely wouldn't want to, you can install the OpenJDK JRE, which would allow you to execute Java binaries locally using the java binary. This however, isn't enough to execute Java web applets on your browser, which can be accomplished by installing the Icedtea plugin:
Then go to about:addons, in the plugin section, check if the plugin is enabled. Mozilla disables insecure plugins by default, that means that Java is disable even after installation due security concerns. You need to activate it before using it.
Installing the IcedTea Java plugin:
To install the IcedTea Java plug-in, open a terminal and type:
Install the Firefox plug-in - Oracle
In a terminal:
Remove the IcedTea plugin, if it has been installed.
Remove a former version of the Java plugin (may or may not be present)
Now you can install the plugin, by creating a symbolic link (you tell Firefox where the plugin is located). For 32-bit Java, use
For 64-bit Java use
Confirm that the JRE has been successful by using the official Oracle website.
Source: Java installation

Beginning in Firefox version 52, support for NPAPI plugins (java applets) in Firefox has ended, due to performance and security issues, the way that I manage to run java applets is to install the Extended Support Release (ESR) of firefox. Blue color html.
download here:https://www.mozilla.org/en-US/firefox/organizations/all/
more details here:https://support.mozilla.org/en-US/kb/npapi-plugins
Add Java Plugin To Firefox
If you just downloaded and installed java jdk from oracle, then, let's say you have installed jdk-8u91-linux-x64.tar.gz on
/my/java/directory/
Then you'll have a directory like:
/my/java/directory/jdk1.8.0_91/
All you have to do is go to your ubuntu firefox plugins directory and create a link:
This is an old thread, but I stumbled upon it while googling a solution to my problem today. I figured someone else might be in the same situation.
I need in-browser Java for legacy work-related websites, and the oracle java plugin does not cut it. After a long trial-and-error approach, I got IcedTea working consistently in an older version of firefox like this:
- Download a tar of Firefox, version 51 (newer version don't support the plugin)
- Install the OpenJDK (7 or 8)
- Install the icedtea--plugin and the icedtea-plugin
- Now your openJDK installation will contain a IcedTeaPlugin.so file in the jre/lib folder
- copy this to the mozilla/firefox plugin folders (I couldn't figure out which one to copy it too, so I just copied it to anything firefox/plugins or mozilla/plugins)
- start your old firefox version
- verify the plugin is active (check about:plugins)
Download Firefox Java Plugin
One of my colleagues created a script to remove the old firefox, and untar it on every run. That way it never gets updated accidentally. Be sure not to do this with your main firefox application.
I hope this helps you.
Its been a battle, especially since I went through this a couple of months ago with 14.04, forgot the solution, upgraded to 16.04...
It is different I had Iced-tea and Oracle working under firefox in 14.04. I actually prefer Oracle (not generally but my use almost requires it) so I only have that now. I did not attempt any multiple installs or repositories. Symlinks as per most of the instructions out there are no good either.
In the end, in Firefox went to Edit--> Preference-->Applications then scrolled down to the JNLP file extension and picked 'Use other..' from the drop down menu. Then found javaws from the relevant directory.
It is only a workaround, and Im not sure if it will suit your needs. Keep in mind most plugins will be deaded by March.