当前位置: 代码迷 >> Eclipse >> Java筹建JDK,Tomcat,Eclipse
  详细解决方案

Java筹建JDK,Tomcat,Eclipse

热度:21   发布时间:2016-04-23 02:10:06.0
Java搭建JDK,Tomcat,Eclipse

1 安装jdk,环境变量设置
我的下载版本及安装路径为:C:\Program Files\Java\jdk1.7.0_03
JAVA_HOME:C:\Program Files\Java\jdk1.7.0_03
CLASSPATH:.;%JAVA_HOME%\lib;
Path:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program Files\ARM\bin\win_32-pentium;C:\Perl\bin\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Xoreax\IncrediBuild;C:\Program Files\TortoiseSVN\bin;C:\Program Files\ARM\RDI\Deprecated\1.3.1\1\windows;C:\Program Files\ARM\RVCT\Programs\3.1\569\win_32-pentium;C:\Program Files\ARM\Utilities\FLEXlm\10.8.5.0\1\win_32-pentium
测试方法:
写一个HelloJAVA.java文件,内容如下:
public class HelloJAVA
{
public static void main(String srg[])
{
System.out.println("Hello JAVA!");
}
}
在控制台里面输入:
javac hellojava.java
java hellojava
输出:
Hello Java
表示安装成功

2 安装tomcat,环境变量设置
我的下载版本及安装路径为:C:\Program Files\apache-tomcat-7.0.32
CATALINA_BASE:C:\Program Files\apache-tomcat-7.0.32
CATALINA_HOME:C:\Program Files\apache-tomcat-7.0.32
CLASSPATH:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\common\lib;
Path:%CATALINA_HOME%\bin;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program Files\ARM\bin\win_32-pentium;C:\Perl\bin\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Xoreax\IncrediBuild;C:\Program Files\TortoiseSVN\bin;C:\Program Files\ARM\RDI\Deprecated\1.3.1\1\windows;C:\Program Files\ARM\RVCT\Programs\3.1\569\win_32-pentium;C:\Program Files\ARM\Utilities\FLEXlm\10.8.5.0\1\win_32-pentium
测试方法:在浏览器里输入http://localhost:8088/,解析成功,安装OK

3 eclipse的安装
直接解压,我的下载版本及安装路径为:D:\eclipse-jee

4 tomcat插件的安装
我的下载版本及安装路径为:D:\eclipse-jee\plugins\com.sysdeo.eclipse.tomcat_3.3.0
直接下载最新的版本,拷贝到D:\eclipse-jee\plugins\下就可以了。点击 Window(窗口) ----> Preferences首选项  ----> Server和Tomcat设置

  相关解决方案