当前位置: 技术问答>java相关
安装j2sdkee的问题?
来源: 互联网 发布时间:2015-07-24
本文导语: 我安装了 jdk 安装目录是 c:j2sdk1.4 j2sdkee 安装目录是 c:j2sdkee1.3.1 环境变量设置为: JAVA_HOME = c:j2sdk1.4 J2EE_HOME = c:j2sdkee1.3.1 然后我执行 J2EE_HOMEbinj2ee.bat 提示 : Bad command or file name Out of environment space Out of...
我安装了
jdk 安装目录是 c:j2sdk1.4
j2sdkee 安装目录是 c:j2sdkee1.3.1
环境变量设置为:
JAVA_HOME = c:j2sdk1.4
J2EE_HOME = c:j2sdkee1.3.1
然后我执行 J2EE_HOMEbinj2ee.bat
提示 :
Bad command or file name
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Bad command or file name
请问为什么?
附 j2ee.bat
@echo off
REM
REM Copyright 2002 Sun Microsystems, Inc. All rights reserved.
REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
REM
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem
rem set J2EE_HOME to the path where you have installed this package (EJB server).
rem
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%binsetenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%binsetenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%binjava.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
rem @echo on
%JAVA_COMMAND% %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%configjms_service.properties -Djava.security.policy==%J2EE_HOME%libsecurityserver.policy -Djava.security.auth.login.config=%J2EE_HOME%libsecurityserverlogin.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
:END
jdk 安装目录是 c:j2sdk1.4
j2sdkee 安装目录是 c:j2sdkee1.3.1
环境变量设置为:
JAVA_HOME = c:j2sdk1.4
J2EE_HOME = c:j2sdkee1.3.1
然后我执行 J2EE_HOMEbinj2ee.bat
提示 :
Bad command or file name
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Bad command or file name
请问为什么?
附 j2ee.bat
@echo off
REM
REM Copyright 2002 Sun Microsystems, Inc. All rights reserved.
REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
REM
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem
rem set J2EE_HOME to the path where you have installed this package (EJB server).
rem
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%binsetenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%binsetenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%binjava.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
rem @echo on
%JAVA_COMMAND% %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%configjms_service.properties -Djava.security.policy==%J2EE_HOME%libsecurityserver.policy -Djava.security.auth.login.config=%J2EE_HOME%libsecurityserverlogin.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
:END
|
win98会这样
|
在你出现错误的那个DOS窗口里,选择属性-->内存,
把你的初始环境那项改为大于2816,关闭窗口,再重新启动,OK!
把你的初始环境那项改为大于2816,关闭窗口,再重新启动,OK!