windows下myeclipse8.5JDKtomcat6.0.29及oracle11g开发环境搭建北京东方多点科技有限公司目录1WINXP下JAVA开发环境建立........................................................................................................................................31.1JDK安装...............................................................................................................................................................................31.2TOMCAT安装..........................................................................................................................................................................51.3MYECLIPSE安装与配置...........................................................................................................................................................91.4ORACLE安装.........................................................................................................................................................................131.5ORACLEDBCONSOLEDBTEST服务启动问题...........................................................................................................................341.6配置TNSNAMES.ORA.............................................................................................................................................................451.7配置LISTENER.ORA................................................................................................................................................................451.8LISTENER.ORA配置错误1......................................................................................................................................................461.9LISTENER.ORA配置错误2......................................................................................................................................................481.10LISTENER.ORA配置错误3....................................................................................................................................................492BONECP数据库连接池.................................................................................................................................................542.1所需文件...........................................................................................................................................................................542.2CONTEXT.XML文件配置.........................................................................................................................................................552.3JSP测试文件.......................................................................................................................................................................571WINXP下JAVA开发环境建立1.1JDK安装1.从下面下载jdk:jdk-6u18-windows-i586.exehttp://java.sun.com/javase/downloads/index.jsp这是jdk的下载页面。2.双击安装。3.安装完成后,在C:\ProgramFiles\Java\jdk1.6.0_18目录下可以看到安装完成的JDK。4.在window中的“我的电脑”上点右键属性高级环境变量中的“系统变量”中,设置3项属性,JAVA_HOME,PATH,CLASSPATH(大小写无所谓),若已存在则点击“编辑”,不存在则点击“新建”。JAVA_HOME变量值:C:\ProgramFiles\Java\jdk1.6.0_18PATH在变量值的最前面加上:%JAVA_HOME%\bin;CLASSPATH变量值:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar(注意有最前面个“.”)如何验证JDK安装成功?A:在“命令提示符”窗口中,输入javac,按回车执行如果输出的内容是使用说明,则说明配置成功。如果输出的内容是“‘javac’不是内部或外部命令,也不是可执行的程序或批处理文件。”则说明配置错误,需要重新进行配置。开始--运行,输入cmd进入到黑屏的DOS窗口,然后输入javac,输入java,看是否有相关的使用说明,如果有,则表示安装成功。1.2tomcat安装从http://tomcat.apache.org/网上下载下面的文件:apache-tomcat-6.0.29-windows-x86.zip然后解压。将解压后的目录移到相应的安装目录下:例如将解压后的apache-tomcat-6.0.29目录,移至D:盘下:D:\apache-tomcat-6.0.29。设置相关环境变量:其实也没什么好说的就是关于TOMCAT的几个环境变量我把TOMCAT安装到了D:\apache-tomcat-6.0.29这个目录下那么我就列举如下TOMCAT_HOME:D:\apache-tomcat-6.0.29CATALINA_HOME:D:\apache-tomcat-6.0.29CATALINA_BASE:D:\apache-tomcat-6.0.29运行:出现以下框:然后在浏览器中输入:http://localhost:8080/如果出现下面的小猫图案页面,则表示tomcat安装成功。1.3myeclipse8.5安装与配置1.3.1myeclipse8.5安装安装myeclipse-8.5.0-win32.exe,安装后,打开SubscriptionInformation,然后输入注册码。1.3.2Myeclipse8.5与tomcat6的整合安照下图MyEclipse--Preferences中配置Tomcat服务器:1.3.3myeclipse配置自己的JRE如下图:MyEclipse自带一个java开发环境,习惯上会选择自己安装的JRE.1.4oracle安装从oracle官方网站上下载win32_11gR1_database_1013.zip文件,解压生成database目录。进入database目录,双击setup.exe进行安装。到此安装完成windowsXP下的oracle11g。查看windows的系统服务,可以看到oracle有4个服务,有三个已经启动。1.5OracleDBConsoleDBTEST服务启动问题注:这个问题并不影响webjavaEE的开发,可以跳过。在浏览器中输入https://192.168.1.100:1158/em显示无法连接,如下图:在winxp重启后,查看Oracle的服务,如下:发现OracleDBConsoleDBTEST服务没有开启。右键点击OracleDBConsoleDBTEST服务,启动,报下面的错。C:\DocumentsandSettings\liugfemctlstartdbconsoleOC4JConfigurationissue.D:\app\product\11.1.0\db_1/oc4j/j2ee/OC4J_DBConsole_localhost_DBTESTnotfound.C:\DocumentsandSettings\liugfsetoracle_hostname=192.168.1.100C:\DocumentsandSettings\liugfemctlstartdbconsoleOracleEnterpriseManager11gDatabaseControlRelease11.1.0.6.0Copyright(c)1996,2007OracleCorporation.Allrightsreserved.https://192.168.1.100:1158/em/console/aboutApplicationStartingOracleEnterpriseManager11gDatabaseControl...OracleDBConsoleDBTEST服务正在启动..............OracleDBConsoleDBTEST服务无法启动。发生服务特定错误:2.请键入NETHELPMSG3547以获得更多的帮助。C:\DocumentsandSettings\liugfnethelpmsg3547发生服务特定错误:***.解释发生服务方面的问题。操作请参考解释或手册来判断问题发生原因。C:\DocumentsandSetting
本文标题:windows 下myeclipse 85 JDK tomcat6029 及oracle11g开发环
链接地址:https://www.777doc.com/doc-13463 .html