Sunday, April 12, 2015

Re: How to use gwt with master ?

So I did everything and when running from eclipse (with the starting params sourceLevel changed accordingly) : 

Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, E:\*PATH*\TestJava8\war, -logLevel, INFO, test.gwt.TestJava8]
Super Dev Mode starting up
   workDir: C:\*PATH*\Temp\gwt-codeserver-4130485331024086612.tmp
   Loading Java files in test.gwt.TestJava8.
   Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Finding entry point classes
      Tracing compile failure path for type 'test.gwt.client.TestJava8'
         [ERROR] Errors in 'file:/E:/*PATH*/TestJava8/src/test/gwt/client/TestJava8.java'
            [ERROR] Line 66: Lambda expressions are allowed only at source level 1.8 or above
      [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

Any clue ?

Le dimanche 12 avril 2015 00:13:56 UTC+2, Jens a écrit :
If you use a build tool that understands Maven you can use 2.8.0-SNAPSHOT provided through https://oss.sonatype.org/content/repositories/google-snapshots/

Otherwise you have to build GWT from source:

mkdir gwtproject
cd gwtproject
cd gwt
export GWT_VERSION=2.8.0-SNAPSHOT && ant clean elemental dist-dev

The SDK can then be found in the build/dist folder. If you don't need Elemental you can skip that by removing "elemental" from the above command.

Note that only Java8 syntax is supported. If you need Java 8 APIs you have to emulate them yourself for now (and maybe contribute them). I have done some work for java.util stuff that you can find on Gerrit if you need it: https://gwt-review.googlesource.com/#/q/topic:java8-emul .

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment