aspose file tools*
The moose likes Servlets and the fly likes Please Help----very urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please Help----very urgent" Watch "Please Help----very urgent" New topic
Author

Please Help----very urgent

Aamir Khan
Ranch Hand

Joined: Oct 31, 2000
Posts: 51
My Autoexec.bat file is as follows , I am using windows 95..I am trying very hard but unable to start tomcat , I am getting the message "bad command or file name " .for tomcate I made a directory called tomcat and unzipped it in that directory.Everything was ok before , I downloaded orion server and tried to set the path..now I don't know how I messed up my path.I am using Tomcat 3.1.please help.
Aamir

@echo off
set PATH=C:\WINDOWS;C:\;C:\WINDOWS\COMMAND
path= %path%;C:\JDK1.2.2;C:\JDK1.2.2\BIN
path = %path%;C:\Perl\bin
CLASSPATH=%CLASSPATH%;C:\JDK1.2.2
SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\tomcat
SET PATH=%PATH%; c:\jakarta-tomcat\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.2.2\lib\tools.jar
doskey

[This message has been edited by Aamir Khan (edited November 03, 2000).]
[This message has been edited by Aamir Khan (edited November 03, 2000).]
Aamir Khan
Ranch Hand

Joined: Oct 31, 2000
Posts: 51
Can anyone please give some advice
Thanks in Advance
Aamir
Aamir Khan
Ranch Hand

Joined: Oct 31, 2000
Posts: 51
can any one please help..need it urgently
Aamir
Nitin Dubey
Ranch Hand

Joined: Oct 30, 2000
Posts: 126

Hi,
I don't know what is the actual problem. But you generally get this message when your OS could not locate the .exe or .com file or .bat file in current directory or in the path.
Include tomcat's bin folder in the path
add => path=%path%;c:\tomcat\bin;
in your autoexec.bat
hope this could solve the problem..
bye
nitin
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Amir,
What did you type at the DOS command prompt? We should type 'startup [ENTER]' at the DOS prompt. In other words there will be a 'startup.bat' file in your 'c:\tomcat\bin' dir.
Just do this and see what happens. If the server is started, then this means your path is not set to include the c:\tomcat\bin dir. So include this as nitin said in above post.
regds
maha anna

Aamir Khan
Ranch Hand

Joined: Oct 31, 2000
Posts: 51
My autoexec.bat file is as follows and I am trying to start Tomcat either by double clicking on Startup.bat or by going in the dos window and
C:\Tomcat\jakarta-tomcat\bin>startup.bat
Bad command or file name
Please Help me
Thanks in advance......
@echo off
set PATH=C:\WINDOWS;C:\;C:\WINDOWS\COMMAND
path= %path%;C:\JDK1.2.2;C:\JDK1.2.2\BIN
path = %path%;C:\Perl\bin
CLASSPATH=%CLASSPATH%;C:\JDK1.2.2
SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\TOMCAT
PATH=%PATH%;C:\Tomcat\jakarta-tomcat\bin;.
SET CLASSPATH=%CLASSPATH%;C:\jdk1.2.2\lib\tools.jar
doskey

 
Don't get me started about those stupid light bulbs.
 
subject: Please Help----very urgent