执行如下脚本!!存为bat文件--看看出现什么!! rem @echo on rem Set JAVA_HOME and J2EE_HOME before running this script. rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed. rem set J2EE_HOME to the path where you have installed this package (EJB server).if not "%J2EE_HOME%" == "" goto CONT0 echo ERROR: Set J2EE_HOME before running this script. goto END :CONT0if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1 echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee. goto END :CONT1call %J2EE_HOME%\bin\setenv.batif not "%JAVA_HOME%" == "" goto CONT2 echo ERROR: Set JAVA_HOME before running this script. goto END :CONT2if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3 echo ERROR: Set JAVA_HOME to the path of a valid jdk. goto END :CONT3 @echo on %JAVACMD% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath "%CPATH%" com.sun.enterprise.server.J2EEServer -verbose %1:END pause
错误,就没了!
rem @echo on
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem set J2EE_HOME to the path where you have installed this package (EJB server).if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1call %J2EE_HOME%\bin\setenv.batif not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
@echo on
%JAVACMD% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath "%CPATH%" com.sun.enterprise.server.J2EEServer -verbose %1:END
pause