Error building Player: ArgumentException: An empty file name is not valid

I use Unity Pro 3.5.6 with Android Pro on OS X. I want to build the java plugin sample on the official unity docs sites,then it throwed an ArgumentException and the console saying “An empty file name is not valid”. But I try this on my windows pc,it build success.
Why the official java plugin sample build failed on mac ?

the solution is to return to the version of Java 6 and activate! I went out the same error, but now I compiled successfully! check which version of java you from the official page and returns to the 6.