GWT 2.8.1 NoClassDefFoundError OptionJsInteropMode

61 views
Skip to first unread message

Carl

unread,
Sep 29, 2017, 9:51:11 AM9/29/17
to GWT Users

Upgrading from GWT 2.7 to 2.8.1 with a fresh install of Eclipse Oxygen and receive this error when we trying to launch dev mode (sdm). Any ideas?



Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gwt/dev/util/arg/OptionJsInteropMode$Mode

at com.google.gwt.dev.codeserver.Options.<init>(Options.java:81)

at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:45)

Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.util.arg.OptionJsInteropMode$Mode

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 2 more

Jens

unread,
Sep 29, 2017, 12:13:52 PM9/29/17
to GWT Users
The class in question does not exist anymore in GWT 2.8.x, so your IDE somehow still sees GWT 2.7.

Check your class path.

-- J.

Thomas Broyer

unread,
Sep 29, 2017, 4:51:49 PM9/29/17
to GWT Users
More precisely, you probably have a gwt-codeserver.jar from 2.7 (or a backwards compatible equivalent) and a gwt-dev.jar from 2.8.
Actually, gwt-codeserver is useless starting with GWT 2.7, as it's merged into gwt-dev at build time.

Carl Rahmström

unread,
Oct 2, 2017, 6:07:51 AM10/2/17
to GWT Users
You were right, I had an old 2.7 gwt-codeserver.jar referenced.

Thank you, gentlemen.

On Fri, Sep 29, 2017 at 10:52 PM Thomas Broyer <t.br...@gmail.com> wrote:
More precisely, you probably have a gwt-codeserver.jar from 2.7 (or a backwards compatible equivalent) and a gwt-dev.jar from 2.8.
Actually, gwt-codeserver is useless starting with GWT 2.7, as it's merged into gwt-dev at build time.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/EfktzQLmhDQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages