myeclipes导入项目服务器设置,在Myeclipse中导入外部项目并部署在resin上遇到的一些问题...

1 首先,在导入外部项目时往往会有出现的是jdk版本的问题

常常会出现build path,java compiler level,服务器的jdk这三者不一致的情况

一般我们可以把这三者配置成一样的,就问题少一点。

build path的jdk配置:

项目->右键->Properties

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse1.png

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse2.png

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse3.png

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse4.png

然后选择自己要添加的jdk的路径,

比如我在自己的项目中Build Path的libraries中配置的是jdk1.7

那么接下来就是java compiler level的设置,这个怎么理解呢,相当于是build path中的jdk是你本地编译所需要的jdk

而compiler level是你将来部署在服务器上所运行的JDK版本,所以尽量保持一致。

怎么配置呢?

window->Preferences

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse5.png

最后就是resin服务器的配置

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse6.png

window->Preferences后直接搜索resin,就找到了

2 上面三者都部署一致后你就可以将项目部署在resin上了,但是我还遇到了这样的问题:

resin服务器虽然started了,但是我发现部署在resin上的项目还是以前我旧的项目,什么意思呢,因为我之前在这个resin上部署过另外的项目,那么此时该怎么更改呢?

打开你resin所在的目录,

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse7.png

然后修改resin.conf,找到这一行,然后修改为目前需要部署项目的路径

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse 8.png

然后你再尝试一次,应该就可以了,如果还是不行的,请考虑你项目的其他jar包是否都导入了

导入的地方还是一样,

项目->右键->Properties

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse9.png

3 还有一些小的问题也记录一下,

比如myeclipse运行时超卡,你可以修改myeclipse所在目录下的

42d2bef8b36d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

MyEclipse11.png

关于各个参数的介绍,参考http://www.doc88.com/p-016919917309.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值