ubuntu eclipse 导入maven项目报错 You need to run build with JDK or have tools
来源:互联网 发布:淘宝代付不能用花呗吗 编辑:程序博客网 时间:2024/05/21 16:57
第一步:window---preferences ---java---installed JREs---添加你的JDK
第二步:选中JDK 点击编辑按钮,弹出对话框,添加插件tools.jar和lombok.jar(这两个jar文件只针对个人项目添加的,项目要是不用就不添加)
tools.jar---java自动生成类工具等,开发用,包默认不在eclipse里面,JDK 的安装目录lib下面有这个tools.jar包
lombok.jar---替代自动生成的get和set方法,类里面就不用写get和set方法了,表示为@Getter和@Setter(装到eclipse里,像svn,装个lombok插件)
lombok.jar在/.m2/repository/org/projectlombok/lombok/1.16.10/目录下,在这个目录下执行sudo java -jar lombok-1.16.10.jar启动安装后会将它的jar包默认安装到eclipse安装目录下,再手动加到eclipse的JDK里面(像添加tools.jar一样添进去)
第三步:编辑eclipse安装目录下的eclipse.ini文件
vim /usr/local/eclipse/eclipse.ini
添加下面内容
-vm
/usr/java/jdk1.8.0_111/jre/bin
第四步:项目右键---preferences ---java Build Path---Libraries---查看编辑
0 0
- ubuntu eclipse 导入maven项目报错 You need to run build with JDK or have tools
- You need to run build with JDK or have tools.jar on the classpath.
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- 报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 报错方案:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- myeclipse or eclipse maven 项目使用tomcat:run运行报错 用tomcat:run-war正常
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- Activity使用主题不兼容报错-You need to use a Theme.AppCompat theme (or descendant) with this activity
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- Android报错集锦之一:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- maven项目报错--Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Qu
- Android studio导入项目报错failed to find Build Tools revision 19.0.0
- eclipse 导入maven项目:Missing artifact jdk.tools:jdk.tools:jar:1.7
- 导入Myeclipse导入maven项目报DescriptionResourcePathLocationType One or more constraints have not been s
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- Android解决在清单文件里消除Bar报错:You need to use a 原来Theme.AppCompat theme (or descendant) with this activity.
- linux下强行踢出用户的命令使用方法
- MySQL 表选项
- 应用宝app下载量不准确问题记录
- 指针 数组 优点缺点分析 及 调用函数的流程
- 伪类选择器hover应用
- ubuntu eclipse 导入maven项目报错 You need to run build with JDK or have tools
- 名字节点(NameNode)基本功能介绍
- 仿微信摇一摇实现摇动开始与结束监听
- Android自定义动画类——实现3D旋转动画
- Python中操作mongo数据库
- Android Service介绍(Service与线程关系)
- iOS多线程编程之Grand Central Dispatch(GCD)介绍和使用
- phoenix中使用静态资源
- 一进入页面,默认选中table的第一个tr