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

Coderanch | A Ka | 3 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

    static variable and reference variable example

    Coderanch | 3 years ago | A Ka
    java.lang.RuntimeException: Uncompilable source code - non-static variable bankid cannot be referenced from a static context

    Root Cause Analysis

    1. java.lang.RuntimeException

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

      at test.Person.main()
    2. test
      Person.main
      1. test.Person.main(Person.java:23)
      1 frame