• 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

Windows White Space in CLASSPATH

 
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The servlet container ignores CLASSPATH completely, so that's unlikely to be the source of your problem.
 
Roger F. Gay
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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