Enterprise Java

Run Vaadin Apps in Intellij IDEA

In this article I’m going to show you how to run vaadin applications with Intellij IDEA. Vaadin provide some plugins for Eclipse and Netbeans. But for Intellij IDEA there are no plugins yet. But to deploy vaadin app is easier than other two IDEs.
Here are the steps that you want to follow.
1. First Create a New Project , File –> New Project –> Create Project From Scratch –> Give sample_vaadin as application name and select Java module click Next –> Next.
Now Select Web Application as Technology and click Finish.
2. Now create a lib folder in web/WEB-INF/lib and copy the vaadin jar file into the folder. You can get the latest vaadin jar file http://vaadin.com/home . Now the Project hierarchy looks like this.
3.After that File –> Project Structure –> Artifacts . In below you can see some error and click Fix button. That will add vaadin jar file to your exploded war. Now Click OK.
4. To deploy your application you need a web server. So in here I use tomcat 7. To config it,
Run –> Edit Configuration –> Click + sign –>Select Tomcat –> localhost .
Give vaadin as Name and Select tomcat as Application Server (If the server is not there Click configure and goto the tomcat path it will automatically recognize it)
5. Now create some hello world programme according to vaadin book and click the Run button to deploy it.

Rajith Delantha

Rajith is an software engineer, open source contributor and love to develop application based on open source projects.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button