Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法在eclipse中查看表达式_Java_Eclipse_Maven_Debugging - Fatal编程技术网

Java 无法在eclipse中查看表达式

Java 无法在eclipse中查看表达式,java,eclipse,maven,debugging,Java,Eclipse,Maven,Debugging,我有一个Maven项目,它是从Git克隆的。该项目已成功建成并运行良好。但是,当我调试并尝试对函数/表达式求值时,会出现以下错误: 我阅读了前面的堆栈溢出答案并执行了以下操作(没有结果)-- 我在.project文件中添加了java特性,然后在源代码查找中添加了java项目。但我还是犯了同样的错误 如果我从源代码查找中删除Java项目,并在添加源代码查找路径时选择选项--“Workspace folder”,则会出现空指针异常 有人能告诉我如何解决这个问题吗?试试这个 Find the thre

我有一个Maven项目,它是从Git克隆的。该项目已成功建成并运行良好。但是,当我调试并尝试对函数/表达式求值时,会出现以下错误:

我阅读了前面的堆栈溢出答案并执行了以下操作(没有结果)--

  • 我在.project文件中添加了java特性,然后在源代码查找中添加了java项目。但我还是犯了同样的错误

  • 如果我从源代码查找中删除Java项目,并在添加源代码查找路径时选择选项--“Workspace folder”,则会出现空指针异常

  • 有人能告诉我如何解决这个问题吗?

    试试这个

    Find the thread in your debug window that you are in the breakpoint for. Right click on it. Under relaunch should be an edit launch configuration selection. Select that.
    
    Select Source tab. Add. Java Project. Select the java project that the code exists in.
    

    我已经试过了()。1.我需要将项目的性质更改为Java性质。只有这样,项目才会可见2。即使我改变了本性,这也无济于事。我也遇到了同样的错误,您尝试过这个
    右键单击项目->构建路径->选择源选项卡->添加文件夹
    ,然后添加了包含java类的文件夹。
    Find the thread in your debug window that you are in the breakpoint for. Right click on it. Under relaunch should be an edit launch configuration selection. Select that.
    
    Select Source tab. Add. Java Project. Select the java project that the code exists in.