Java with Opera 10 on Gentoo AMD64


So I recently was messing around with Opera 64bit on Gentoo and trying to get Java to work. The process was actually a lot easier than I expected. First I made sure I had the latest sun-jdk installed, which was dev-java/sun-jdk-1.6.0.16 in this case. Now to make it work with Opera I did the following:

cd /opt/sun-jdk-1.6.0.16/jre/lib/amd64/

Opera doesn’t seem to work by default like this, probably because it ignores the plugin and uses java directly. Because of this, you need to symlink the libjvm.so so Opera can find it:

ln -s server/libjvm.so .

Set opera to use /opt/sun-jdk-1.6.0.16/jre/lib/amd64/ as the java path and restart opera. All should be working now, you can check by following this test page: http://www.opera.com/media/applets/clock/

If anyone knows a more proper way of doing this, be sure to let me know

, ,

  1. #1 by Trizt on September 21, 2009 - 1:31 am

    The subject will make people think you write something about adobes flash player plugin.

  2. #2 by Ken on September 21, 2009 - 1:35 am

    Er.. lol. Thanks. Guess I’m a bit blind today :D

  3. #3 by evadim on September 21, 2009 - 7:06 am

    Thanks for tip! icedtea6 seems work in same way, but I have troubles with russian characters : sun-jdk http://gallery.evadim.ru/d/441-1/2009-09-21-145247.png icedtea6 http://gallery.evadim.ru/d/443-1/2009-09-21-145031.png suggestions ?

  4. #4 by Pavel on September 21, 2009 - 11:15 am

    Now that you speak of it, couldnt/shouldnt this be automated somehow? I keep thinking of this whenever I install a gentoo box … I.e.: - the java ebuild would create the symlinks for you - register packages dependend on eselect java - eselecting a java version would also change configurations of dependend packages (such as opera)? Or would this be considered too much complex by devs? Is there any gentoo-wide concensus on how to deal with issues like this?

  5. #5 by Draget on September 22, 2009 - 7:58 am

    Exactly what I wrote in the IRC chat =)

  6. #6 by Ken on September 23, 2009 - 6:54 pm

    evadim :

    Thanks for tip! icedtea6 seems work in same way, but I have troubles with russian characters : sun-jdk http://gallery.evadim.ru/d/441-1/2009-09-21-145247.png icedtea6 http://gallery.evadim.ru/d/443-1/2009-09-21-145031.png suggestions ?

    I’ve no idea whats wrong with IcedTea. Haven’t tried it myself yet.

    Pavel :

    Now that you speak of it, couldnt/shouldnt this be automated somehow? I keep thinking of this whenever I install a gentoo box … I.e.: - the java ebuild would create the symlinks for you - register packages dependend on eselect java - eselecting a java version would also change configurations of dependend packages (such as opera)? Or would this be considered too much complex by devs? Is there any gentoo-wide concensus on how to deal with issues like this?

    I don’t think there is any general consensus on it, like most things :P . It would be nice if it worked out of the box, but with all the different JDK’s and such I dunno.

  7. #7 by Timothy on September 24, 2009 - 1:39 pm

    What about having one plugin directory, and symlinking the files so they’ll be found by the browser as it is installed?

(will not be published)

Comments are closed.