Forums Register Login

Windows White Space in CLASSPATH

+Pie Number of slices to send: Send
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?

+Pie Number of slices to send: Send
The servlet container ignores CLASSPATH completely, so that's unlikely to be the source of your problem.
+Pie Number of slices to send: Send
 

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.
I am mighty! And this is a mighty small ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1604 times.
Similar Threads
Setting classpath
Classpath setting involving java and javac
Java and Cygwin
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade
urgent help in running examples from hf jsp servlets
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:03:06.