Re: Developing Web Services in JAVA using Apache Soap on a tomcat server

From: Asher Blum (asher-news_at_wildspark.com)
Date: 09/17/04


Date: Fri, 17 Sep 2004 16:45:39 GMT

In article <b23299ee.0409101152.334d4cc7@posting.google.com>, John Cox wrote:
[snip]
> Or, in the Unix Bourne shell (/bin/sh):
>
> CLASSPATH = $CLASSPATH;$SOAP_LIB/soap.jar
> CLASSPATH = $CLASSPATH;$SOAP_LIB/mail.jar
> CLASSPATH = $CLASSPATH;$SOAP_LIB/activation.jar
[snip]

I realize this isn't relevant to your question, but these instructions
are wrong for four reasons:

1. The Bourne Shell does not allow spaces around an equals sign.

2. The Bourne Shell interprets ';' as a control operator that
    terminates the command. If you really wanted a ';', you'd
    need to escape or quote it.

3. The current Linux version of Sun's JVM uses ':' as the CLASSPATH
    separator. (java.io.File.pathSeparatorChar)

4. Merely setting an environment variable in the shell does not make
    it part of the environment of any child processes you may launch,
    such as the JVM. You need to export the variable.

So a fixed version of the command, at least for Linux/Bash is:

export CLASSPATH=$CLASSPATH:$SOAP_LIB/soap.jar:$SOAP_LIB/mail.jar:$SOAP_LIB/activation.jar



Relevant Pages

  • Re: Great SWT Program
    ... These lines are the output of a directory-listing command and are ... With typical Windows tools, one can select a block of ... the editor you don't even have the benefit of whatever autocomplete ...
    (comp.lang.java.programmer)
  • Re: Name change
    ... nearly impossible to uninstall, so I'm a bit wary about giving it a go. ... hard to scrape off the walls if the uninstall or make uninstall command ... when it shuts down - startup's quick (RAM check aside), ...
    (uk.people.support.depression)
  • Re: (some) Old Templars do not die/Long and Speculative
    ... but the leadership was composed entirely of (French) knights.... ... But not inventors. ... in command of the strategy in Outremer. ...
    (soc.history.medieval)
  • Re: Great SWT Program
    ... a line of the display for showing a search command in progress ... search turns up some references to Chinese and vim that makes me ... (repeat command) ...
    (comp.lang.java.programmer)
  • Re: Great SWT Program
    ... It's a search-and-replace command, vistyle. ... No need to remind me that Windows users might ... How many times do you have to be told that a text-mode tool ...
    (comp.lang.java.programmer)

Loading