title: When I am trying to evaluate a simple MVEL expression getting Error: could not access: name
body: <pre><code>import org.mvel2.MVEL;
  
  public class MVELEvalTst {
  
      public static void main(String[] args) {
          String name = "xxx";
          Object eval = MVEL.eval("myName=='xxx'",name);
          System.out.println(eval);
      }
  
  }
  </code></pre>
  
  <p>This is my simple eval expression. When I am running this, getting the below exception. Has anyone ever come across this? Please help.</p>
  
  <pre><code>Exception : Exception in thread "main" [Error: could not access: myName; in class: java.lang.String]
  [Near : {... myName=='xxx' ....}]
           ^
  [Line: 1, Column: 1]
      at org.mvel2.PropertyAccessor.getBeanProperty(PropertyAccessor.java:680)
  </code></pre>