Command line too long in Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Workcraft |
Fix Committed
|
Medium
|
Danil Sokolov |
Bug Description
I certain cases Windows cannot run workcraft.bat because some of the lines (set PATH or Java command line) become too long. Apparently Windows has limitations on the length of command line and also on the length of environment variables.
A possible solution to the CLASSPATH problem:
http://
Anyway, eventually a transition to JAR files will solve the problem of too long classpath.
A bigger issue is the PATH variable. A possible solution is to create a map drive to the WORKCRAFT_HOME, thus shortening the path to the backend tools (https:/
:: Set a virtual drive
SUBST W: %WORKCRAFT_HOME%
...
:: Remove avirtual drive
SUBST /D W:
However it is not clear if this command if always allowed and what happens if the drive letter (W:) is already taken..