Jump to content

Photo

Java version 7 (for web apps)

* * * * * 1 votes java jre firefox

Best Answer NikosAlexandris , 11 June 2014 - 08:06 AM

None of the above helped me further. Searching more for available packages, showed icedtea-web-1.4.2. Emerging it like

USE="jamvm javascript" emerge -av icedtea-web

hinted, among others, a magic message after installation completion saying The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin. Listing options and current setting revealed the "problem"

eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   icedtea-7
  [2]   icedtea-bin-6  current
  [3]   icedtea-web@icedtea-7
  [4]   icedtea-web@icedtea-bin-6
  [5]   oracle-jre-bin-1.7

Setting it to "7", like

eselect java-nsplugin set 64bit 1

fixed it and http://glovis.usgs.gov/ runs fine.  I don't know, of course, if installing icedtea-web-1.4.2 was necessary at all.

Go to the full post »


5 replies to this topic

#1
NikosAlexandris

NikosAlexandris

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts
  • LocationSwitzerland

The USGS Global Visualization Viewer requires Java 7 or higher. In my Funtoo box I have:

java -version

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode

Isn't this already version 7?  How do I get past this obstacle?  I currently use Firefox which features (the plugin) IcedTea-Web ver. 1.3.2.  I have also been through http://www.funtoo.or...ime_Environment to ensure it was not a "Security" misconfiguration.


Nikos Alexandris | Remote Sensing *
GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3


#2
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 415 posts

yes, this is Java 7 update 51. Strongly suggesting to update to 55 version :) Aslo, please, check Funtoo wiki page. http://www.funtoo.or...ime_Environment


www.funtoo.org

#3
drobbins

drobbins

    Administrator

  • Administrators
  • 140 posts

I am able to run the USGS Global Visualization Viewer in Chromium. I set up Java and Chromium as described on the wiki page you linked to.

 

Make sure use set the "nsplugin" USE variable when you emerged oracle-jvm/jdk.

 

I had to perform one extra trick in Chromium to get it to work, because when I went to the USGS site, it displayed the Java logo but underneath said "Java not allowed."

 

To fix this, I went to the page "chrome://plugins" and then checked "Always allowed" checkbox next to:

 

Java™ Version: 10.45.2

Next Generation Java Plug-in 10.45.2 for Mozilla browsers
 
Then I reloaded the page and the Java applet loaded automatically :)
 
So, to review:
 
1) ensure "nsplugin" is In USE.
2) It's working in Chromium.
 
I do not have FireFox emerged on this machine to test.


#4
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 415 posts

nsplugin is automatically set for Oracle Java, we had bug report for it :)


www.funtoo.org

#5
NikosAlexandris

NikosAlexandris

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts
  • LocationSwitzerland
✓  Best Answer

None of the above helped me further. Searching more for available packages, showed icedtea-web-1.4.2. Emerging it like

USE="jamvm javascript" emerge -av icedtea-web

hinted, among others, a magic message after installation completion saying The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin. Listing options and current setting revealed the "problem"

eselect java-nsplugin list
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
  [1]   icedtea-7
  [2]   icedtea-bin-6  current
  [3]   icedtea-web@icedtea-7
  [4]   icedtea-web@icedtea-bin-6
  [5]   oracle-jre-bin-1.7

Setting it to "7", like

eselect java-nsplugin set 64bit 1

fixed it and http://glovis.usgs.gov/ runs fine.  I don't know, of course, if installing icedtea-web-1.4.2 was necessary at all.


Nikos Alexandris | Remote Sensing *
GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3


#6
NikosAlexandris

NikosAlexandris

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts
  • LocationSwitzerland

Maybe this is worth of an entry in the wiki as well?


Nikos Alexandris | Remote Sensing *
GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3




Reply to this topic



  



Also tagged with one or more of these keywords: java, jre, firefox

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users