Dear Robert Troshynski,
Thanks for that wonderful solution. But I'm still experiencing a few glitches here and there. I did all you asked me to do; the only thing I changed was the last line in the testj2ee.bat file from cd c:\j2sdkee1.3\bin to cd c:\j2sdkee1.3.1\bin as mine is j2sdkee1.3.1. Upon entering the bin directory of my j2ee and typing testj2ee, this was what I got:
C:\j2sdkee1.3.1\bin>testj2ee
Syntax error
Syntax error
Syntax error
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd J2EE_HOME\bin
Invalid directory
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>java -Xmx128m = = = -Dorg.xml.sax.parser=org.xml.sax.helpers
.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -
Djms.home=C:\j2sdkee1.3.1 -Dcom.sun.jms.service.jdbc.dbpath=C:\j2sdkee1.3.1\repo
sitory\\db\ -Djms.properties=C:\j2sdkee1.3.1\config\jms_service.properties -Djav
a.security.policy==C:\j2sdkee1.3.1\lib\security\server.policy -Djava.security.au
th.login.config=C:\j2sdkee1.3.1\lib\security\login.config -Dcom.sun.enterprise.h
ome=C:\j2sdkee1.3.1 com.sun.enterprise.server.J2EEServer
Exception in
thread "main" java.lang.NoClassDefFoundError: =
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd c:\j2sdkee1.3.1\bin
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
-----------------------------------------------------------------------------------------------
An attempt to invoke the deploytool by typing testdeploytool at the command prompt generated the following:
C:\j2sdkee1.3.1\bin>testdeploytool
Syntax error
Syntax error
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd c:\j2sdk1.4.0\bin
C:\j2sdk1.4.0\bin>
C:\j2sdk1.4.0\bin>java -Djavax.net.ssl.trustStore=C:\j2sdkee1.3.1\lib\security\c
acerts.jks -Djava.security.auth.policy=C:\j2sdkee1.3.1\lib\security\jaas.policy
-Dcom.sun.CORBA.connection.ORBSocketFactoryClass=SSL:0,SSL_MUTUALAUTH:0,PERSISTE
NT_SSL:1060 -Dcom.sun.enterprise.home=C:\j2sdkee1.3.1 com.sun.enterprise.tools.
deployment.main.Main
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/to
ols/deployment/main/Main
C:\j2sdk1.4.0\bin>
C:\j2sdk1.4.0\bin>cd C:\j2sdkee1.3.1\bin
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
----------------------------------------------------------------------------------------------
and testsetenv.bat generated:
--------------- a few lines I couldn't catch here-----------------
C:\j2sdkee1.3.1\bin>call C:\j2sdkee1.3.1\bin\userconfig.bat
C:\j2sdkee1.3.1\bin>REM
REM Copyright 2002 Sun Microsystems, Inc. All rights rese
rved.
REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
REM
rem J2
EE_CLASSPATH is appended to the classpath referenced by the EJB server.
C:\j2sdkee1.3.1\bin>rem J2EE_CLASSPATH must include the location of the
JDBC dri
ver classes
C:\j2sdkee1.3.1\bin>rem (except for the Cloudscape driver shipped with this rele
ase).
C:\j2sdkee1.3.1\bin>rem Each directory is delimited by a semicolon.
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>rem set J2EE_CLASSPATH=
C:\j2sdkee1.3.1\bin>rem
-------------------a few lines I couldn't catch here too-------------------
C:\j2sdkee1.3.1\bin>rem Standard Edition software is installed.
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>rem set JAVA_HOME=
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>set JMS_HOME=C:\j2sdkee1.3.1
C:\j2sdkee1.3.1\bin>set LIBDIR=C:\j2sdkee1.3.1\lib
C:\j2sdkee1.3.1\bin>set LOCALEDIR=C:\j2sdkee1.3.1\lib\locale
C:\j2sdkee1.3.1\bin>set CLASSESDIR=J2EE_HOME\lib\classes
C:\j2sdkee1.3.1\bin>set JMS_CLASSESDIR=J2EE_HOME\config
C:\j2sdkee1.3.1\bin>rem JMS DB PATH must end in slash to specify a directory
--------------------a few more lines here ----------------------------
C:\j2sdkee1.3.1\bin>set JAAS1A=-Djavax.net.ssl.trustStore
C:\j2sdkee1.3.1\bin>set JAAS1B=C:\j2sdkee1.3.1\lib\security\cacerts.jks
C:\j2sdkee1.3.1\bin>set JAAS2A=-Djava.security.auth.policy
C:\j2sdkee1.3.1\bin>set JAAS2B=C:\j2sdkee1.3.1\lib\security\jaas.policy
C:\j2sdkee1.3.1\bin>set JAAS3A=-Dcom.sun.CORBA.connection.ORBSocketFactoryClass
C:\j2sdkee1.3.1\bin>set JAAS3B=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>set CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jak
arta-ant-1.4.1;C:\j2sdk1.4.0\lib\tools.jar;C:\j2sdkee1.3.1\config;C:\j2sdkee1.3.
1\conf;C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tool
s.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\
client.jar;C:\j2sdkee1.3.1\lib\jhall.jar;c:\j2sdk1.4.0\lib\tools.jar;c:\j2sdk1.4
.0\jre\lib\rt.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;.;J2EE_HOME\lib\classes;J2EE_HOME
\config;C:\j2sdkee1.3.1\lib\locale
Syntax error
C:\j2sdkee1.3.1\bin>
--------------------------------------------------------------------------------------------
Apart from all these, nothing else is generated.
Attempting to execute ant target like the J2EE tutorial says one should gives:
C:\J2EEtutorial\examples\src>ant web
Syntax error
-----
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-----You know the rest-----------------
typing set at the command prompt after all these gives the following output:
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BORLAN~1\BIN;C:\j2sdk1.4.0\bin;c:\j2sdkee1
.3.1\bin;c:\jakarta-ant-1.4.1\bin
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
JAVA_HOME=c:\j2sdk1.4.0
J2EE_HOME=C:\j2sdkee1.3.1
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
ANT_HOME=C:\jakarta-ant-1.4.1\
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
_CLASSPATHCOMPONENT=c:\j2sdk1.4.0\lib\tools.jar
CMDLINE="c:\j2sdk1.4.0\bin\java" -classpath "c:\j2sdk1.4.0\lib\tools.jar;" -Dant
.home="C:\jakarta-ant-1.4.1\" org.apache.tools.ant.Main web
Otherwise, it looks like this:
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BORLAN~1\BIN;C:\j2sdk1.4.0\bin;c:\j2sdkee1
.3.1\bin;c:\jakarta-ant-1.4.1\bin
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
JAVA_HOME=c:\j2sdk1.4.0
J2EE_HOME=C:\j2sdkee1.3.1
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
ANT_HOME=C:\jakarta-ant-1.4.1\
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
CMDLINE=doskey /insert
My PC run on windows ME too.
I hope my situation is not hopeless
Thanks.