Changeset 528 for trunk/docs


Ignore:
Timestamp:
Nov 5, 2014, 1:00:33 PM (10 years ago)
Author:
djay
Message:

Add few lines about the Java ZOO-API installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/services/howtos.txt

    r406 r528  
    166166----
    167167
     168ZOO-API
     169*******
     170
     171Before you build your first ZOO-Service implemented inn Java, it is
     172recommended that you first build the ZOO class of the Java ZOO-API.
     173
     174.. Note:: You should build ZOO-Kernel prior to follow this instructions.
     175
     176To build the ZOO.class of the ZOO-API for Java, use the following
     177command:
     178
     179.. code-block:: guess
     180
     181  cd zoo-api/java
     182  make
     183  cp ZOO.class libZOO.so /usr/lib/cgi-bin
     184
     185.. Note:: running the previous commands will require that both
     186          ``javac`` and ``javah`` are in your PATH.
     187
     188Java ZCFG requirements
     189**********************************
     190
     191.. Note:: For each Service provided by your ZOO Java Services Provider
     192          (your corresponding Java class), the ZCFG File must be
     193          named the same as the Java public method name (also the
     194          case of characters is important).
     195
     196The ZCFG file should contain the following :
     197
     198serviceType
     199    Java
     200serviceProvider
     201    The name of the Java class to use as a ZOO Service Provider. For instance, if your
     202    java class, located in the same directory as your ZOO-Kernel, was
     203    named ``HelloWorld.class`` then you should use ``HelloWorld``.
     204
     205
     206Java Data Structure used
     207********************************
     208
     209The three parameters of the function are passed to the Java function
     210as `java.util.HashMap <http://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html>`__.
     211
     212Sample ZOO Java Services Provider
     213******************************************
     214
    168215.. code-block:: java
    169216
     
    178225       outputs.put("Result",hm1);
    179226       System.err.println("Hello from JAVA WOrld !");
    180        return 3;
     227       return ZOO.SERVICE_SUCCEEDED;
    181228    }
    182229  }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png