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 )

  • Creating pages based on a JSF template: Using the Facelets ui:define tag

    Tutorial - What do you do once you've set up a handsome page template using the Facelets functions that come with JSF 2.x? Well, you start creating new pages, meshing those ui:define tags in with ui:composition and ui:insert. It's easier than it sounds, trust me.

    ( Jul 20, 2014 )

  • Making MBean work

    Tutorial - In part four, learn how to ensure that MBean interface has been accurately implemented.

    ( Jun 27, 2014 )

  • Configuring VisualVM to connect to the app server

    Tutorial - Learn how to configure VisualVM in part three of this tutorial.

    ( Jun 27, 2014 )

  • Winning the hearts and minds of functional programmers: Five tips for the Scala community

    Feature - It's an uphill battle keeping the user base of any programming language happy. Scala, which competes on the JVM against a number of languages is no exception. Here are five tips on how the Scala overlords can keep on track and continue to win the hearts and minds of functional programmers.

    ( May 08, 2014 )

  • Improving Java performance by minimizing Virtual Machine (JVM) latency

    Tip - Users demand that their applications run fast, but working with Java bytecode presents optimization problems that other architectures do not encounter. Here we look at how to improve the performance of the Java Virtual Machine (JVM) by minimizing the latency involved with bytecode to native code compilation steps.

    ( May 01, 2014 )