Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSuchMethodError: com.google.common.base.Platform.systemNanoTime() In GWT project

I get an exception in a gwt project where I'm using the systemNanoTime()

... threw an unexpected exception: java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J
    at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
    ........

I'm using guava-18. jar in Java Build Path.

like image 498
Abdessamad Doughri Avatar asked Apr 01 '15 16:04

Abdessamad Doughri


1 Answers

The problem was that I'm using the google-collect-1.0-rc1.jar and guava-18.0.jar in Java Build Path for the same project so I had to removed the google-collect

like image 94
Abdessamad Doughri Avatar answered Oct 04 '22 22:10

Abdessamad Doughri