sources = [files('com/mesonbuild/JniTest.java')] subdir('com/mesonbuild') jnijar = jar( 'jnijar', sources, main_class : 'com.mesonbuild.JniTest', )