I am a newcomer to Vaadin and will have an attempt to replace some old PHP-sites with a Vaadin-based web application. I wanted to use my favorite Java IDE, but did not find much information on how to setup a project in IntelliJ IDEA. And since switching back to Eclipse is not an option, I had to figure it out myself
I managed to get a simple HelloWorld application running, and will describe here the steps I took so other newbies like me won’t have to figure it out them self.
Since I am quite new to creating Java-based web applications, feel free to suggest improvements on my project setup.
Download the Vaadin JAR
If not already done, install a Tomcat server
Start IntelliJ and create new project from scratch ( all steps below are performed with IntelliJ 9 )
Type of project is Java Module and as desired technology you select Web Application. This will create the web folder, including the WEB-INF dir and a web.xml file
Create a web/WEB-INF/lib folder and place the Vaadin JAR into that folder
Goto Project Structure | Modules and let your module depend on the Vaadin JAR. Mark it as export
Create a HelloWorld class and adjust your web.xml file, as described in the book of Vaadin
To run/debug, create a new “Tomcat Server” configuration. If not yet present, configure a Tomcat server by providing the link to the installation dir of your Tomcat server
This should do it (at least, it was sufficient for me)
Although the pasted link works I can’t fetch the plugin since it doesn’t show up in the plugins-section of intellij (I’m using version 10.x). Is it still available or was it removed? Any ideas what might be wrong (I’ve tried to reload the plugins-dictionary several times - tried with and without proxy - I just can’t download it)?
I have both 10.5.2 and 11.x and 11.x is the only one that works with it. In 10.5.2, even if I manually create a Vaadin folder containing a lib folder and then the jar in the lib folder, Intellij flags it as not a valid version. In 11.x, I am able to use it. Actually, plugin support in 11x is vastly superior to 10.5.x. In 11x, you can specify where to look for plugins and can look for downloaded plugins. Sorry my friend but it looks like you need to upgrade IntelliJ.
OK, I have IDEA EAP Nika.1 IU-116.32 installed her and copied the expanded Vaadin_Support_10939.zip into the appropriate folder of my MAC - just aside the other plugins.
Now I can see “Vaadin Support” in the Plugins tab. But it is marked red and the tooltip says that it is incompatible with the current installation of IDEA.
Using IDEA 11.0.2 on the same configuration does not flag the plugin as incompatible.
Is there something I could configure to let the EAP Version run with the plugin?