The problem appears to be with aolserver 3.4. This is the first time I've tried building nsjava with aolserver 3.4, and it failed with the same error that you have. I should be able to come up with a fix for it pretty soon, but in the meantime, you can try one of the earlier aolserver versions. I'm currently using aolserver3_2+ad12, and nsjava builds fine with that.
I'll post here when I have a fix for the 3.4 problem.