When I try to define a Grid I get the runtime error:
Severe: java.lang.NoClassDefFoundError: com/vaadin/client/renderers/ImageRenderer
Below the source code:
Grid grid = new Grid(“image grid”);
grid.addColumn(“image 1”, Resource.class);
grid.getColumn(“image 1”).setRenderer((Renderer<?>) new ImageRenderer());
grid.addColumn("image 2", Resource.class);
grid.getColumn("image 1").setRenderer((Renderer<?>) new ImageRenderer());
Until I started using a Renderer I had not configured anything specific.
In my dependencies com.vaadin.client.renderers is present.
The application compiles without problems.
Actually, I use eclipse and I have to put the vaadin core libraries in my deployment assembly path (class path was wrong) so that libs are available in runtime. That was my proposal.
Generally,
NoClassDefFoundError references to a missing lib in your deployment environment.