Questions tagged [gwt-compiler]

A part of the GWT toolkit that translates Java into JavaScript

A part of the GWT toolkit that translates Java into JavaScript

52 questions
2
votes
1 answer

When cookie disabled nothing appearing on GWT root panel

i am working on GWT cookies. I was checking whether the cookie is enabled or not and if not enabled to show gwt popup for which i have written following code: if(Cookies.isCookieEnabled()) ..... else Window.alert("please enable cookies"); but…
2
votes
1 answer

Does GWT optimize embedded javascript?

It is well known that GWT compiles the Java source to an optimized Javascript. It will for example eliminate all unused functions. This is useful if you use a third party library such as gwtQuery. I wonder if there is a way to let GWT also optimize…
Vjeetje
  • 5,314
  • 5
  • 35
  • 57
2
votes
1 answer

libgwt-dev-java package and GWT Compiler

I'm on Ubuntu 12.04 and trying to compile a GWT application. I'm getting this error: Unable to initialize cache. Couldn't create directory /home/myUser/workspace/dummylandapp/war/../gwt-unitCache. And see that it might be related to this bug with…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
2
votes
1 answer

How to create new instance dynamically in GWT?

I have a case, generate an instance dynamically ie, i have map like Map classMap=new HashMap(); classMap.put("key1",Panel.Class); classMap.put("key2",Panel1.Class); classMap.put("key3",Panel2.Class); Class…
Abin Manathoor Devasia
  • 1,945
  • 2
  • 21
  • 47
1
vote
1 answer

What is the difference between draftCompile and optimize 0 options to the GWT Compiler?

I'm trying to improve the speed of GWT compilation, in the GWT documentation I see they provide multiple ways. I was considering optimize and draftCompile arguments passed to the compiler. Documentation gives confusing description: draftCompile ==>…
Akshay Hiremath
  • 950
  • 2
  • 12
  • 34
1
vote
2 answers

GWT compile unable to load class

I'm trying to compile GWT from my project from command line (no Ant/Maven) like this java -cp "/home/user/gwt-2.8.2/*:/home/user/myapp/src:/home/user/myapp/lib/*" com.google.gwt.dev.Compiler com.myapp.webservices.SpwrWebServices but error is…
Most Wanted
  • 6,254
  • 5
  • 53
  • 70
1
vote
0 answers

GWT 2.7.0 superDevMode recompiling (cache.js.gz error)

I am using eclipse to develop a gwt application and recently I migrated from GWT 2.6.0 to 2.7.0. I was always using super dev mode(with built-in jetty) and it worked ok with 2.6. While using superdev mode on 2.7 it has become quite frequent for the…
Timphilby
  • 11
  • 3
1
vote
1 answer

Custom resource key generation to facilitate backwards compatibility

I just recently discovered that you can change the key of a resource from the default "method name" method to a customly specified key. I'm now thinking of switching the format to a "dot separated" format (which is usually used in Java projects). I…
Baz
  • 36,440
  • 11
  • 68
  • 94
1
vote
2 answers

Is it possible to get non-random names for Cache Files from GWT Compile

When I try to load the war file for my project in the Lighthttp server, I get "filename too long" error from the server for the generated JS files such as this : "733C57A6999C647D009A3EBA1F5CEF9C.cache.js" When I compile I am using the collapse…
1
vote
1 answer

GWT : how to compile multiple module result into single nocache.js file

Let's say I have 2 module in my gwt project and it was structured like this src - main - java module1.gwt.xml module2.gwt.xml - client - module1 - stuff - module2 - stuff and on…
Pung Worathiti Manosroi
  • 1,432
  • 1
  • 20
  • 23
1
vote
1 answer

ApiResourceProperty tag can not be compiled to GWT or ignored

We have a GWT app that exposes an API using Google Cloud Endpoints. As we use objectify we can not expose the Key tag to the API. For that we use the ApiResourceProperty in order to make the API ignore the field, but if we do that the GWT…
Pablo Castilla
  • 2,723
  • 2
  • 28
  • 33
1
vote
0 answers

GWT Compiler not found

In my Ant build.xml:
1
vote
2 answers

What's wrong with this Ant path?

Note: even though this question involves GWT, it's really an Ant question. All I'm asking is: is the Ant PATH that I have below a "legal" path? I am getting ClassNotFoundExceptions on a type (com.google.gwt.dev.Compiler) that is packaged inside…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
0 answers

Lombok is not working with GWT compile

I have been trying to use Lombok as the latest solution (in some desperation) to my getters/setters problem (I've tried GWT generators, and annotation processors, but Lombok looks like it might be the answer) but I've run into a problem. If I put…
GTF
  • 8,031
  • 5
  • 36
  • 59
1
vote
1 answer

GWT No source code is available for type [userClassName]

OK, this error started occuring this morning. I have a Maven project called "snmp-jobs" which was previously used only to convey SNMP communication. Due to changes done lately this project now contains DTO classes as well. Also, there are now two…
Jovan Perovic
  • 19,846
  • 5
  • 44
  • 85