Here is a example of the use of giws with Array

Defines where is the JDK
# export JAVA_HOME=/path/to/java/

Compile the java file
# $JAVA_HOME/bin/javac example3/MyObjectWhichReturnsExceptions.java

Generate the wrapper
# ../../giws --throws-exception-on-error -p -f MyObjectWhichReturnsExceptions.giws.xml

Note GiwsException.cpp & GiwsException.hxx are also generated here.

Where are the JVM native libraries ? (if not using another arch, please update the path)
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client/

Compile the wrapper and the sample program using it
# g++ main.cpp GiwsException.cpp example3.cpp -g -o myExample3  -ljvm -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -L$JAVA_HOME/jre/lib/i386 -L$JAVA_HOME/jre/lib/i386/client/

Try it !
# ./myExample3
