add base java file for network