Trying to use the GWT-GRAPHICS


I am new to vaadin, am trying to add the gwt-graphics jar to my project and compile the project. When I run the project, I get run time exceptions :
Cause: java.lang.NoClassDefFoundError: org/vaadin/gwtgraphics/client/shape/Rectangle
at com.vaadin.event.ListenerMethod.receiveEvent(
at com.vaadin.event.EventRouter.fireEvent(
at com.vaadin.ui.AbstractComponent.fireEvent(
at com.vaadin.ui.AbstractLayout.fireClick(
at com.vaadin.ui.AbstractLayout.changeVariables(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.changeVariables(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(

I am also using Vaadin Visualisations, that works fine.
Can anyone please throw some light on what am doing wrong?


Looks like you are trying to use GWT Graphics on the server side code. GWT Graphics is just a GWT library so you can use it only on the client side when creating a widget for Vaadin.


Thank you for the reply, I guess thats what is wrong too.
What else in Vaadin can I use to implement a rectangle? or any other shapes on the server side UI?

provides a server side API.

Thanks a lot for you reply :slight_smile: worked just fine :slight_smile: