2.5. Finding out where it went wrong

It’s unlikely that HelloWorld has gone wrong, because it’s such a simple application, but once you step beyond that simple world, things can happen. We think it’s useful to check out briefly where you can look if something is going wrong, and the first place is usually the Java code in your IDE.

2.5.1. Checking the code in the IDE for errors

It should be quickly obvious if there’s a syntactical problem with your Java code, it will be flagged in the IDE, usually with a red marking. In Eclipse you get a red X next to the lines in error, and in the explorer view a red X appears next to classes and packages where those errors are, as you can see in figure 2.21.

Figure 2.21. Java syntax errors highlighted by ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.