当前位置: 技术问答>java相关
J2ee, runclient -client CartApp.ear -name CartClient -textauth ...
来源: 互联网 发布时间:2015-09-23
本文导语: 有谁看过Sun的J2ee Tutorial? Chapter 3中的例子没法运行,错误如下: Initiating login ... Enter Username:guest Enter Password:guest123 Binding name:`java:comp/env/ejb/SimpleCart` Application threw an exception:java.lang.NoClassDefFoundError: CartHome 如...
有谁看过Sun的J2ee Tutorial?
Chapter 3中的例子没法运行,错误如下:
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleCart`
Application threw an exception:java.lang.NoClassDefFoundError: CartHome
如何解决?
Chapter 3中的例子没法运行,错误如下:
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleCart`
Application threw an exception:java.lang.NoClassDefFoundError: CartHome
如何解决?
|
从setenv.bat中可以看到%CPATH%的意义
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 first include user-specified definitions.
call %J2EE_HOME%binuserconfig.bat
if "%JMS_HOME%" == "" set JMS_HOME=%J2EE_HOME%
set LIBDIR=%J2EE_HOME%lib
set LOCALEDIR=%J2EE_HOME%liblocale
set CLOUDSCAPE_INSTALL=%LIBDIR%cloudscape
set CLASSESDIR=%LIBDIR%classes
set JMS_CLASSESDIR=%JMS_HOME%classes
set J2EEJARS=%LIBDIR%j2ee.jar
set JAVATOOLS=%JAVA_HOME%libtools.jar
set JAVAHELPJARS=%LIBDIR%jhall.jar
rem JMS DB PATH must end in slash to specify a directory
set JMS_DB_PATH=%J2EE_HOME%repository%COMPUTERNAME%db
set SYSTEM_LIB_DIR=%LIBDIR%system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%cloudscape.jar;%SYSTEM_LIB_DIR%tools.jar
set CLOUDJARS=%JMS_RI_JDBC%;%CLOUDSCAPE_INSTALL%RmiJdbc.jar;%CLOUDSCAPE_INSTALL%cloudclient.jar
set J2EETOOL_CLASSES=%LIBDIR%toolclasses
set J2EETOOL_JAR=%LIBDIR%j2eetools.jar
set CPATH=%CLOUDJARS%;%CLASSESDIR%;%JMS_CLASSESDIR%;%J2EEJARS%;%J2EETOOL_CLASSES%;%J2EETOOL_JAR%;%LOCALEDIR%;%J2EE_CLASSPATH%;%JAVATOOLS%;%JAVAHELPJARS%
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%libsecurityjaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%libsecuritycacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
set JAVA_COMMAND=%JAVA_HOME%binjava -Xmx128m %SSL_OPTIONS% %JAAS_OPTIONS%
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 first include user-specified definitions.
call %J2EE_HOME%binuserconfig.bat
if "%JMS_HOME%" == "" set JMS_HOME=%J2EE_HOME%
set LIBDIR=%J2EE_HOME%lib
set LOCALEDIR=%J2EE_HOME%liblocale
set CLOUDSCAPE_INSTALL=%LIBDIR%cloudscape
set CLASSESDIR=%LIBDIR%classes
set JMS_CLASSESDIR=%JMS_HOME%classes
set J2EEJARS=%LIBDIR%j2ee.jar
set JAVATOOLS=%JAVA_HOME%libtools.jar
set JAVAHELPJARS=%LIBDIR%jhall.jar
rem JMS DB PATH must end in slash to specify a directory
set JMS_DB_PATH=%J2EE_HOME%repository%COMPUTERNAME%db
set SYSTEM_LIB_DIR=%LIBDIR%system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%cloudscape.jar;%SYSTEM_LIB_DIR%tools.jar
set CLOUDJARS=%JMS_RI_JDBC%;%CLOUDSCAPE_INSTALL%RmiJdbc.jar;%CLOUDSCAPE_INSTALL%cloudclient.jar
set J2EETOOL_CLASSES=%LIBDIR%toolclasses
set J2EETOOL_JAR=%LIBDIR%j2eetools.jar
set CPATH=%CLOUDJARS%;%CLASSESDIR%;%JMS_CLASSESDIR%;%J2EEJARS%;%J2EETOOL_CLASSES%;%J2EETOOL_JAR%;%LOCALEDIR%;%J2EE_CLASSPATH%;%JAVATOOLS%;%JAVAHELPJARS%
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%libsecurityjaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%libsecuritycacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
set JAVA_COMMAND=%JAVA_HOME%binjava -Xmx128m %SSL_OPTIONS% %JAAS_OPTIONS%
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。