File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat/JSP will not run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat/JSP will not run" Watch "Tomcat/JSP will not run" New topic
Author

Tomcat/JSP will not run

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have been trying to get JSPs to run using Tomcat, but get the
following error displayed after entering http://127.0.0.1:8080/examples/jsp/cats.jsp
The page cannot be displayed web site experiencing technical
difficulty or may need to adjust browser setting.
The following indicates how I set things up on my pc.
I installed Tomcat under the following dir
TomCatDir\jakarta-tomcat.
I copied jsp files into dir:-
jakarta-tomcat\webapps\examples\jsp
I copied class files into dir:-
jakarta-tomcat\webapps\examples\web-inf\classes
I copied gif and jpeg files into dir:-
jakarta-tomcat\webapps\examples\jsp\images
I then attempted to kick of tomcat in dir
TomCatDir\jakarta-tomcat\bin using the command tomcat start.
The following messages appeared:-
out of environmental space
Thanks for any help.
starting tomcat in new window
using classpath: .;C:\jdk1.3\lib\tools.jar

J Maruti
Ranch Hand

Joined: Feb 01, 2000
Posts: 36
On Win 95 and Win 98, you have to change an environment variable. The
problem is often caused by the long classpath variables commonly used in
java programs. Add the following line to your CONFIG.SYS file and then
reboot your machine:
SHELL=c:\command.com c:\ /e:2048 /p
BTW, the /e:2048 indicates the number of bytes to allocate for
environment space. If 2048 isn't enough, try /e:4096 or even higher.
This should fix your problem of Out of environmental space


J Maruti
shilpa kulkarni
Ranch Hand

Joined: Jun 07, 2000
Posts: 87

u can also increase the environment space from the dos prompt.
when u open the window (dos prompt), click on the ms-dos icon on the top-left corner of the window and select properties from the menu.
select the memory tab and change the environment space in the 'Initial Environment' drop-down box.
now go to ur tomcat bin folder and start tomcat.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat/JSP will not run