Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Windows White Space in CLASSPATH

 
Roger F. Gay
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • 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?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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: 408
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic