Windows quotes and path separators compatible with Java

Windows sub-paths need to be quoted if they have spaces and the sub-paths should not end with path separators. Either of these issues causes problems for JWSDP-2.0.

Correct example:

C:\Java\jdk1.6.0\bin;%ANT_HOME%\bin;%SystemRoot%\system32;"C:\Program Files\MySQL\MySQL Server 5.0\bin"

Incorrect examples:

Missing quotes around a sub-path which includes spaces

C:\Java\jdk1.6.0\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin

Sub-path quoted, but incorrectly ends in a file separator

C:\Java\jdk1.6.0\bin;"C:\Program Files\MySQL\MySQL Server 5.0\bin\";%ANT_HOME%\bin

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure