Troubleshooting the most common compile-time errors in Java code

Troubleshooting the most common compile-time errors in Java code

date:Aug 24, 2012

In our first iteration of the Rock-Paper-Scissors application, we encouraged you to write a simple program, compile it and run it on the JVM. But if you're new to Java development, it's likely that you ran into a compile time error or two. Troubleshooting a compile time errors can be incredibly frustrating, but if you know a few tricks, you can fix your compile time errors quickly. In this tutorial, we take a look at the most common compile time errors that Java developer will encounter, and we show you how to not only fix them, but how to avoid them entirely in the future.

More on JSRs and APIs

  • canderson

    Install the Java Development Kit (JDK): Setting JAVA_HOME

    VIDEO - The Java Development Kit (JDK) is a necessity for every Java developer. This video tutorial will guide developers through the process of installing JDK version 6.

    ( Feb 16, 2012 )

  • canderson

    Is Java EE7's cloud focus too narrow?

    VIDEO - The upcoming Java EE7 release is focused on cloud computing, but at JavaOne 2011 some Java experts wondered if that's a good thing.

    ( Oct 11, 2011 )

  • canderson

    Ben Evans and Martijn Verburg on Java 7

    VIDEO - In this video Ben Evans and Martjin Verburg talk about Java 7, the new version of Java that's coming out this summer. Find out what sorts of improvements have been made and when to expect your first look at Java 7.

    ( Mar 22, 2011 )

  • Lambdas in Java 8: A revolutionary change or an evolutionary error?

    Feature - There is a great deal of enthusiasm for Project Lambda and Java 8, but some in the programming community still wonder if Lambda will be a revolutionary change, or an evolutionary error.

    ( Jan 11, 2014 )

  • How can you do DevOps right if you don't even know what DevOps means?

    Feature - DevOps has become a fun term for IT professionals to throw around, but what does the term DevOps really mean? And with so much confusion over the term, how do you know you're doing DevOps right if management and staff doesn't even know what the term really means?

    ( Jan 05, 2014 )

  • Why API delivery will trump application delivery in importance in 2014

    Feature - Delivering software is important, but in this age of social media and networked infrastructure, allowing various pieces of software to integrate seamlessly is of heightened importance. This makes the development of externally facing client APIs more important than ever.

    ( Jan 05, 2014 )

  • With Java EE 7, your Design Patterns are dead. And your EAR is ugly too.

    Tip - Adam Bien isn't without opinions when it comes to modern day enterprise programming techniques. From the use of design patterns, to the manner in which projects and modules are divided, Bien isn't without opinions when it comes to developing Java applications.

    ( Jan 01, 2014 )

  • From WebSockets to HTML5: What's new and what's next for Java EE 7

    Feature - What's new with Java EE 7? In this article we talk with Peter Pilgrim, the author of the Java EE 7 Developer Handbook, about the key new elements of Java EE 7 that developers need to learn in order to stay current with modern development trends.

    ( Jan 01, 2014 )