• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Max Maxamillion
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
reply
    Bookmark Topic Watch Topic
  • New Topic