[enh][compiler] use standard c array declaration
[enh] add license information
[enh] add licence headers to all .java files