wood burning stoves*
The moose likes Servlets and the fly likes Windows White Space in CLASSPATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Windows White Space in CLASSPATH" Watch "Windows White Space in CLASSPATH" New topic
Author

Windows White Space in CLASSPATH

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 396
I'm building a servlet app for a company that will run on a machine that already has other applications running, supported by another company. They have a ton of jars defined in the CLASSPATH in common Windows directories like "Program Files". Java chokes.

I've googled around on this and only get two suggestions. 1. Don't include spaces in CLASSPATH paths. 2. Override CLASSPATH in the javac / java command line commands with double-quotes around the classpath details.

Now thing is of course, I'm not invoking the servlet from the command line. I get a 404 error when I try to run the servlet. Is there any work-around that can be done without demanding the other company change their installation directories?


Correlation does not prove causality.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

The servlet container ignores CLASSPATH completely, so that's unlikely to be the source of your problem.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 396
Bear Bibeault wrote:The servlet container ignores CLASSPATH completely, so that's unlikely to be the source of your problem.


OK, you're right. Bad posting. After spending more time with this today, I'm going to try posting again under another title, and include code.
 
Consider Paul's rocket mass heater.
 
subject: Windows White Space in CLASSPATH