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
Newsletter
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

  • Spring Security JWT Validation Best Practices
  • Beyond Manual Mapping: AI-Orchestrated Governance for Hybrid Cloud
  • Solving Comprehension Debt in AI-Generated Codebases
  • Every Generation Fears the Machine. Here Is How the AI Job Panic Usually Ends

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Jan. 21, 10 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
45.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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