Using Guava 20.0 in a GWT 2.8 project for dummys -


i trying use guava 20.0 in gwt 2.8 project, getting errors when try compile;

 ...      [error] errors in 'com/google/common/base/function.java'         [error] line 64: canignorereturnvalue cannot resolved type         [error] line 18: import com.google.errorprone cannot resolved      [error] errors in 'com/google/common/base/supplier.java'  ... 

and solutions find online;

including guava gwt in gwt app

https://github.com/gwtproject/gwt/issues/9323

are little unclear me. guava working added;

<inherits name="com.google.common.collect.collect" />. 

to gwt.xml of project.

i assuming has changed , need add 2 more? or need download separate *.jars well? (and there gwt versions of jars need use there guava-gwt?)

i apologize if there's documentation missing regarding these changes using guava, can find on guava site reference needing use gwt2.8, already.

so advice on current (november 2016) method use new guava in new gwt welcome. thanks,

notes; using eclipse only, no maven or gradle etc. project client side only, no server.

update;

heres how classpaths setup;

eclipse classpaths setup

from guava's pom.xml, need jsr305 (version 1.3.9, parent pom), error_prone_annotations (2.0.12), , j2objc-annotations (1.1).

you can download of them https://search.maven.org

see https://github.com/google/guava/issues/2622


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -