java - MyEclipse的Web项目如何无缝的迁移到Eclipse for j2ee中?
伊谢尔伦
伊谢尔伦 2017-04-18 10:25:58
0
2
437

Eclipse是真没用过,尝试了一天,除了Tomcat安装成功了,其他诸如导入Web项目结果成了普通项目、数据库insert操作一直执行中,后续所有SQL都被阻塞、Tomcat管理界面进不去一直403、项目中原来依赖的MyEclipse的J2EE library也没法用了...等等,感觉好悲伤,当初换IDEA的时候也没这么恶心,关键是都不知道哪出问题了,心都碎了。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all (2)
大家讲道理

Give your specific steps to troubleshoot errors.

Myeclipse to eclipse, I wonder if you used any tool to do this automatically. I don't think it's appropriate to use tools. The simplest idea is to create an empty project in eclipse and then migrate the files according to the corresponding location.

IDE is nothing more than marking the project type and file type with some configuration files, so that it can have different display status for various projects and files. These configuration files are generally automatically generated by the IDE. It would be unrealistic if they were all processed by human flesh. So it is better to create a new empty project and use my method above.

Just make a guess based on your description:

  • The result of importing the web project becomes a normal project: as I just said, don’t import. For these two IDEs, I have the impression that web files are placed under the WebRoot folder in myeclipse, and in eclipse under the WebContent folder. Other than that, there is almost no difference, so manual migration is very simple.

  • The database insert operation is in progress...: The database operation has nothing to do with the migration project

  • I can’t enter the tomcat management interface: tomcat has nothing to do with the migration project

  • The J2EE library of MyEclipse that the project originally relied on cannot be used: the J2EE library used by JavaWeb should only be servlet. If you create a new Dynamic Web Project, these will be automatically created. If it is done manually, it can be adjusted in the project buildpath.

I guess you’re confused too, so it’s best to post your detailed steps.

    PHPzhong

    It is easy to migrate from Eclipse to MyEclipse, but the opposite is more troublesome, especially the settings of WST.
    The following are some migration steps I have compiled for reference only:
    1. Open the Navigator view and edit the .project file in the directory where the project is located. Add xml code

    org.eclipse.jem.workbench.JavaEMFNature org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature

    In the .classpath file, add the xml code

     

    2. Right click on the project, properties->Project Facets, make sure Dynamic Web Module, Java, Javascript Toolkit is selected
    3. Edit the org.eclipse.wst.common.component file in the .settings directory in the seed-web project and modify it Make sure there is xml code at the end

    Finally refresh the project and deploy the seed-web project in Tomcat that comes with Eclipse JEE.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!