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
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

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

  • Non-Project Backlog Management for Software Engineering Teams
  • Unlocking the Benefits of a Private API in AWS API Gateway
  • Role of Cloud Architecture in Conversational AI
  • A Complete Guide to Modern AI Developer Tools
  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
44.7K 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
Oops! Something Went Wrong

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!