无法观看日食中的表情 [英] unable to watch expressions in eclipse

查看:101
本文介绍了无法观看日食中的表情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a Maven project which is cloned from Git. Project was successfully built and runs perfectly. However when i debug and try to evaluate functions/expressions, it gives me error saying --

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

我阅读了以前的堆栈溢出答案,并做了以下(没有结果)-

I read previous stack overflow answers and did the following (with no results)--

  1. 我在.project文件中添加了Java性质,然后在源代码查找中添加了Java Project.还是我遇到同样的错误.

  1. I added java nature to .project file and then added Java Project in source lookup. Still i get same error.

如果我从源代码查找中删除Java项目并在添加源代码查找路径的同时选择选项-工作区文件夹",则会出现Null Pointer异常.

If i remove the Java project from source lookup and choose option --"Workspace folder" while adding Source lookup path, it gives me Null Pointer exception.

有人可以告诉我如何解决吗?

Can someone please tell me how to resolve this?

推荐答案

尝试一下!!!

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.

这篇关于无法观看日食中的表情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆