Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help----very urgent

 
Aamir Khan
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please give some advice
Thanks in Advance
Aamir
 
Aamir Khan
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one please help..need it urgently
Aamir
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic