WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: running java applet in web browser  (Read 2479 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
running java applet in web browser
« on: July 07, 2012, 08:03:13 PM »
Some websites like catchvideoDOTnet say java is not installed on your system.
I installed openjdk-7-jre.tcz
'java -version' says
Code: [Select]
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-tc_2010_01_30_13_43-b00)
OpenJDK Server VM (build 17.0-b08, mixed mode)
How do I make firefox 13 recognise this ?
I searched for libjava* files & got

/tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava.so
/tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/jre/lib/i386/libjava_crw_demo.so

I have used oracle/sun jre binary before in which you had to copy link to libnpjp.so in ~/.mozilla/plugins . What is the case in openjdk ?
NOTE:did not find iced tea plugin in app cloud,also libjavaplugin_oji.so is part of oracle jre

Offline thane

  • Hero Member
  • *****
  • Posts: 691
Re: running java applet in web browser
« Reply #1 on: July 07, 2012, 08:16:34 PM »
FWIW, I use the sun-jre extension rather than the openjdk ones. I tried openjdk and the websites I went to didn't seem to recognize it. I didn't really dig into it to figure out what was happening though.

edit: I'm not a moderator but this thread would be more appropriate for the TCE Talk or TCE Q & A Forum, since it discusses extensions rather than the base system.
« Last Edit: July 07, 2012, 09:48:47 PM by thane »

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: running java applet in web browser
« Reply #2 on: July 07, 2012, 11:23:10 PM »
$ find / -iname 'libnp*' 2> /dev/null
/tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpjp2.so
/tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpt.so
/tmp/tcloop/sun-jre/usr/local/lib/mozilla/plugins/libnpjp2.so
/usr/local/java-sun/jre/lib/i386/libnpt.so
/usr/local/java-sun/jre/lib/i386/libnpjp2.so
/usr/local/lib/mozilla/plugins/libnpjp2.so

Seems - installing sun-jre is not enough.
'java -version' says
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode
After I add link to /tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpjp2.so in ~/.mozilla/plugins folder then , java in browser works.