@Windows:
JAVA_HOME
C:\Java\jdk1.7.0_02
CLASSPATH
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
PATH
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
@Linux:
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:/lib.dt.jar
export PATH=$JAVA_HOME/bin:$PATH
export JAVA_OPTS="-server -Xmx2048m -XX: MaxNewSize=1024m -XX: MaxPermSize=2048m"
CATALINA_OPTS="-server -Xmx768m -XX:MaxNewSize=512m -XX:MaxPermSize=700m"
-----------------------------------------------------------------------
@Linux: OpenJDK + Apache + tomcat
OpenJDK: yum-> openjdk
Apache: yum install httpd
Tomcat: apache-tomcat-6.0.26.tar.gz -> untar to /usr/ etc..
-----------------------------------------------------------------------Eclipse+Tomcat
1.New web project
project-explorer ==> new ->project ->
Web-> Dynamic project -> next ->(default) finish
2.
**Add
JSP page==> WebContent-->new --> other --> web --> jsp
Example(JSP):
阅读(1073) | 评论(0) | 转发(0) |