Severe: java.lang.NoClassDefFoundError: com/vaadin/client/renderers/Image

Hello,

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());

What I am doing wrong?

Thanks in advance.

Albert

make sure vaadin-client-x.x is available on your class path… .

Hi Aziz,

What do you mean with vaadin-client-x.x

I am using Netbeans and test with Glassfish.

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.

Where should I add this to the class path.

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.

It was indeed missing. Fixed it.

Thanks