Myeclipse 6.5 增加对 JavaEE 6 的支持

网上找了一会没发现什么好的方法一想干脆自己动手丰衣足食,搜索MYECLIPSE_JAVAEE_5_CONTAINER找到了

MyEclipse6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806 这个位置,那一定是在这里配置的了。

那就试试吧,到myeclipse10里面找到对应的配置文件开搞,

plugin.xml 文件中找到
      <classpathContainerInitializer
            class="com.genuitec.eclipse.core.librarymgmt.MEClasspathContainerInitializer"
            id="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER">
      </classpathContainerInitializer>

下面添加
      <classpathContainerInitializer
            class="com.genuitec.eclipse.core.librarymgmt.MEClasspathContainerInitializer"
            id="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER">
      </classpathContainerInitializer>

preferences.ini 最下面添加


module.JavaEE_6_CONTAINER.id=JavaEE_6_CONTAINER
module.JavaEE_6_CONTAINER.name=JavaEE 6 Libraries
module.JavaEE_6_CONTAINER.category=javaee_6
module.JavaEE_6_CONTAINER.containerType=2
module.JavaEE_6_CONTAINER.libId=melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER
module.JavaEE_6_CONTAINER.maven=javax.servlet/jstl/1.2/provided;javax.servlet.jsp/jsp-api/2.1/provided;\
org.glassfish/javax.annotation/3.0.1;\org.glassfish/javax.ejb/3.0.1;org.jboss.weld/weld-osgi-bundle/1.0.1-SP3;org.glassfish/javax.servlet/3.0.1;

melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER.containerType=2
melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER.classpath=\
MYECLIPSE_LIB_HOME/EE_6/bean-validator.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.annotation.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.ejb.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.enterprise.deploy.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.jms.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.management.j2ee.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.persistence.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.resource.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.security.auth.message.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.security.jacc.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/javax.transaction.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/jaxb-api-osgi.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar(javadoc\=http\://javaserverfaces.java.net/nonav/docs/2.0/javadocs/);\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar(javadoc\=http\://javaserverfaces.java.net/nonav/docs/2.0/javadocs/);\
MYECLIPSE_LIB_HOME/EE_6/jsr311-api.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/mail.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/webservices-api-osgi.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/);\
MYECLIPSE_LIB_HOME/EE_6/weld-osgi-bundle.jar(javadoc\=http\://java.sun.com/javaee/6/docs/api/)
melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER.description=Java EE 6 Libraries

module.JavaEE_6_CONTAINER.serverRequiredLibs.servers=tomcat7Server;tomcat6Server;jetty6Server;myeclipseTomcatServer;tcserver6Server;jetty7Server
module.JavaEE_6_CONTAINER.serverRequiredLibs.tomcat7Server=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

module.JavaEE_6_CONTAINER.serverRequiredLibs.tomcat6Server=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

module.JavaEE_6_CONTAINER.serverRequiredLibs.jetty6Server=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

module.JavaEE_6_CONTAINER.serverRequiredLibs.myeclipseTomcatServer=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

module.JavaEE_6_CONTAINER.serverRequiredLibs.tcserver6Server=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

module.JavaEE_6_CONTAINER.serverRequiredLibs.jetty7Server=\
MYECLIPSE_LIB_HOME/EE_6/jstl-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/javax.servlet.jsp.jstl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-impl.jar;\
MYECLIPSE_LIB_HOME/EE_6/jsf-api.jar

到这里打开JavaEE6的项目不报错了,新建一个项目试试,

还是没有。

目标第三个文件,j2eedtcore.jar  对比了新老jar包中的com.genuitec.eclipse.j2eedt.core.LibraryManager 干脆一不做二不休直接拖进来重启

出现了,新建一个试试貌似成功了。

 

改完了想了想,是不是直接把myeclipse10里\com.genuitec.eclipse.j2eedt.core_10.5.0.me201207171805文件夹下的内容覆盖到myeclipse6.5对应目录里就可以了?

本着生命不止折腾不熄的态度,再试一把。失败,报错,还弄乱了我的workspace设置,哈哈,欲哭无泪啊。又有的忙了。。。。

posted @ 2016-06-27 11:36  RAY_M  阅读(2052)  评论(0编辑  收藏  举报