edit · print · PDF

Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.

How to use the OSIRIS SNR Calculator from your browser

As described in http://venus.ifca.unican.es/~gserrano/osiris/Calculators.html, the OSIRIS SNR Calculator requires Java v1.6 (or later), and that the appropriate MIME type and associated application be defined in the browser.

Here at the IAC Java 1.6 is installed, though it's not the default version, while the above MIME type is unknown to the browser. Changing the default Java version could produce conflicts with other Java-based packages. In this short article we explain how to set your browser up so as to be able to launch the OSIRIS SNR Calculator.

All these instructions are for an IAC desktop Linux PC.
If you wish to run this tool from your own laptop or from some other Linux machine (or from a Mac), probably the only thing you need to modify is the Java path.

Firefox

Install MIME Edit extension (for Firefox v 2.0.*)

Install MIME Edit extension (for Firefox v 3.x)

  • The above extension only works in Firefox v 2.0. An unofficial update of MIME Edit for FF 3.x is available.
  • Download the .xpi file in some folder. Then from Firefox press CTRL-o, go to this folder, select and open the .xpi file, and click on "Install".
  • Once done, click on "Restart Firefox".

Add the new MIME type

  • From the Firefox Tools menu, click on "MIME Edit...".
  • On the MIME Edit Preferences dialog Window, click on "Edit".
  • Click on "New Type", then:
    • In the MIME Type box, write: application/x-java-jnlp-file;
    • The Description box can be left blank, or just write a short description, for instance "OSIRIS SNR Calculator" or something similar;
    • In the "Extension" box, write: jnlp;
    • Select "Open it with" and in the box write: /usr/pkg/jdk/jdk1.6.0_06/bin/javaws;
  • Click on "OK" and close the MIME Edit window.

Launch the OSIRIS SNR Calculator

Opera

  • Open the "Tools" Menu and click on Preferences.
  • Click on "Downloads", and the on "Add".
  • In the MIME type box write: application/x-java-jnlp-file; in the File extension box, write jnlp.
  • Then select "Open with other application" and in the box write: /usr/pkg/jdk/jdk1.6.0_06/bin/javaws.
  • Also check "Pass web address directly to application".
  • The "OK" and "OK" again to exit from the Dialog.

At this point Opera should automatically launch the Java applet when clicking on http://venus.ifca.unican.es/~gserrano/osiris/OSIRISETC.jnlp

edit · print · PDF
Page last modified on March 31, 2009, at 03:31 PM