GCJ::Cni is a Perl module for CNI Bindings to GNU Compiler for Java.
SYNOPSIS
Using this module in Perl is similar to using it in C++:
use GCJ::Cni;
if ( GCJ::Cni::JvCreateJavaVM(undef) ) {
die "Failed to initialize JavaVM, cannot continue...";
}
unless ( my $thread_obj = GCJ::Cni::JvAttachCurrentThread(undef, undef) ) {
die "Failed to attach thread, cannot continue...";
}
...
if ( GCJ::Cni::JvDetachCurrentThread() ) {
die "Failed to detach current thread, cannot continue...";
}
This module wraps the GCJ CNI interface for use in Perl. This library is needed to call natively compiled (by way of GCJ) Java classes from Perl. This can be used to write Perl modules in Java instead of the customary C or C++.
Requirements:
· Perl
Product's homepage
Requirements:
· Perl