Separate compilation for .erl and .java files