Eclipse报错: “this compilation unit is not on the build path of a java project”,同时按住Ctrl左击不跳转问题
来源:互联网 发布:手机拍摄特效软件 编辑:程序博客网 时间:2024/06/05 16:21
问题情境描述:我用在eclipse官网下载最新的eclipse(Mars2版)64位,用eclipse自带的git插件导入gitbli上的maven项目,系统和eclipse中的tomcat(8.0)、JDK(1.7)、maven(3.3.9)配置完毕。
发现按住Ctrl左击选中的变量,不跳转!!!
问题初探:网上也查了,说是buildpath问题,按照百度的步骤说明试过了,还是没解决问题
后来, 右击变量——Declarations——Hierarchy,报错:this compilation unit is not on the build path of a java project
这才找到问题根源。百度之
在http://stackoverflow.com/questions/2206572/eclipse-this-compilation-unit-is-not-on-the-build-path-of-a-java-project解决问题
原因是新安装的eclipse缺少某个组件,在.project文件添加
<natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures>
解决!!!解决后 .project 文件是这样的:
<projectDescription> ... <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildspec> ... ... ... <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> ... </projectDescription>
0 0
- Eclipse报错: “this compilation unit is not on the build path of a java project”,同时按住Ctrl左击不跳转问题
- Eclipse报错:this compilation unit is not on the build path of a java project
- Eclipse “this compilation unit is not on the build path of a java project”
- this compilation unit is not on the build path of a java project
- Eclipse 下出现 This compilation unit is not on the build path of a Java Project 解决
- Eclipse this compilation is not on the build path of a java project
- This compilation unit is not on the build path of java project 错误
- eclipse中设置.abc--xyz触发提示输入时,提示This compilation unit is not on the build path of java project 异常如何解决?
- This compilation unit is not on the build path
- This compilation unit is not on the build path SVN
- This compilation unit is not on the build path
- eclipse中的the resource is not on the build path of a java project相关问题
- eclipse中的the resource is not on the build path of a java project相关问题
- eclipse The resource is not on the build path of a java project 解决方法
- Eclipse: The resource is not on the build path of a Java project
- 解决CVS This compilation unit is not on the build 问题
- the resource is not on the build path of a java project
- 在myeclipse中提示 The resource is not on the build path of a Java project
- MVC
- QT中文字体的显示方法
- c语言中出现左操作数必须是左值(摘抄)
- 在CSDN中添加友情连接
- iOS--- 初识Swift小结
- Eclipse报错: “this compilation unit is not on the build path of a java project”,同时按住Ctrl左击不跳转问题
- HDU 1075 What Are You Talking About
- 【教她写代码】使用Intellij创建第一个Springboot程序
- Web容器
- 单调队列HDU 4374 One hundred layer
- yii2框架-composer的自动加载(二)
- QT中QPF字库的制作与旋转字体的实现
- scala学习14之scalatest中的intercept使用
- 结构体模版