繁体   English   中英

无法在日食中观看表情

[英]unable to watch expressions in eclipse

我有一个从 Git 克隆的 Maven 项目。 项目搭建成功,运行完美。 但是,当我调试并尝试评估函数/表达式时,它给了我错误说-

expression must be compiled in the context of a Java Project's build path. 

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

  1. 我将 java 性质添加到 .project 文件,然后在源查找中添加了 Java Project。 我仍然得到同样的错误。

  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.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM