LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 875|回复: 4

新手求教:怎么安装Tomcat(建立J2EE环境)?

[复制链接]
发表于 2005-1-2 11:31:22 | 显示全部楼层 |阅读模式
怎么安装Tomcat(建立J2EE环境)?

最近想学习J2EE,但是不知道在debian里面怎么建立J2EE的环境

我的JDK环境是直接从SUN的网站上下载J2SDK5.0+netbeans的BIN包来安装的

那么是否还需要单独安装tomcat服务器?
发表于 2005-1-2 15:35:25 | 显示全部楼层
不需要,nb4.0内置了tomcat5.0.28,
安装之后不知道你启动过nb没有???
 楼主| 发表于 2005-1-3 09:00:35 | 显示全部楼层
启动过的,用它做过SWING,就是没搞过JSP,那么说我的机器上已经有学习J2EE的环境了,谢谢你。
发表于 2005-1-3 13:45:04 | 显示全部楼层
http://www.sysdeo.com/eclipse/tomcatPlugin.html
ECLIPSE 上的TOMCAT 插件。
发表于 2005-1-3 13:46:29 | 显示全部楼层
Red Hat Linux
Red Hat Linux's default shell is the popular Bourne Again Shell (or bash). If this is your shell, you'll need to edit your account's startup script. To do this, log in under your own account (usually not root), and add the following lines to the ~/.bashrc file using your editor of choice:

export JAVA_HOME=/usr/java/j2sdk1.4.1_01
export CATALINA_HOME=/usr/local/java/tomcat50
export PATH=$PATHJAVA_HOME/binCATALINA_HOME/bin
export CLASSPATH=$CLASSPATHCATALINA_HOME\common\lib\servlet.jar:.

If by chance you're using the TC Shell (tcsh), you'll need to edit ~/.tcshrc by adding the following lines:

setenv JAVA_HOME /usr/java/j2sdk1.4.1_01
setenv CATALINA_HOME /usr/local/java/tomcat50
setenv PATH ${PATH}{JAVA_HOME}/bin{CATALINA_HOME}/bin
setenv CLASSPATH ${CLASSPATH}{CATALINA_HOME}\common\lib\servlet.jar:.

Again, if you've chosen different directories for the previous installation, change them as necessary; if you're not sure which shell you're using, type echo $SHELL to find out.

You're all done with installing—time to try out Tomcat!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表