java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method newInstance() from the type Class

Coderanch | Arun C. Giridharan | 7 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

    What's wrong with this code

    Coderanch | 7 years ago | Arun C. Giridharan
    java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method newInstance() from the type Class

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: Cannot make a static reference to the non-static method newInstance() from the type Class

      at SystemProperties.main()
    2. Unknown
      SystemProperties.main
      1. SystemProperties.main(SystemProperties.java:17)
      1 frame