diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index 67678d1e..9d65e0a9 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -1,6 +1,8 @@ use strict; use File::Path; +my $package = 'net.hyperic.sigar'; + my %platforms = ( A => "AIX", D => "Darwin", @@ -1235,7 +1237,7 @@ while (my($class, $fields) = each %classes) { print HFH "#define JSIGAR_FIELDS_MAX $i\n"; while (my($name, $fields) = each %classes) { - my $java_class = "net.hyperic.sigar.$name"; + my $java_class = "$package.$name"; (my $jni_prefix = "Java.$java_class") =~ s/\./_/g; my $class = $name; my $cname; @@ -1332,7 +1334,7 @@ EOF my $cache_field_ids = 1; print JFH <