bartdag/py4j — pull request #104 by JoshRosen (2012-07-28 22:59:46+00:00)
Title: Fix Java build errors caused by UTF-8 source encoding

On my machine (Mac OS 10.7.4), the `py4j-java` build fails due to encoding errors:

I receive this error under both maven and ant:

```
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/josh/Documents/programming/py4j/py4j-java/test/py4j/examples/UTFExample.java:[7,20] illegal character: \8730
[ERROR] /Users/josh/Documents/programming/py4j/py4j-java/test/py4j/examples/UTFExample.java:[7,21] illegal character: \169
[ERROR] /Users/josh/Documents/programming/py4j/py4j-java/test/py4j/examples/UTFExample.java:[7,22] invalid method declaration; return type required
```

I've run into this issue [in the past](https://code.google.com/p/hyracks/issues/detail?id=38&can=1&q=utf-8); the problem is that the default source encoding used by `javac` on OS X may not be UTF-8.

This patch solves this issue by explicitly specifying the source encoding used by the build.

I also updated the ant build instructions to mention the `junit.path` property that needs to be set in `ant.properties`.

Is `hamcrest.path` used anymore? I don't see any references to Hamcrest.