⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servletrunner

📁 《移动Agent技术》一书的所有章节源代码。
💻
字号:
#!/bin/sh## Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.## Permission to use, copy, modify, and distribute this software# and its documentation for NON-COMMERCIAL purposes and without# fee is hereby granted provided that this copyright notice# appears in all copies. Please refer to the file "copyright.html"# for further important copyright and licensing information.## SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF# THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED# TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A# PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR# ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR# DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.### SRUN - ServletRunner for testing servlets.## Look for specified file in executable search path and echo path name of# file if found. search_path() {    for d in `echo $PATH | tr ':' ' '`    do	if [ -f $d/$1 -a -x $d/$1 ]	then	    echo $d	    exit	fi    done}# Print fatal error message and die.error() {    echo "ServletRunner: $1" 2>&1    exit 1}# If JAVA_HOME not specified then determine default value based on location# of Java runtime if found in search path. Otherwise set to default location# of JDK 1.1 installation.	JAVA_HOME=/user1/jdk1.3# If the Java runtime still cannot be found then JAVA_HOME must be set# manually.if [ ! -x "$JAVA_HOME/bin/java" ]then    error "Cannot find the Java runtime. Please set JAVA_HOME."fi# If JSDK_HOME not specified then determine default location of JSDK# from directory out of which this script was executed. Otherwise,# JSDK_HOME must be set manually.d=`dirname $0`if [ -n "$d" ]  then    JSDK_HOME=`cd $d/.. >/dev/null 2>&1 && pwd`fiif [ -z "$JSDK_HOME" ]  then    error "Cannot find the JSDK. Please set JSDK_HOME."fiif [ ! -d "$JSDK_HOME" ]then    error "JSDK_HOME ($JSDK_HOME) must be a directory."fi# Add JSDK classes to default class path.CLASSPATH=$JSDK_HOME/classes:$JSDK_HOME/lib/jsdk.jar:$classpathexport CLASSPATH# Start server and pass any arguments specified on command line.cd $JSDK_HOME$JAVA_HOME/bin/java sun.servlet.http.HttpServer $*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -