Building GWT on Mac OS X

6 views
Skip to first unread message

Sandy McArthur

unread,
Dec 12, 2006, 3:49:21 PM12/12/06
to Google Web Toolkit Contributors
I followed the directions for compiling [1] and I get the following
error on my mac when I run `ant` in the trunk base dir:

BUILD FAILED
/Users/sandymac/GWT/svn/trunk/build.xml:44: The following error
occurred while executing this line:
/Users/sandymac/GWT/svn/trunk/build.xml:38: The following error
occurred while executing this line:
/Users/sandymac/GWT/svn/trunk/build-tools/build.xml:24: The following
error occurred while executing this line:
/Users/sandymac/GWT/svn/trunk/build-tools/build.xml:18: The following
error occurred while executing this line:
/Users/sandymac/GWT/svn/trunk/build-tools/doctool/build.xml:6: The
following error occurred while executing this line:
/Users/sandymac/GWT/svn/trunk/common.ant.xml:174: Cannot find
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/../lib/tools.jar;
please use a JDK when building doc rather than a JRE.

Turns out there isn't a tools.jar on my mac. So I went to
developer.apple.com [2] to download the latests dev tools and they
didn't work either because they don't include a tools.jar.

I was able to make progress by grabbing a tools.jar from another
platform and putting it in:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.jar
. I'm wondering if this is the solution suggested by the GWT team or if
there is a better way that I'm not seeing.

1. http://code.google.com/webtoolkit/makinggwtbetter.html#compiling
2. http://developer.apple.com/java/download/

Jason Essington

unread,
Dec 12, 2006, 3:52:29 PM12/12/06
to Google-Web-Tool...@googlegroups.com
OS X doesn't have nor need tools.jar, so basically the best thing to
do would be to just disable the checks for that lib in the build.xml
file.

GWT is checking for the presence of a JDK, but on OS X if you've got
java installed then you've got a JDK

-jason

Scott Blum

unread,
Dec 12, 2006, 5:44:08 PM12/12/06
to Google-Web-Tool...@googlegroups.com
Committed a fix @177.  You should be able to build on OS X without a tools.jar.

Sandy McArthur

unread,
Dec 13, 2006, 3:50:46 PM12/13/06
to Google Web Toolkit Contributors
Scott Blum wrote:
> Committed a fix @177. You should be able to build on OS X without a
> tools.jar.

Much thanks. Any chance we could get a Google Group that is svn commits
that we can subscribe to and watch?

Scott Blum

unread,
Dec 13, 2006, 7:12:19 PM12/13/06
to Google-Web-Tool...@googlegroups.com
That's supposed to be on.. we were actually going to just send commits here for now, with an eye towards creating a subgroup if it's too much traffic.

John Tamplin

unread,
Dec 13, 2006, 7:33:45 PM12/13/06
to Google-Web-Tool...@googlegroups.com
On 12/13/06, Scott Blum <sco...@google.com> wrote:
That's supposed to be on.. we were actually going to just send commits here for now, with an eye towards creating a subgroup if it's too much traffic.

My understanding from fitz when he was here is that it was not turned on to prevent a denial of service attack (by submitting tons of large commits), but that he was going to look at enabling it for us (possibly with a limit of how many lines are included in the commit message).  Personally, I think just having the revision and description of the change is sufficient, as you can look up the diff if you care to see the details.

--
John A. Tamplin
Software Engineer, Google

Sandy McArthur

unread,
Dec 13, 2006, 10:40:03 PM12/13/06
to Google Web Toolkit Contributors
John Tamplin wrote:
> I think
> just having the revision and description of the change is sufficient, as you
> can look up the diff if you care to see the details.

If/When Google Code Hosting gets ViewVC support then a summary with a
link to the ViewVC page for the commit would be just about right IMO.

Brian W. Fitzpatrick

unread,
Dec 13, 2006, 11:35:38 PM12/13/06
to Google-Web-Tool...@googlegroups.com

Actually, we're working on getting the feature turned on for all
projects soon, but in the immediate future, we're working on other
stuff. Stay tuned.

-Fitz

Brian W. Fitzpatrick

unread,
Dec 13, 2006, 11:39:39 PM12/13/06
to Google-Web-Tool...@googlegroups.com
On 12/13/06, Scott Blum <sco...@google.com> wrote:
> That's supposed to be on.. we were actually going to just send commits here
> for now, with an eye towards creating a subgroup if it's too much traffic.

I think we forgot to add codesite...@google.com to the allowed
senders list for the group. See
http://code.google.com/hosting/faq.html#acceptcommitemails

-Fitz

Reply all
Reply to author
Forward
0 new messages