Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Using Oracle's Java Plugin for Firefox in Ubuntu (not OpenJDK IcedTea)  (Read 5029 times)
0 Members and 1 Guest are viewing this topic.
Offline Nyhm

Senior Devvie


Medals: 3
Projects: 1


Island Forge


« Posted 2012-02-25 20:40:35 »

This is the simplest approach I have found for using the Oracle Java Plugin for Firefox in Ubuntu, rather than the OpenJDK IcedTea plugin, which has given me nothing but problems (inconsistently running applets, refusing to update applets, no sound, full browser lock-up, etc).

Background: Ubuntu ships with OpenJDK/IcedTea, and no longer includes any Sun/Oracle JDK/JRE. There are many articles on entirely replacing OpenJDK with Oracle's software, but none are very pretty (manual hacks to trick Ubuntu into accepting Oracle Java, using external repositories, etc.). The following approach does not remove the OpenJDK from your system. It simply circumvents the IcedTea plugin in Firefox, and only for the current user (not the entire system). This allows Ubuntu to remain happy, and your Firefox instance to use a manually installed Java Plugin (which will not be updated via Ubuntu software updates).

Notice: This works for me with Java 6 (I have not yet tried Java 7 OpenJDK/IcedTea applet behavior), but use at your own risk.

  • Install Java (I will refer to the root installation path as <java>)
  • Disable the IcedTea plugin in Firefox & exit Firefox
  • Make this directory: ~/.mozilla/plugins/
  • Create symbolic link (i386 path depends on your platform): ln -s <java>/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/
  • Restart Firefox, check that the Java Plug-In is installed & enjoy functional applets

I hope this is useful to others - now I can finally play the Showcase and Java4k applet games!

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline gouessej
« Reply #1 - Posted 2012-02-25 22:10:10 »

Hi

I use OpenJDK for years and I don't have these problems except for sounds with games using the high level part of the JavaSound API (whereas JOAL works just fine), I'm under Mageia Linux 1. I don't advise people to switch to Oracle's Java Plugin. Maybe there is a problem with Ubuntu but you should not conclude the problem comes from OpenJDK itself. Best regards.

Offline Nyhm

Senior Devvie


Medals: 3
Projects: 1


Island Forge


« Reply #2 - Posted 2012-02-25 23:55:28 »

I quite agree with you - I'd like everyone to use OpenJDK, and I'm really looking forward to the open source community overcoming some of the longer-standing pains of the Sun/Oracle JDK/JRE/Plugin.

However, I have absolutely no success with IcedTea in Firefox in Ubuntu. It may very well be Ubuntu's fault (old version, poor dependencies, etc.). Regardless of who holds the blame, it doesn't work (for me) in practice. I've tried off and on for months to find a suitable way to address the issue, and this is the simplest, least obtrusive (to the OS at large) approach.

If there's a way to make IcedTea work in Firefox in Ubuntu, that would be a welcome addendum to this article.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2012-02-26 13:00:02 »

OpenJDK != IceaTea

I use IcedTea6 1.10.4 (which is based on Sun's build drops of OpenJDK6) with OpenJDK Client VM (build 20.0-b11, mixed mode). I may plan to switch one of my machines to Ubuntu or Debian, then I will try to reproduce your "bugs".

Do you have the same problem with OpenJDK 1.7?

Offline pjt33
« Reply #4 - Posted 2012-02-26 13:48:41 »

For those who want to know the proper approach, it's to use the alternatives system. There are tutorials around. It is, however, not simple. If there's a lot of interest in a shell script, I could try to put something together.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (29 views)
2014-11-22 12:13:56

xFryIx (71 views)
2014-11-13 12:34:49

digdugdiggy (50 views)
2014-11-12 21:11:50

digdugdiggy (44 views)
2014-11-12 21:10:15

digdugdiggy (38 views)
2014-11-12 21:09:33

kovacsa (62 views)
2014-11-07 19:57:14

TehJavaDev (67 views)
2014-11-03 22:04:50

BurntPizza (64 views)
2014-11-03 18:54:52

moogie (80 views)
2014-11-03 06:22:04

CopyableCougar4 (80 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!