DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Setting Up a Local Development Environment With IntelliJ, DevContainers, and Amazon Linux 2023
  • IntelliJ and Java Spring Microservices: Productivity Tips With GitHub Copilot
  • Using Unblocked to Fix a Service That Nobody Owns
  • How To Approach Dependency Management in Java [Video]

Trending

  • Why Your AI Agent's Logs Aren't Earning Trust
  • Managing, Updating, and Organizing Agent Skills
  • Prompt Injection Is Real, So I Built a Python Firewall for LLM Pipelines
  • Advanced Error Handling and Retry Patterns in Enterprise REST Integrations
  1. DZone
  2. Coding
  3. Tools
  4. GWT Development with IntelliJ IDEA Community Edition

GWT Development with IntelliJ IDEA Community Edition

I'll use IntelliJ IDEA Community Edition and GWT 2.0.

By 
Victor Tsoukanov user avatar
Victor Tsoukanov
·
Jan. 21, 10 · Tutorial
Likes (0)
Comment
Save
Tweet
Share
45.4K Views

Join the DZone community and get the full member experience.

Join For Free

As you know recently JetBrains released open source version of IntelliJ IDEA. If you look at comparison matrix it is shipped with a small number of core plugins such as Ant/Maven integration, supports several CVSs such as Subversion, Git and CVS. But event with such limited functionality it can be competitive with other open source IDEs such as Eclipse or NetBeans, because, it is my opinion, IntelliJ IDEA is the best Java IDE that I have ever used. I am using it last four or five years, several times I tried to use Eclipse or NetBeans, but finally I always came back to IntelliJ IDEA. I will use

  • IntelliJ IDEA Community Edition
  • GWT 2.0

First what I need is a new project with single Java module

Then I create a new GWT project. For this purpose I will use webAppCreator.cmd and create new IntelliJ IDEA External Tool (File -> Settings -> External Tools)

The most important thing in that dialog is parameters for webAppCreator.cmd

  • $ModuleFileDir$ is the directory of the module file. Since webAppCreator uses src folder for source files you have to use the folder same name in IntelliJ IDEA module
  • $Prompt$ displays an input dialog where you can define module name for webAppCreator.cmd

Now I am ready to create new GWT project. External too that was created on previous step is available in Tools -> GWT -> Create Project. In prompt dialog I am typing GWT module name, e.g. “gwt.GwtTest”. New GWT module is created, let’s try to compile it and launch. I have to append additional libraries from GWT and several project folders into classpath. Select tab “Dependencies” for your java module (File -> Project Structure) and append

  • gwt-user.jar
  • gwt-dev.jar
  • PROJECT_FOLDER/src folder
  • PROJECT_FOLDER/war/WEB-INF/classes folder. It is not create by webAppCreator.cmd so you have to create it manually.

Now I am ready to compile and launch application. Select “Edit Configuration” from Run menu and create new configuration

We are ready to launch application. To run or debug application, select corresponding mode from Run menu. When you look at Jetty logs you can see a warning about missed gwt.server.GreetingServiceImpl, it happened because we did not set up compiler output properly. Open tab “Paths” in Project Structure dialog and change Output path to PROJECT_FOLDER/war/WEB-INF/classes

Voilà, several simple steps and IntelliJ IDEA Community Edition is ready for enterprise development.

intellij

Opinions expressed by DZone contributors are their own.

Related

  • Setting Up a Local Development Environment With IntelliJ, DevContainers, and Amazon Linux 2023
  • IntelliJ and Java Spring Microservices: Productivity Tips With GitHub Copilot
  • Using Unblocked to Fix a Service That Nobody Owns
  • How To Approach Dependency Management in Java [Video]

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook