Hi! I am working with Tomcat for the first time.I have installed Tomcat 3.1.1 version.Have set classpath to c:\tomcat\lib\servlet.jar c:\tomcat\lib\jasper.jar have also set JAVA_HOME=c:\jdk1.3.1 set TOMCAT_HOME=c:\tomcat "I am getting Bad command or file name" could some one help me track the error.... Regards! Preethi.
When you do what? That usually means you are trying to use commands that aren't in your path? Are you trying to start Tomcat? If so, you either need to goto the bin directory or add C:\tomcat\bin to your path.
Sorry to digress a little. Just to say that you should be at least running Tomcat 3.2.3 right now. This is the 'production' quality version but you can get Tomcat 4.XX if you want, which is really for experts who are testing future versions.
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Originally posted by Preethi Suryam: Hi! I am working with Tomcat for the first time.I have installed Tomcat 3.1.1 version.Have set classpath to c:\tomcat\lib\servlet.jar c:\tomcat\lib\jasper.jar
this part isn't necessary... the tomcat.bat file automatically adds the jar files in your c:\tomcat\lib\ directory to your classpath i think... Preethi did you include the "JAVA_HOME"\bin directory to your PATH?
Hi Paul! I have added only JAVA_HOME=c:\jdk1.3.1 to my path.How do i add "JAVA_HOME"\bin to my path.should i add it to my classpath? Regards! Preethi. [This message has been edited by Preethi Suryam (edited September 12, 2001).] [This message has been edited by Preethi Suryam (edited September 12, 2001).]
I had exactly the same problem. Im running Tomcat3.2.3/Win98/Java1.3. 1) I ensured that Java_Home and Tomcat_Home were not set in my autoexec.bat file. 2) Fired up a MS-DOS window and typed: set Java_Home=d:\java2 (this is my java1.3 install directory) 3) In the same MS-DOS window went to my <Tomcat3.2.3 Install dir>\bin and typed startup It works fine. Hope it works for you too. Good luck. Ambrose Tati
Originally posted by Preethi Suryam: Hi Paul! I have added only JAVA_HOME=c:\jdk1.3.1 to my path.How do i add "JAVA_HOME"\bin to my path.should i add it to my classpath?
i thought that it might work but i tried removing my set PATH=C:\jdk1.3\bin from my autoexec.bat and restarted my system but my tomcat still worked fine... like most of you guys here, im also new to tomcat and i've had the same "bad command or file name" problem before. i just cant remember how we were able to fix it. by the way do you have JRE installed? if not, you might want to try adding the tools.jar to your CLASSPATH... hope this works!
Hi Mike! I have removed the call command from startup.bat but things seem to be the same mike.i am getting the same error "Bad command or file name" help me out to work successfully with tomcat. Regards! Preeti
I had the same problem. I discovered that the path was not getting set because of low memory. Open a dos prompt and under properties go to the memory tab and increase the size of 'initial environment' memory. Then run ur .bat file for tomcat. It worked for me, hope this helps u. Shilpa.