Hello everybody,<div> I am here because I was trying to use giws. Its really a wonderfull idea .. to call java from c++ .. I tried to compile the examples and I get the following error when I try to compile the example2.. The compile log is ...</div>

<div><br></div><div><div>/usr/lib/jvm/java-6-sun-1.6.0.20/bin/javac  example2/MyObjectWithArray.java</div><div>../../giws -f MyObjectWithArray.giws.xml -p</div><div>example2.hxx generated ...</div><div>example2.cpp generated ...</div>

<div>g++ main.cpp example2.cpp example2.hxx -g -ljvm -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386 -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client/ -I/usr/lib/jvm/java-6-sun-1.6.0.20/include -I/usr/lib/jvm/java-6-sun-1.6.0.20/include/linux  -o myExample2</div>

<div>main.cpp: In function ‘int main()’:</div><div>main.cpp:87: warning: deprecated conversion from string constant to ‘char*’</div><div>main.cpp:87: warning: deprecated conversion from string constant to ‘char*’</div><div>

main.cpp:87: warning: deprecated conversion from string constant to ‘char*’</div><div>example2.cpp: In member function ‘bool* example2::MyObjectWithArray::dealingWithBooleans(bool*, int)’:</div><div><b>example2.cpp:339: error: invalid static_cast from type ‘bool*’ to type ‘jboolean*’</b></div>

<div>make: *** [myExample2] Error 1</div></div><div><br></div><div>I am running on </div><div>ubuntu 10.04 </div><div><br></div><div> java version java-6-sun-1.6.0.20</div><div><br></div><div> g++ -v gives</div><div><div>

g++ -v</div><div>Using built-in specs.</div><div>Target: i486-linux-gnu</div><div>Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu</div>

<div>Thread model: posix</div><div>gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) </div></div><div><br></div><div>can anybody tell me how to fix this.. I am able to compile and run the other 3 examples. </div><div>Thanks for reading this..<br>

Sunil.</div>