Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

You already known how to install the Vaadin plugin in Eclipse in previous tutorial, so how we can use this plugin to create and run an application using Vaadin framework in Eclipse. In this tutorial, I will show you do that!

First of all, let start your Eclipse, then choose File -> New then select Other… A new window New will appear.

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

In this window, let scroll down, open the folder Vaadin then select Vaadin 7 Project (Maven).

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

Then press Next button to continue.

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

In this step, let leave it as default and press Next button.

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

This window allow us change Group Id, Artifact Id, Version and Package in your Maven project. You can change them if you want. It also allow us add or delete some properties of our Vaadin application, but let it as default.

I only change something relative to my Maven project.

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

Finally, press Finish button.

Result:

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

To run this application in Eclipse, we will use the Maven Jetty Plugin already added when we created the project.

If you don’t know about Maven Jetty Plugin, you can look at this tutorial!

My configuration for Run Configurations as below:

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

Result:

Create and run an application using Vaadin framework in Eclipse using Vaadin plugin

Let try to enter your name and click Click Me button! 😀

Add Comment