user.agent problem with GWT 2.1.0 and GXT 4.1

143 views
Skip to first unread message

Victor Colina

unread,
Dec 7, 2023, 11:48:29 AM12/7/23
to GWT Users
I'm trying to compile a simple GWT project with GXT 4. The compilation works unitl I add the gxt.

imagen_2023-12-07_124453814.png



This is my gwt.xml file.

imagen_2023-12-07_124712961.png

If anybody can help me, thanks in advance.

Frank Hossfeld

unread,
Dec 8, 2023, 8:05:37 AM12/8/23
to GWT Users
Assuming you are using GWT 2.10.0, GXT expects a few things, (f.e.: user-agent ie8) which have been removed in GWT 2.10.0.
You have to stay with GWT 2.9.0. (see: https://docs.sencha.com/gxt/4.x/guides/announcements/Announcements.html)

Victor Colina

unread,
Dec 8, 2023, 8:55:58 AM12/8/23
to GWT Users
Thanks for the response, If I change to GWT 2.9 I can still use jdk 17? Or I have to go lower?

Frank Hossfeld

unread,
Dec 8, 2023, 12:00:15 PM12/8/23
to GWT Users
I think so, as long as you are not using any language features of Java > 8

Jens

unread,
Dec 11, 2023, 4:24:21 AM12/11/23
to GWT Users
Generally Java 17 works for running GWT but source level still needs to be 11 for GWT client/shared code as GWT only supports compiling Java 11 source files. Server code can be anything. If you use GWT-RPC you might need to add some --add-opens to your server JVM: https://github.com/gwtproject/gwt/pull/9791

-- J. 

Victor Colina schrieb am Freitag, 8. Dezember 2023 um 14:55:58 UTC+1:
Reply all
Reply to author
Forward
0 new messages