Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 1432

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>B Enabling Oz Applets</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html#appendix.emacsunix">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD></TR></TABLE><DIV id="appendix.applets"><H1><A name="appendix.applets">B Enabling Oz Applets</A></H1><P> Most Mozart demos are available as <EM>Oz applets</EM>: Oz applications that can be started by clicking a link on a web page. In order to start them by clicking, the web browser must know about Oz applets (or Oz applications as we also call them). </P><DIV id="section.windows.notes"><H2><A name="section.windows.notes">B.1 Enabling Oz Applets under Windows</A></H2><P> The modifications described below only have to be done by Unix users. Under Windows the installation process will automatically do the necessary modifications for you. If that fails for some reason, please follow the instructions below, but use </P><BLOCKQUOTE class="code"><CODE><SPAN class="string">&quot;C:\Program&nbsp;Files\Mozart\bin\ozenginew.exe&quot;</SPAN>&nbsp;<SPAN class="string">&quot;%1&quot;</SPAN></CODE></BLOCKQUOTE><P> as application (assuming that you installed Mozart under <KBD>C:\Program Files\Mozart)</KBD>. </P></DIV><DIV id="section.applets.oz"><H2><A name="section.applets.oz">B.2 Oz Applications</A></H2><P> Application execution in a web browser (and also by mail tools, etc.) is controlled by MIME types. An Oz application has the MIME type <KBD>application/x-oz-application</KBD> and the filename extension <KBD>oza</KBD>. </P><P> To make your Web Browser or E-Mail tool Oz application enabled, it needs to know the following bits of information: </P><DL><DT>Mime type </DT><DD><P>This is <KBD>application/x-oz-application</KBD>. </P></DD><DT>File extension </DT><DD><P>This is <KBD>oza</KBD>. </P></DD><DT>Program location </DT><DD><P>Where the Oz engine to execute Applications resides. For example, if Mozart has been installed in <KBD>/usr/local/oz</KBD>, this is <KBD>/usr/local/oz/bin/ozengine</KBD>. </P></DD></DL><P> </P></DIV><DIV id="section.applets.netscape"><H2><A name="section.applets.netscape">B.3 Example: Making Netscape Mozart Enabled</A></H2><P> </P><DIV class="picture" id="figure.applets.install"><HR><P><A name="figure.applets.install"></A></P><P align="center"><B>The Netscape application dialog.</B></P></DIV><DIV align="center"><IMG alt="" src="netscape.gif"></DIV><DIV class="picture"><P class="caption"><STRONG>Picture&nbsp;B.1.</STRONG></P><HR></DIV><P> </P><P> You have to do the following steps: </P><P> </P><UL><LI><P>Open the preferences window. </P></LI><LI><P>Choose the Navigator, Applications dialog. </P></LI><LI><P>Press the <EM>New</EM> button. </P></LI><LI><P>Enter the information as sketched above, as you see it done in <A href="node14.html#figure.applets.install">Picture&nbsp;B.1</A> </P></LI></UL><P> </P></DIV></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html#appendix.emacsunix">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A>, <A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A>, <A href="http://www.ps.uni-sb.de/~scheidhr/">Ralf&nbsp;Scheidhauer</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>