cannot be resolved or is not a field
Hello i am trying to convert a Script, and i am getting the error cannot be resolved or is not a field. How do i generally fix these types of errors in java?
Code:
private final int[][] Cf = { a.Ve, a.hc, a.TF, a.Hb, a.wE, a.vd, a.ED, a.TA };
Eclipse is underlining Ve, hc, TF, Hb, we, vd, ed, and ta.
Multiple markers at this line
- hc cannot be resolved or is not a
field
- wE cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
- Cannot reference a field before it is
defined
- Cannot reference a field before it is
defined
- ED cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
- TA cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
- Ve cannot be resolved or is not a
field
- TF cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
- Hb cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
- vd cannot be resolved or is not a
field
- Cannot reference a field before it is
defined
The option it gives me for a fix is Rename in File. I tried just deleting the line of code but then it gives me more errors throughout the script
Re: cannot be resolved or is not a field
You should provide more information than that. What is 'a'? Do you wish to define a 2d array (the right side of the definition must be a 2D array)?
Recommendation: you should use more meaningful variable names as opposed to obfuscated letters of the alphabet.
Re: cannot be resolved or is not a field
here is the code on pastebin if you want more information to look over it
[Java] iDungeon Pro Rarebot - Pastebin.com
Re: cannot be resolved or is not a field
Is that de-compiled code? It is huge and difficult to understand. If it were me, I'd contact the code authors for clarification and better code perhaps.