GWT source compile error

123 views
Skip to first unread message

Chandula Harasgama

unread,
Jun 28, 2019, 4:52:12 AM6/28/19
to GWT Users
Hi. I'm trying to compile the current master of GWT from source but keep getting the following error. I'm on JDK 8 on a windows 7 PC.
The commands I tried were: ant, ant clean dist-dev, ant clean elemental dist-dev.

merge_codeserver:
     [echo] Merge gwt-dev.jar and gwt-codeserver.jar
      [jar] Building jar: C:\Users\chandulah\Desktop\gwt\trunk\build\out\gwt-dev-merged.jar
      [jar] Warning: selected jar files include a META-INF/INDEX.LIST which will be replaced by a newly generated one.
      [jar] Warning: selected jar files include a META-INF/INDEX.LIST which will be replaced by a newly generated one.
     [echo] Overwriting gwt-dev.jar with merged gwt-dev.jar
     [move] Moving 1 file to C:\Users\chandulah\Desktop\gwt\trunk\build\lib
Attempt to copy C:\Users\chandulah\Desktop\gwt\trunk\build\out\gwt-dev-merged.jar to C:\Users\chandulah\Desktop\gwt\trun
k\build\lib\gwt-dev.jar using NIO Channels failed due to 'C:\Users\chandulah\Desktop\gwt\trunk\build\lib\gwt-dev.jar'.
Falling back to streams.

BUILD FAILED
C:\Users\chandulah\Desktop\gwt\trunk\build.xml:48: The following error occurred while executing this line:
C:\Users\chandulah\Desktop\gwt\trunk\distro-source\build.xml:23: Failed to copy C:\Users\chandulah\Desktop\gwt\trunk\bui
ld\out\gwt-dev-merged.jar to C:\Users\chandulah\Desktop\gwt\trunk\build\lib\gwt-dev.jar due to C:\Users\chandulah\Deskto
p\gwt\trunk\build\lib\gwt-dev.jar

Thanks in advance for any help you could provide!



Jens

unread,
Jun 28, 2019, 6:27:11 AM6/28/19
to GWT Users
Hmmm maybe the ANT build holds the gwt-dev.jar open and thus Windows forbids overwriting the file with gwt-dev-merged.jar . I guess you need to either try changing the build file to make is work on Windows or use a Linux VM for now.

-- J.
Reply all
Reply to author
Forward
0 new messages