Включить java firefox linux

How to get Java working in chromium or firefox

I updated Java (version 1.8.0_25) and now I can’t seem to get it working in chromium or FireFox. The java plugins for Firefox and for chromium are not listed anymore. Changing back ( via update-alternatives —config ) doesn’t seem to do anything. Firefox is version 33 and chromium is 34

1 Answer 1

This how you can install java manually: Download java

step 1: Download java for your system (i.e for 32 bit or 64 bit machine) step 2: Open Terminal and go to path where java is downloaded. it may be in downloaded to ~/Downloads. so cd ~/Downloads step 3: now we will create directory called ‘java’ in /usr. sudo mkdir /usr/java step 4: Now we will move ‘jre…tar.gz’ to ‘/usr/java’. sudo mv …tar.gz /usr/java Go to ‘/usr/java’ directory cd /usr/java step 5: We will extract now sudo tar -zxvf …tar.gz The plugin file for Linux is located here: 32 bit: /usr/java//lib/i386/libnpjp2.so 64 bit: /usr/java//lib/amd64/libnpjp2.so step 6: Now installing java plugin for mozilla. Create a symbolic link to the Java Plugin in the Firefox plugins directory. Open terminal follow these instructions cd ~/.mozilla ls To check plugins directory is present or not. if plugins directory is not created. mkdir plugins cd plugins sudo ln -s /usr/java//lib//libnpjp2.so . step 7: Restart Firefox Browser. step 8: Verify java 

You must log in to answer this question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.17.43537

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

JavaPlugin

Эта инструкция описывает установку модуля поддержки Java от Oracle для Firefox.

Предыстория

Так как компания Oracle изменила лицензию на Java, запрещающую её распространение в дистрибутивах Linux, в браузерах Chromium и Firefox стало невозможно использовать старый плагин Java (из Java 1.6.0 Sun), а OpenJDK 1.7.0 может не поддерживать некоторые аплеты. Пользователю остаётся скачивать Java с сайта Oracle и настраивать её работу.

Правильный способ

1. Актуально для текущего стабильного бранча (p6) и Sisyphus. Обновить пакет mozilla-plugin-java-1.7.0-openjdk

2. Если аплеты не работают на OpenJDK, собрать OracleSDK как показано на http://www.altlinux.org/Java/OracleSDK и установить пакет mozilla-plugin-java-1.7.0-oracle

Чуть ниже инструкция для тех, кто не желает собирать пакет.

Получение Java с сайта Oracle

Нажмите «Accept License Agreement» и выберите нужный RPM для своей архитектуры:

Установка RPM

apt-get install jre-7u6-linux-i586.rpm
apt-get install jre-7u6-linux-x64.rpm

Регистрация в браузерах

Для всех пользователей

Если нужно сделать доступным для всех пользователей в Firefox и Chromium, выполните под правами root:

ln -s /usr/java/jre1.7.0_06/lib/i386/libnpjp2.so /usr/lib/browser-plugins
ln -s /usr/java/jre1.7.0_06/lib/amd64/libnpjp2.so /usr/lib64/browser-plugins

Для одного пользователя

В терминале под обычным пользователем выполните

mkdir ~/.mozilla/plugins/ ln -s /usr/java/jre1.7.0_06/lib/i386/libnpjp2.so ~/.mozilla/plugins/
mkdir ~/.mozilla/plugins/ ln -s /usr/java/jre1.7.0_06/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Проверка работы

Проверка зарегистрированного плагина

Запустите Firefox и откройте адрес

В списке модулей должен быть плагин Java, как показано на рисунке.

Источник

9 Manual Installation and Registration of Java Plugin for Linux

Many browser vendors have removed NPAPI based plugin support. Therefore, the Java Plugin will not register with any modern browsers, such as Firefox ( Firefox 52+) and Chrome (Chrome 42+).

Manually linking the Java plugin libraries to the Mozilla plugins directory may cause the Firefox browser to crash on Linux during startup, due to incompatibilities with ‘glibc’ versions in JDK 8u191 and later releases. The crash might also occur if the link was manually created for an earlier JRE and a user updates to JDK 8u191 or later releases. For more information, see the Known Issues section of the JDK 8u191 release notes .

This page describes how to install and register the Java plugin.

This page has these topics:

See «JDK 8 and JRE 8 Installation Start Here» for general information about installing JDK 8 and JRE 8.

Plugin Installation

When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. To make the plugin available to all users, create the link inside of the Firefox application’s directory, in the plugins subdirectory. Alternatively, you can create the symbolic link in your home directory, in ~/.mozilla/plugins . In the remainder of this document, the text, «Firefox plugins directory«, implies either of these locations.

This release provides the Next-Generation Java plugin. If you have been using the classic plugin, see «Notes» for further information.

The location of the plugin file for Linux varies according to the processor architecture of the underlying platform, as shown in the following table.

Processor Architecture Location of File
32-bit j re1.8.0 version /lib/i386/libnpjp2.so
64-bit jre1.8.0_ version /lib/amd64/libnpjp2.so

If you are using a 32-bit Firefox, you should use the 32-bit Java Plugin (from the lib/i386 directory). To determine which version of Firefox you are running, launch the application, and select the menu item Help > About Mozilla Firefox. At the bottom of the window is a version string line that contains either «Linux i686» (32-bit) or «Linux x86_64» (64-bit).

To install the Java Plugin follow these steps:

  1. Exit Firefox.
  2. Uninstall any previous installations of Java Plugin. Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one. Remove the symbolic links (or move them to another directory) to javaplugin-oji.so and libnpjp2.so from the Firefox plugins directory.
  3. Create a symbolic link to the Java Plugin in the Firefox plugins directory. For a 32-bit plugin:
$ cd Firefox/plugins $ ln -s JRE/lib/i386/libnpjp2.so .
$ cd Firefox/plugins $ ln -s JRE/lib/amd64/libnpjp2.so .

Notes

The classic plugin file was located here:

JRE/plugin/i386/javaplugin-oji.so

This file should no longer be used and all symbolic links to it should be removed.

Источник

How to install the Java plugin for Firefox?

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.

To me it is not clear what your problem is. Is java functioning properly? Can you compile and run java programmes?

As far as I understand you have installed jdk, jre and the browser plugins (icedtea). But you can’t use the plugins, can you explain further what the problem is? Are you getting an error? Btw, you can uninstall (Remove) and re-install IcedTea at the Software Centre.

@Seth but you want OP to read through all of that for something that can be solved in 1 line? The other is an overkill answer, the question is just «how to install Java?» while this is «how to install Java browser plugin for firefox?», those are different questions and can’t be merged.

I agree with @Braiam above. This is a different question because updating the Java version used by firefox is not the same as simply installing java. I personally have oracle Java 6, 7, and 8 JDKs but installing icedtea did nothing for my firefox. I had to follow these instructions with a JRE downloaded from java.com. Then firefox was happy.

7 Answers 7

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:

sudo apt-get install 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.

@kikicarbonell unless Ubuntu is something different, that package should be installed along with icedtea-plugin.

not for my case @Braiam. I have Ubuntu 14.04 and open-jdk installed. but if only execute your command my Firefox not execute java applet. Later, I try to execute apt-get install default-jre and firefox problems was solved.

Installing the IcedTea Java plugin:

To install the IcedTea Java plug-in, open a terminal and type:

sudo apt-get install icedtea-7-plugin 

Install the Firefox plug-in — Oracle

Remove the IcedTea plugin, if it has been installed.

sudo apt-get remove icedtea6-plugin 

Remove a former version of the Java plugin (may or may not be present)

rm ~/.mozilla/plugins/libnpjp2.so 

Now you can install the plugin, by creating a symbolic link (you tell Firefox where the plugin is located). For 32-bit Java, use

ln -s /usr/lib/jvm/jre1.7.0/lib/i386/libnpjp2.so ~/.mozilla/plugins/ 
ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so ~/.mozilla/plugins/ 

Confirm that the JRE has been successful by using the official Oracle website.

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.

If you just downloaded and installed java jdk from oracle, then, let’s say you have installed jdk-8u91-linux-x64.tar.gz on

Then you’ll have a directory like:

All you have to do is go to your ubuntu firefox plugins directory and create a link:

$: cd /usr/lib/firefox-addons/plugins/ $: sudo ln -s /my/java/directory/jdk1.8.0_91/jre/lib/amd64/libnpjp2.so 

With Firefox 50 on Ubuntu 16.04.1, I found that directory didn’t exist. Other plugins like IcedTea created symlinks in /usr/lib/mozilla/plugins .

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)

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.

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.

Источник

Читайте также:  Linux ac3 to aac
Оцените статью
Adblock
detector