Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: Running and starting J2EE


Message #1 by roxtsl@y... on Thu, 17 May 2001 01:52:43
I'm a little unsure how to best answer this. Naturally, working at the
command line is often confusing for newcomers who didn't spend years doing
so in DOS or Unix. But you say that you did successfully respond to its
request to "set j2ee_home and java_home", so it seems you know how to set
environment variables. What did you set them to?

Also, what operating system are you using?

If you look at the j2ee.bat file (use the command "type j2ee.bat |more" to
look at it and use CTRL-C to break out of that display), you'll see that it
expects j2ee_home to be set to a directory where there is an underlying
bin\setenv.bat file existing and the java_home to be where there is an
underlying \bin\java.exe file existing.

For my setup, those were:

j2ee_home: d:\j2sdkee1.2.1\
javahome: d:\jdk1.3\

Then I could run the J2ee batch file.

As for your last error, you say get an error "when I type j2ee", are you
entering it the same way you said you had before, when it complained of the
environment variables? Are you entering, the second time:

C:\program files\j2sdkee 1.2.1\bin>j2ee -verbose

If so, it's not clear how you'd get the error stating "c:\program" is not
recognized as an internal or external command. If it worked the first time,
it should certainly work the second time.

Any more info?

/charlie

-----Original Message-----
From: bounce-j2ee-537741@p...
[mailto:bounce-j2ee-537741@p...]On Behalf Of roxtsl@y...
Sent: Thursday, May 17, 2001 1:53 AM
To: Java 2 Enterprise Edition
Subject: [j2ee] Running and starting J2EE


Hi

I downloaded J2EE 1.2.1 from SUN.  I installed and followed instruction to
get the J2EE running.  I tried typing "j2ee -verbose" to start the server
at the command line prompt (I type " C:\program files\j2sdkee 1.2.1
\bin>j2ee -verbose").  The system prompted me to set j2ee_home and
java_home.  I set both where my files are located in my PC.  When I
type "j2ee -verbose" again, it gives me this error message :

'c:\program' is not recognized as an internal or external command,
operable program or batch file.
'-Djava.security.policy'is not recognized as an internal or external
command, operable program or batch file.

Can anyone tell me what is wrong here?  What should I do to get J2EE
running?  Thanks a lot!

Roxanne




  Return to Index