Hi Colin, Thanks for the response! As an initial step I am try to build the GWT SDK jars from source code by following the instructions provided in this link - https://github.com/gwtproject/gwt?tab=readme-ov-file
With few corrections in GWT.2.4.0 source code was able to build jars successfully with JDK 17 and also tried with JDK.1.8 (no code change made) by using command ant clean dist-dev with -Dgwt.tools from CLI as mentioned in the above link. But when I use these generated jars(gwt-dev.jar, gwt-user.jar, gwt-servlet.jar, gwt-servlet-deps.jar, requestfactory-apt.jar, requestfactory-client.jar, requestfactory-server.jar, requestfactory-client+src.jar, requestfactory-server+src.jar, requestfactory-client-src.jar, requestfactory-server-src.jar) into my application, I am getting below error- Error trace- [java] [1.573s][info][class,load] com.google.gwt.dev.javac.TypeOracleMediator$TypeOracleMediatorResolver source: file:/scratch/home/aarmugam/SDM_java17/sryadava_Ammolite_linux/nnc/core/ACMEConsole/WEB-INF/lib/gwt-dev.jar [java] [1.574s][info][class,load] com.google.gwt.dev.javac.CompilationProblemReporter source: file:/scratch/home/aarmugam/SDM_java17/sryadava_Ammolite_linux/nnc/core/ACMEConsole/WEB-INF/lib/gwt-dev.jar [java] [1.575s][info][class,load] java.lang.invoke.LambdaForm$MH/0x00007fe964144000 source: __JVM_LookupDefineClass__ [java] [1.575s][info][class,load] java.lang.invoke.LambdaForm$MH/0x00007fe964144400 source: __JVM_LookupDefineClass__ [java] [1.576s][info][class,load] java.lang.invoke.LambdaForm$MH/0x00007fe964144800 source: __JVM_LookupDefineClass__ [java] [1.576s][info][class,load] java.lang.invoke.LambdaForm$MH/0x00007fe964144c00 source: __JVM_LookupDefineClass__ [java] *[ERROR] Unable to find type 'java.lang.Object'* [java] [1.577s][info][class,load] com.google.gwt.dev.util.Messages source: file:/scratch/home/aarmugam/SDM_java17/sryadava_Ammolite_linux/nnc/core/ACMEConsole/WEB-INF/lib/gwt-dev.jar [java] *[ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')* [java] [1.578s][info][class,load] java.util.IdentityHashMap$KeyIterator source: shared objects file [java] [1.578s][info][class,load] java.io.RandomAccessFile$1 source: shared objects file [java] [1.579s][info][class,load] java.util.prefs.FileSystemPreferences$10 source: jrt:/java.prefs [java] [1.579s][info][class,load] java.util.prefs.FileSystemPreferences$12 source: jrt:/java.prefs [java] [1.579s][info][class,load] java.util.prefs.FileSystemPreferences$11 source: jrt:/java.prefs I checked many blogs on the similar error where it was mentioned the root cause for this issue was because of classpath mistake. I am running my application ant build from CLI and also I have verified that all the required jars are present in classpath. Could you please guide me here to tackle this issue? Please note I am also *facing same issue when I build jars with JDK.1.8 without any code change in GWT.2.4.0 source code*. GWT.2.4.0 source code downloaded from - https://github.com/gwtproject/gwt/releases/tag/2.4.0 <https://github.com/gwtproject/gwt/releases/tag/2.4.0> tools - https://github.com/gwtproject/tools/ <https://github.com/gwtproject/tools/> Thanks in advance! Regards, Anjana On Wednesday, January 3, 2024 at 10:25:25 PM UTC+5:30 Colin Alworth wrote: > (I wrote a longer reply, but Google Groups ate it and never posted it, so > apologies for brevity here): > > Without more information, it is hard to give a specific answer - are you > just hoping to update the Java version and make no changes to the > application? It might be that nothing at all needs to be done. If you're > using GWT-RPC, you might have no changes to make at all, or you might need > an --add-opens jvm arg for a few specific classes (fix to be released in > GWT 2.11). > > On the other hand, if you're running the compiler or dev mode on Java 17, > other changes are likely needed, due to dependencies that have changed with > the Java update. > > GWT 2.4.0 was released just over 12 years ago, and was intended to run on > Java 6 - even Java 8 will only be ten years old in about two months. > > On Wednesday, January 3, 2024 at 8:40:28 AM UTC-6 anjana....@gmail.com > wrote: > >> Hi Team, >> >> Due to some business constraints our application is still running on old >> GWT.2.4.0 and now we wanted to upgrade java version of our application to >> JDK 17. is it possible to run GWT.2.4.0 on an application which uses JDK >> 17? if yes, can you please guide me with the helpful resources for the >> same? >> >> Thanks, >> Anjana >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/b523a6c6-7501-45cb-858d-e7628ebfc625n%40googlegroups.com.