java: Add static (non-generated) file support