Why do I keep getting “Evaluations must contain either an expression or a block of well-formed statements”?

后端 未结 6 1509

In my code, I am trying to output the value of src in the expressions window.

public void doIt() {
    String src = \"test\";
    System.out.pri         


        
6条回答
  •  爱一瞬间的悲伤
    2021-01-17 11:40

    (Assuming you're compiling 1.5+ code)I had the same problem, here's what I did to fix it:

    • Ensure that your java compiler version is 1.5+
    • Fix all syntax/class related errors pertaining to that class. I had a number of missing dependencies in my classpath.
    • make sure the JRE is also 1.5+ for that specific project

提交回复
热议问题