• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Tomcat4 in Win2k Case Sensitive?

 
nan sh
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed tomcat4 in mine Win2k for couple days and everything was fine.
From yesterday I found tomcat4 did work, not even the homepage(http://localhost:8080/index.html), and I tracked back and found it is case sensitive!!
all the tomcat4 folders came from downlaod in upper case and all source are in lower case( like http://localhost:8080/examples/jsp/index.html ), to let thing works, I have to rename those folders to lower case one by one!
Anybody experience that? is this because I toughed some configration unconsciously
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it's case-sensitive. I never downloaded a tomcat distribution that had folder names in caps though.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever you work with Java, ALWAYS be case-sensitive. It can not only save you some puzzlement, but if you ever need to run on a fully case-sensitive platform - for example, management got fed up with Code Red and ordered a switch to BSD - you'll have one less item to convert.
For the same reason, I recommend you always specify filepaths in "Unix" format. Java understands how to accomodate Windows, so there's less editing required there as well. Plus, in program code, the backslash character is an escape character, and I can't begin to count them number of times I've burned myself because of that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic