Superdev doesn't work with GWT 2.8.2 & IntelliJ 14

995 views
Skip to first unread message

BM

unread,
Jan 30, 2018, 10:26:53 AM1/30/18
to GWT Users
When I start the debug mode I get following error in the IJ.


Exception in thread "main" java.lang.NoClassDefFoundError: cern/colt/map/OpenIntObjectHashMap
at com.google.gwt.dev.util.collect.IntMultimap.<init>(IntMultimap.java:28)
at com.google.gwt.dev.StringAnalyzableTypeEnvironment.<init>(StringAnalyzableTypeEnvironment.java:68)
at com.google.gwt.dev.MinimalRebuildCache.<init>(MinimalRebuildCache.java:192)
at com.google.gwt.dev.CompilerContext$Builder.<init>(CompilerContext.java:37)
at com.google.gwt.dev.DevModeBase.<init>(DevModeBase.java:636)
at com.google.gwt.dev.DevMode.<init>(DevMode.java:463)
at com.google.gwt.dev.DevMode.main(DevMode.java:430)
Caused by: java.lang.ClassNotFoundException: cern.colt.map.OpenIntObjectHashMap
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)
... 7 more
Disconnected from the target VM, address: '127.0.0.1:53044', transport: 'socket'

Process finished with exit code 1


Please advise.


Jens

unread,
Jan 30, 2018, 3:08:25 PM1/30/18
to GWT Users
If you have downloaded GWT 2.8.2 from Maven, then the "colt" library (and lots of other libs) is not bundled into gwt-dev.jar. If your project does not use Maven then you need to add these libraries manually to your class path.

See: 
http://search.maven.org/remotecontent?filepath=com/google/gwt/gwt-dev/2.8.2/gwt-dev-2.8.2.pom

Alternatively download GWT 2.8.2 from gwtproject.org, then all theses dependencies are bundled into gwt-dev.jar and things should just work as usual.

-- J.

BM

unread,
Jan 31, 2018, 2:22:05 PM1/31/18
to GWT Users
Hi Jens,
Thanks for the reply. Yes we use maven and added following dependencies. We also use gwtbootstrap3 and GWTP. 

<properties>
        
        <gwtVersion>2.8.2</gwtVersion>
</properties>

<dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-servlet</artifactId>
                <version>${gwtVersion}</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-user</artifactId>
                <version>${gwtVersion}</version>
                <scope>provided</scope>
            </dependency>
</dependency>
<plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>gwt-maven-plugin</artifactId>
                    <version>${gwtVersion}</version>
</plugin>

So which dependencies for colt I would need to add in my pom file? Sorry I am bit lost here.

BM

unread,
Jan 31, 2018, 2:23:18 PM1/31/18
to GWT Users
Also note, We were using GWT 2.6.1 before and DEV mode on IJ was working fine. We upgraded to GWT 2.8.2 and DEV mode is deprecated and trying to use Super Dev mode and it's not working. 

BM

unread,
Feb 14, 2018, 11:36:03 AM2/14/18
to GWT Users
Any more suggestions? We using 2.8.2 using maven entry in pom. 


On Tuesday, January 30, 2018 at 2:08:25 PM UTC-6, Jens wrote:

Colin Alworth

unread,
Feb 16, 2018, 5:50:47 PM2/16/18
to GWT Users
Perhaps you can share your full pom, or other dependencies? It might be that you have some conflicting dependency which is preventing GWT from having the colt version it needs.

That said, how are you running SDM? From your log, that doesn't look like you are running it from the maven plugin that you listed - any chance your IDE is not using the same jar that maven is using?

Thomas Broyer

unread,
Feb 17, 2018, 3:35:55 AM2/17/18
to GWT Users
Is IntelliJ 14 (from subject line) supposed to work with GWT 2.8?
AFAICT that's a very old version of IntelliJ, so I would doubt it.

Stefan Bicher

unread,
Apr 2, 2020, 4:31:06 AM4/2/20
to GWT Users
Had the same problem today (with IntelliJ 2019.3 - quite updated) and it turned out, I had to reimport my Maven Project, on which I started the Super-Dev-Mode (Right Click in the Project Explorer -> Maven -> Reimport)
After that all went well.

BTW, the problem occured after I deleted my local maven repo and built our project from scratch.
Reply all
Reply to author
Forward
0 new messages