wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 349
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: 60765
    
  65

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: 349
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.
 
wood burning stoves
 
subject: Windows White Space in CLASSPATH
 
Similar Threads
Setting classpath
Classpath setting involving java and javac
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade
Java and Cygwin
urgent help in running examples from hf jsp servlets