Demonstrates how a Java program calls an Eiffel routine.
============================================================================

requirements:
=============
- JDK (tested version: 1.2.2)
- JSDK (tested version: 1.2.2) to compile it as a servlet
- if you want to run it from a servlet (inside a Webserver) you have to
  have a Servlet enabled Webserver like Sun's Java Web Server and the
  JSDK (Java Servlet Development Kit)


compilation
-----------
 - compile Java classes for standalone program, e.g. from the command
   line:
     javac Main.java NativeClass.java
 - compile Java classes for servlet (if you have the software required),
   e.g.:
     javac EiffelServlet.java
 - compile Eiffel, e.g. from the command line:
     vec -a:system.xace

running
-----------

   - java Main


You should see some output which shows that the flow of a dummy XML
string flows from the java layer to the c-layer to the eiffel layer.
Eiffel then sends back the same way another string.

Using a XML string has the advantage that we do not have to bother with
all the different JNI types and so forth. But it also means that we have
to have a XML Parser on the Eiffel side.

using it with servlets
-----------------------
You can use this technique together with servlets (see "requirements"
section for details).

After compilation install this servlet (Java class, HTML (updated if
required) and DLL) in your servlet enabled web server (like SUN's Java
Web Server). Open the file 'EiffelServlet.html' in your Web Browser and
press the submit button. You should get the message 'String created by
Eiffel' in your browser.

---
Sven Ehrke (sven.ehrke@sven-ehrke.de), June 1st 2000
Adapted by Alexander Kogtenkov (kwaxer@aha.ru) to avoid using C code,
  June 5th 2000
