Eclipse使用中的常见问题笔记

Problems选项卡的使用:

项目有时候报错,并没有具体文件报错可以通过Problems选项卡查看问题,从而解决具体问题。

Eclipse菜单栏中,Window>Show View>Other...>Show View>General>Problems。
根据problem选项卡里面的错误描述解决问题。

Eclipse支持Tomcat8:

help->eclipse marketplace 

find:Eclipse JST Server Adapters            点击go

找到:Eclipse JST Server Adapters   一般搜索的第一条,安装即可。

重启就会找到Tomcat8.

Eclipse支持Tomcat8.5:

在window> preferences> server >runtime Environments配置本地tomcat的时候,会发现eclipse只支持tomcat8,并不支持8.5.

找到自己的tomcat8安装目录>lib--->catalina.jar(用压缩工具打开,修改里面文件)--->org--->apache--->catalina--->util--->ServerInfo.properties

server.info=Apache Tomcat/8.5.43(修改为8.0.0)

即可,

如果还提示错误,需要eclipse补丁。

https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit      下载,

放到:eclipse安装路径,plugins文件夹中。

Eclipse安装Servers插件:

Eclipse没有默认带servers,需要自己去安装插件,

Help>Install new Software >add

name:"Kepler" repository

location:http://download.eclipse.org/releases/kepler

Web,XML, Java EE and OSGi Enterprise Development

JST Server AdaptersExtensions

然后NEXT,选择同意安装插件,最后重启就会出现servers目录。

web.xml配置错误:

报错the selection did not contains any resources that can run on a server导致run as里没有run on server

java  web开发,eclipse版本一定要选择对:

Eclipse IDE for Enterprise Java Developers选择这个版本。

昨天折腾了很长时间,安装了很多插件,今天发现版本选择错了,那个版本是用来java开发的,重新下载了这个版本,上面的所有问题都解决了。

在window> preferences> server >runtime Environments配置本地tomcat。

Eclipse导入现有项目

第一步File-->Import导入   

第二步:选择导入类型   project into workspace 

三步选择文件路径,点击Browse...

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值