I have been studying GWT these two days, using a Mac notebook.
As a result, JDK source files are required for GWT compilation, but SRC is not found after half a day. Jar
After searching online for a long time, I finally found a solution.
1. Download the Java developer package from connect.apple.com. Then install.
2. Run the find command to find SRC. jar.
Find/library/Java/javavirtualmachines/-name SRC. Jar
3. This jar can be found in terminal, but it cannot be referenced in eclipse. After reading the reference link, you can create a link for this jar.
CD/system/library/Java/javavirtualmachines/1.6.0.jdk/contents/home/
Sudo mkdir SRC
CD SRC
Sudo ln-S/library/Java/javavirtualmachines/1.6.0 _ 22-b04-307.jdk/contents/home/src. Jar
In this way, you can reference this jar in eclipse.
Finally, GWT can be compiled normally.
Reference: http://stackoverflow.com/questions/4011002/java-eclipse-on-macosx-where-is-the-src-zip