Friday, June 16, 2023

Re: GWT compilation error with JDK 11

Thanks for your reply. Please see attached for the GWT lib specified in the java build path in Eclipse. I tried to compile it with JDK 8 and it didn't work either. 
The same project configuration in Eclipse worked in my old laptop, but not in my new laptop. The Eclipse in the new laptop is a copy of the Eclipse installed in the old laptop.

In addition, I also tried to  copy the "gwt-dev.jar" from the old laptop to the new one, but the compilation still gave me the following error.

Error: Could not find or load main class com.google.gwt.dev.Compiler

The project was compiled by using GWT->Compile option provided by the GWT Plugin installed in Eclipse.

Version: 2020-06 (4.16.0)
GWT Plugin version: 3.0

Your help is greatly appreciated!

thanks,
Jenny
On Friday, June 16, 2023 at 12:33:18 PM UTC-5 Colin Alworth wrote:
GWT 2.9 should support running on Java 11, both running on JDK 11 and compiling Java 11 sources.

Without other information, it sounds like there is a problem with your copy of gwt-dev.jar - the jar might be corrupt, or somehow not on your classpath?

Can you verify that the jar is present and correct, and share more specifics of how you are building?

On Thursday, June 15, 2023 at 6:00:43 PM UTC-5 jiny...@gmail.com wrote:
Hello,

I tried to compile our GWT 2.9 project with JDK 11, but encountered the following error:

Error: Could not find or load main class com.google.gwt.dev.Compiler

Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler

BTW, the Eclipse version is  Version: 2020-06 (4.16.0). 

Please help shed some lights on this issue.

thanks,
Jenny

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/78fbb2dc-9dc9-4cc5-bdbf-d96faa711534n%40googlegroups.com.

No comments:

Post a Comment