java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Mal » Thu May 21, 2009 9:38 pm

This has got me stumped.

I've created a JUnit test class using GWT Designer, but I see this exception when it is run:

java.lang.NoClassDefFoundError: com/google/gwt/junit/client/GWTTestCase

TrivialTestRunConfigurationClasspath.jpg
TrivialTestRunConfigurationClasspath.jpg (20.66 KiB) Viewed 1227 times


Could you have a quick look at the attached configuration screen and see if there's something wrong?

Regards, Mal.
Australian Bureau of Meteorology
Mal
 
Posts: 15
Joined: Mon Sep 24, 2007 2:33 pm
Location: Melbourne, Australia

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Mal » Thu May 21, 2009 10:05 pm

Sorry, previous image wasn't very readable.

This one's better. Mal.

TrivialTestRunConfigurationClasspath2.jpg
TrivialTestRunConfigurationClasspath2.jpg (86.18 KiB) Viewed 1234 times
Australian Bureau of Meteorology
Mal
 
Posts: 15
Joined: Mon Sep 24, 2007 2:33 pm
Location: Melbourne, Australia

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Eric Clayberg » Sat May 23, 2009 8:50 am

That is a weird one.

I would try restarting Eclipse, doing a rebuild on your workspace and then try re-creating the launch configuration for your tests.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Mal » Sat May 30, 2009 10:58 pm

Still no success.

I have taken it right back to a downloaded GWT application StockWatcher (client-only version) from the Google GWT website
to minimise potential causes.

I'm still seeing java.lang.NoClassDefFoundError: com/google/gwt/junit/client/GWTTestCase

I tried:
(1) restarting Eclipse
(2) doing a rebuild on the workspace (Project > Clean) and then
(3) re-creating the launch configuration for the test

Perhaps these are Google App Engine GWT teething problems.

I'm using
- the Instantiations GWT 7 update site: http://download.instantiations.com/D2GW ... ate/E-3.4/
- GWT SDK 1.6.4
- App Engine SDK 1.2.1
- org.junit_3.8.2.v20080602-1318.junit.jar

Here is an image of the run configuration:

Maybe it doesn't like the junit.jar file.

Does JUnit still work for you guys with the Google App Engine GWT?

Regards, Mal.
Attachments
Run Configuration.GIF
run configuration
Run Configuration.GIF (68.01 KiB) Viewed 1166 times
Australian Bureau of Meteorology
Mal
 
Posts: 15
Joined: Mon Sep 24, 2007 2:33 pm
Location: Melbourne, Australia

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Eric Clayberg » Wed Jun 03, 2009 6:56 pm

I would suggest updating to the latest GWT Designer v7.0 build and see if that helps any.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Mal » Tue Jun 09, 2009 11:20 pm

Thanks Eric. It worked like a charm, first time.

Regards, Mal.
Australian Bureau of Meteorology
Mal
 
Posts: 15
Joined: Mon Sep 24, 2007 2:33 pm
Location: Melbourne, Australia

Re: java.lang.NoClassDefFoundError: com/google/gwt/junit/client/

Postby Eric Clayberg » Wed Jun 10, 2009 4:06 am

Glad that worked.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests