I'm trying to write a simple app in c++ using the java lucene
libraries. Basically, what the app wants to do it open a lucene
index, and then close it. The problem I have is that when calling a
static method of a java class from c++, the program fails. It doesn't
throw an exception, and the function being called never reaches its
first line. My first thought was that maybe the gcj-compiled lucene
was not properly initializing static classes, so I decided to "fix"
this by explicitly calling JvInitClass on the object's class$
variable. This causes my program to abort there, instead of when I
call the static method of the class I'm trying to use. So, since gcj
supposedly inserts JvInitClass transparently at the beginning of each
static method, it's looking like JvInitClass is seeing something bad,
and exiting. The program's return code is 1, if that helps anything.