java.lang.RuntimeException: Uncompilable source code - non-static variable this cannot be referenced from a static context

Coderanch | rahul aditya | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    i don't get to know why this program cannot be executed?

    Coderanch | 5 years ago | rahul aditya
    java.lang.RuntimeException: Uncompilable source code - non-static variable this cannot be referenced from a static context

    Root Cause Analysis

    1. java.lang.RuntimeException

      Uncompilable source code - non-static variable this cannot be referenced from a static context

      at bert.GameShape.main()
    2. bert
      GameShape.main
      1. bert.GameShape.main(GameShape.java:40)
      1 frame