You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Law Kim Soon <ki...@tm.net.my> on 2001/07/15 16:55:31 UTC

Please Help

Actually,I'm a new user to Tomcat and currently having a problem starting up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC  running win98. I have set all the paths required  but I kept on receiving error message saying 
"Bad command or file name". These are the things I have set:

set JAVA_HOME=C: \ jdk1.3.1
set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1

Can anyone please help me to solve this problem?
TQ




Re: Please Help

Posted by Law Kim Soon <ki...@tm.net.my>.
Ben,
I managed to solved the problem. There is a typing error in the path
section.
Anyway, tq Ben.I really appreciate your help.
----- Original Message -----
From: Ben Kimball <bk...@home.com>
To: <to...@jakarta.apache.org>
Sent: Wednesday, July 18, 2001 5:41 AM
Subject: Re: Please Help


> Not totally sure - I do all my Java development on Linux, much less
hassle,
> but you might try the following:
>
> Since it is complaining about setting it dynamically, maybe you can set it
in
> the environmental properties (which will probably require a reboot) -
right
> click on My Computer, select Properties, then select Environment (or
> something like that, I'm doing this from memory, as I'm running under
Linux
> right now) and one of the things that shows under that should be the PATH
> variable - you should be able to set that with the long (Non-DOS 8.3)
> pathnames. Try plugging the info in there, rebooting, then seeing if the
info
> stays in the CLASSPATH.
>
> On Monday 16 July 2001 01:54, you wrote:
> > Hie Ben,
> > I have make the changes but I'm facing a new error message.
> >
> > Unable to ser CLASSPATH dynamically.
> > Note: To set the CLASSPATH dynamically on win9x systems only DOS 8.3
> >          names may be used in TOMCAT_HOME!
> > Setting your CLASSPATH statically.
> >
> > Using CLASSPATH:
> >
C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-3.2.1\lib\ant.jar;C:\jaka
> >r
> >
ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
> >r
> >
ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-3.2.1\lib\servlet.jar;C:\jakar
> >t a-tomcat-3.2.1\lib\webserver.jar
> >
> > Starting Tomcat in new window
> > Cannot find file C:\jdk_1.3.1\bin\java (or one of its components).
> > Check to ensure the path and filename are correct and that all required
> > libraries are available.
> > Any idea to solve this, Ben?
> >
> >
> >
> > ----- Original Message -----
> > From: Ben Kimball <bk...@home.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Monday, July 16, 2001 2:20 AM
> > Subject: Re: Please Help
> >
> > > It looks like you have spaces between:
> > >
> > > "C: \ jdk1.3.1" should be "C:\jdk1.3.1"
> > > "C: \ jakarta-tomcat-3.2.1" should be "C:\jakarta-tomcat-3.2.1"
> > >
> > > You also need to make sure that c:\jdk1.3.1\bin is in your PATH,
> > > otherwise java.exe/javac.exe will not be found.
> > >
> > > On Sunday 15 July 2001 10:55, you wrote:
> > > > Actually,I'm a new user to Tomcat and currently having a problem
> >
> > starting
> >
> > > > up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC
> > > > running win98. I have set all the paths required  but I kept on
> >
> > receiving
> >
> > > > error message saying "Bad command or file name". These are the
things I
> > > > have set:
> > > >
> > > > set JAVA_HOME=C: \ jdk1.3.1
> > > > set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1
> > > >
> > > > Can anyone please help me to solve this problem?
> > > > TQ
> > >
> > > ----------------------------------------
> > > Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> > > Content-Transfer-Encoding: 7BIT
> > > Content-Description:
> > > ----------------------------------------
>


Re: Please Help

Posted by Ben Kimball <bk...@home.com>.
Not totally sure - I do all my Java development on Linux, much less hassle, 
but you might try the following:

Since it is complaining about setting it dynamically, maybe you can set it in 
the environmental properties (which will probably require a reboot) - right 
click on My Computer, select Properties, then select Environment (or 
something like that, I'm doing this from memory, as I'm running under Linux 
right now) and one of the things that shows under that should be the PATH 
variable - you should be able to set that with the long (Non-DOS 8.3) 
pathnames. Try plugging the info in there, rebooting, then seeing if the info 
stays in the CLASSPATH.

On Monday 16 July 2001 01:54, you wrote:
> Hie Ben,
> I have make the changes but I'm facing a new error message.
>
> Unable to ser CLASSPATH dynamically.
> Note: To set the CLASSPATH dynamically on win9x systems only DOS 8.3
>          names may be used in TOMCAT_HOME!
> Setting your CLASSPATH statically.
>
> Using CLASSPATH:
> C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-3.2.1\lib\ant.jar;C:\jaka
>r
> ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
>r
> ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-3.2.1\lib\servlet.jar;C:\jakar
>t a-tomcat-3.2.1\lib\webserver.jar
>
> Starting Tomcat in new window
> Cannot find file C:\jdk_1.3.1\bin\java (or one of its components).
> Check to ensure the path and filename are correct and that all required
> libraries are available.
> Any idea to solve this, Ben?
>
>
>
> ----- Original Message -----
> From: Ben Kimball <bk...@home.com>
> To: <to...@jakarta.apache.org>
> Sent: Monday, July 16, 2001 2:20 AM
> Subject: Re: Please Help
>
> > It looks like you have spaces between:
> >
> > "C: \ jdk1.3.1" should be "C:\jdk1.3.1"
> > "C: \ jakarta-tomcat-3.2.1" should be "C:\jakarta-tomcat-3.2.1"
> >
> > You also need to make sure that c:\jdk1.3.1\bin is in your PATH,
> > otherwise java.exe/javac.exe will not be found.
> >
> > On Sunday 15 July 2001 10:55, you wrote:
> > > Actually,I'm a new user to Tomcat and currently having a problem
>
> starting
>
> > > up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC
> > > running win98. I have set all the paths required  but I kept on
>
> receiving
>
> > > error message saying "Bad command or file name". These are the things I
> > > have set:
> > >
> > > set JAVA_HOME=C: \ jdk1.3.1
> > > set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1
> > >
> > > Can anyone please help me to solve this problem?
> > > TQ
> >
> > ----------------------------------------
> > Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> > Content-Transfer-Encoding: 7BIT
> > Content-Description:
> > ----------------------------------------

Re: Please Help

Posted by Law Kim Soon <ki...@tm.net.my>.
Hie Ben,
I have make the changes but I'm facing a new error message.

Unable to ser CLASSPATH dynamically.
Note: To set the CLASSPATH dynamically on win9x systems only DOS 8.3
         names may be used in TOMCAT_HOME!
Setting your CLASSPATH statically.

Using CLASSPATH:
C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-3.2.1\lib\ant.jar;C:\jakar
ta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jakar
ta-tomcat-3.2.1\lib\parser;C:\jakarta-tomcat-3.2.1\lib\servlet.jar;C:\jakart
a-tomcat-3.2.1\lib\webserver.jar

Starting Tomcat in new window
Cannot find file C:\jdk_1.3.1\bin\java (or one of its components).
Check to ensure the path and filename are correct and that all required
libraries are available.
Any idea to solve this, Ben?



----- Original Message -----
From: Ben Kimball <bk...@home.com>
To: <to...@jakarta.apache.org>
Sent: Monday, July 16, 2001 2:20 AM
Subject: Re: Please Help


> It looks like you have spaces between:
>
> "C: \ jdk1.3.1" should be "C:\jdk1.3.1"
> "C: \ jakarta-tomcat-3.2.1" should be "C:\jakarta-tomcat-3.2.1"
>
> You also need to make sure that c:\jdk1.3.1\bin is in your PATH, otherwise
> java.exe/javac.exe will not be found.
>
> On Sunday 15 July 2001 10:55, you wrote:
> > Actually,I'm a new user to Tomcat and currently having a problem
starting
> > up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC
> > running win98. I have set all the paths required  but I kept on
receiving
> > error message saying "Bad command or file name". These are the things I
> > have set:
> >
> > set JAVA_HOME=C: \ jdk1.3.1
> > set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1
> >
> > Can anyone please help me to solve this problem?
> > TQ
>
> ----------------------------------------
> Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> Content-Transfer-Encoding: 7BIT
> Content-Description:
> ----------------------------------------
>


Re: Please Help

Posted by Ben Kimball <bk...@home.com>.
It looks like you have spaces between:

"C: \ jdk1.3.1" should be "C:\jdk1.3.1"
"C: \ jakarta-tomcat-3.2.1" should be "C:\jakarta-tomcat-3.2.1"

You also need to make sure that c:\jdk1.3.1\bin is in your PATH, otherwise 
java.exe/javac.exe will not be found.

On Sunday 15 July 2001 10:55, you wrote:
> Actually,I'm a new user to Tomcat and currently having a problem starting
> up the Tomcat. I have installed Tomcat 3.2.1 and jdk 1.3.1 on my PC 
> running win98. I have set all the paths required  but I kept on receiving
> error message saying "Bad command or file name". These are the things I
> have set:
>
> set JAVA_HOME=C: \ jdk1.3.1
> set TOMCAT_HOME=C: \ jakarta-tomcat-3.2.1
>
> Can anyone please help me to solve this problem?
> TQ

----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: 7BIT
Content-Description: 
----------------------------------------