aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Can't install Tomcat. MS-DOS .bat file proglem. Please help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Can Watch "Can New topic
Author

Can't install Tomcat. MS-DOS .bat file proglem. Please help.

Max Maxamillion
Greenhorn

Joined: Dec 28, 2002
Posts: 6
I bought the SCWCD Exam Study Kit from Manning. I installed the latest SDK from Sun's Java page. I tried to install Tomcat from the CD, but I can't access C:/autoexec.bat
When I try to run this batch file, it quickly flashes up the console window and says something about "Bad Command or Environment Name...Out of Environment Space...HIBCHK found on 1 line".
Is there any other way I can accomplish this step? What can I do to fix this? I don't know anything about MS-DOS, can someone please help?
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Have you set the JAVA_HOEM environement variable? This MUST point to your JDK installation (eg: c:\j2sdk1.4)
In order to diagnost the problem, run catalina.bat run rather than the TOmcat.bat file. This will prevent a new window from popping up and disapeering, enabling you to see that the exact problem is.
Cheers
Sam


<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
What operating system are you running? If you are running on Win98 or before, there wasn't enough space in the Enviroment to put everything need for Tomcat to install and setup. You need to modify your c:\config.sys, and add a line like:
SHELL=C:\COMMAND.COM /P /E:2048
your terminals will always have 2048 of environment space. Adjust 2048 as needed.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Max Maxamillion
Greenhorn

Joined: Dec 28, 2002
Posts: 6
Have you set the JAVA_HOEM environement variable? This MUST point to your JDK installation (eg: c:\j2sdk1.4)
In order to diagnost the problem, run catalina.bat run rather than the TOmcat.bat file. This will prevent a new window from popping up and disapeering, enabling you to see that the exact problem is.

Thanks, I'll try that. I haven't tried running tomcat.bat yet though. I've only tried running autoexec.bat. Since the Exam Study Kit says to do that, and I got stuck on it, I didn't go any further.
I actually hadn't set up any environmental variables. I downloaded the jdk, but I guess I hadn't fully installed it yet. I had forgot to set classpaths, etc. It's been about 2 years since I've actually worked with Java, and I had forgotten what you had to do. I guess I'll check the installation instructions on Sun's website. I assume they tell you how to set HOME and CLASSPATH variables, and everything else you need to do?
Originally posted by Carl Trusiak:
What operating system are you running? If you are running on Win98 or before, there wasn't enough space in the Enviroment to put everything need for Tomcat to install and setup. You need to modify your c:\config.sys, and add a line like:
SHELL=C:\COMMAND.COM /P /E:2048
your terminals will always have 2048 of environment space. Adjust 2048 as needed.

I'm running 98. Thanks for the info. I know zero about DOS commands, and next to nothing about OSs. So I just put "SHELL=C:\COMMAND.COM /P /E:2048" at the end of config.sys? How do I "adjust 2048"?
I might just see if a friend of mine has Visual J++. I assume you don't have to deal with all this nonsense, and that it's a simple install?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't install Tomcat. MS-DOS .bat file proglem. Please help.