On Wed, 05 Jul 2000, Juergen Kreileder wrote:
> >>>>> "chris" == chris  <[EMAIL PROTECTED]> writes:
> 
>     chris> I'm getting started trying to use the JNI from a C++
>     chris> program.  JNI_CreateJavaVM() returns -1. Not much info
>     chris> there except that it has failed.  Any clues as to where to
>     chris> begin debugging this? I'm using the examples from the
>     chris> Gordon book on JNI. Does someone have a JNI hello world for
>     chris> the Blackdown distribution? I don't see anything in the
>     chris> demo directory.
> 
> There are some examples in the FAQ:
> 
> 
>http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-4.html#ss4.5
> 

Thanks Juergen. Turns out I was using the 1.1 init args with the 1.2 jdk.
Curious about that, why do we need both versions in jni.h when it shipped with
a specific jvm.  And since one has to change the argument structure and
recompile between versions anyway why is the type carried as void* in all the
function calls?

-- 
Chris Cross
IBM West Palm Beach
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to