LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Enabling Java for Firefox (http://www.linuxquestions.org/questions/slackware-14/enabling-java-for-firefox-4175480802/)

Jeebizz 10-15-2013 12:06 AM

Enabling Java for Firefox
 
So I downloaded and built JDK from slackbuilds, (64-bit) but I don't have it listed in my plugins for Firefox. Seems from the documentation that it is not enabled by default, but how do I enable it?

Using Firefox ESR 17.0.9

ponce 10-15-2013 12:55 AM

as it's really dangerous, the parameter it's well hidden in the SlackBuild: see this block (from it)
Code:

if [ ${EXPLOIT_ME:-"no"} = "YES" ] ;then
  mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
  cd $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
  ln -sf /usr/lib${LIBDIRSUFFIX}/java/jre/lib/${LIB_ARCH}/libnpjp2.so libnpjp2.so
else
  echo "
        The February 2013 Critical Patch Update for Java SE addressed 50
        security vulnerabilities, 44 of which affected the use of Java
        as a plug-in for Web browers.

            !! THE MOZILLA PLUGIN IS NO LONGER ACTIVATED BY DEFAULT !!
      "
  sleep 5
fi

so, if you really like to be pwned, pass the parameter EXPLOIT_ME=YES when launching it. ;)

Jeebizz 10-15-2013 01:15 AM

Thanks for the heads up and help. It is work related though, need to config a camera, and only way to test it is with activex or java (ethernet based webcam). Ah well..


-edit

Well I passed the parameters ./slackbuid ./jdk.SlackBuild jdk-7u25-linux-x64.tar.gz EXPLOIT_ME=YES , installed pkg, rebooted Firefox, but nothing - my device asks me to have java installed.

ponce 10-15-2013 01:33 AM

you have to go in the SlackBuild folder and launch this command
Code:

EXPLOIT_ME=YES ./jdk.SlackBuild
to test if the plugin is installed, go here
https://www.java.com/it/download/testjava.jsp

if can be useful, I usually test webcams with wxcam.

Jeebizz 10-15-2013 02:05 AM

That did it.


All times are GMT -5. The time now is 01:44 PM.