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

Coderanch | rahul aditya | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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