MyEclipse10 Tomcat7 JDK1.7 配置

版权声明:原创文章欢迎转载,不过要记得加出处哦 https://blog.csdn.net/wljk506/article/details/7047771

第一步.MyEclipse10 Tomcat7 JDK1.7下载

MyEclipse10
http://downloads.myeclipseide.com/downloads/products/eworkbench/indigo/installers/myeclipse-10.0-offline-installer-windows.exe

Tomcat7 Tomcat 7.0.23 WINDOWS版 http://tomcat.apache.org/download-70.cgi
32位:http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-7/v7.0.23/bin/apache-tomcat-7.0.23-windows-x86.zip
64位:http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-7/v7.0.23/bin/apache-tomcat-7.0.23-windows-x64.zip

Java SE Development Kit 7 WINDOWS版 

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html

32位:http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-windows-i586.exe

64位:http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-windows-x64.exe

好快新版又出来了。

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html

32位:http://download.oracle.com/otn-pub/java/jdk/7u3-b05/jdk-7u3-windows-i586.exe

64位:http://download.oracle.com/otn-pub/java/jdk/7u3-b05/jdk-7u3-windows-x64.exe

第二步.安装

MyEclipse10 和 JDK 安装自己需要的目录,我这边都是默认目录

Tomcat7 解压缩到自己设置的目录,我这边放到根目录


第三步.配置


browse 选择 解压缩的 Tomcat7 目录

配置JDK,选择 之前安装的 JDK目录


选择 jdk1.7 这个目录,按 确定  OK


配置完成

第四步,测试

菜单 file->new->web project


点击 工具栏 




控制台就会,显示执行  Tomcat7 一些信息

运行完成后

访问地址:http://localhost:8080/test/index.jsp

就是刚 建立的测试页面。

配置就成功了


阅读更多

扫码向博主提问

风.foxwho

非学,无以致疑;非问,无以广识
  • 擅长领域:
  • php
  • java
  • go
  • 架构
  • more
去开通我的Chat快问
换一批

myEclipse10tomcat7运行报错

06-09

最近自学Servlet在myeclipse10上挂了tomcat7.都是使用jdk1.7和javaEE 6,随手创建了一个web项目rn自己没在上面写代码就像看看运行效果,结果tomcat在装载项目后就报错了rn---------------------------------------------------------------------------------------------------------------------rn严重: ContainerBase.addChild: start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/tomcat]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NoClassDefFoundError: javax/faces/webapp/FacesServletrn at com.sun.faces.config.FacesInitializer.(FacesInitializer.java:103)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:192)rn at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:157)rn at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1577)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 10 morernCaused by: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn ... 23 morern六月 09, 2015 5:15:11 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory D:\Resource\apache-tomcat-7.0.62\webapps\tomcatrnjava.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/tomcat]]rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn-----------------------------------------------------------------------------------------------------------------------rn小弟我不懂英文,在myeclipse上单独开启tomcat是没有问题的rnrnrn------------------------------------------------------------------------------------------------------------------------rnpackage com.hsp.servlet;rnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnpublic class Servlet2 extends HttpServlet rnrnrn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn out.println("");rn out.println("");rn out.println(" A Servlet");rn out.println(" ");rn out.print(" This is ");rn out.print(this.getClass());rn out.println(", using the GET method");rn out.println(" ");rn out.println("");rn out.flush();rn out.close();rn rnrn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn out.println("");rn out.println("");rn out.println(" A Servlet");rn out.println(" ");rn out.print(" This is ");rn out.print(this.getClass());rn out.println(", using the POST method");rn out.println(" ");rn out.println("");rn out.flush();rn out.close();rn rnrnrn源码系统生成动都没动rnrnrnrn This is the description of my J2EE componentrn This is the display name of my J2EE componentrn Servlet2rn com.hsp.servlet.Servlet2rn rnrn rn Servlet2rn /Servlet2rn rn rn index.jsprn rnrnrn求各路大神帮帮小弟

没有更多推荐了,返回首页