Hello all,
[I'd posted this to comp.lang.java.programmer, but a Google search
later showed this might be the appropriate forum.]
When running cmds which set the CLASSPATH on WIN, is there any
upper-limit on the length of the CLASSPATH value string?
From WIN XP, I'm running JIntegra's regjvmcmd as follows,
==============================================================================
regjvmcmd /native /inproc /java2 Foojvm
classpath="C:\Progra~1\AppFolder\lib\First.jar
...<whole-bunch-of-jars>" jvm="c:\program
files\java\j2re1.4.2\bin\client\jvm.dll"
main=com.jintegra.setup.MainClass -Djintegra.jvm=Foojvm
-DJINTEGRA_NATIVE_MODE
==============================================================================
When the CLASSPATH is reasonably short the regjvmcmd works fine, but
when its really long, I dont see the CLASSPATH set for the FooJVM.
Could anyone give me some pointers, please?
Is this related more to Windows?
Thanks,
Prabh
Bill Karwin - 18 May 2004 03:16 GMT
> When running cmds which set the CLASSPATH on WIN, is there any
> upper-limit on the length of the CLASSPATH value string?
Yes, it's 8191 characters by default on Windows XP (and fwiw, 2047
characters by default on Windows 2000).
Further reference and doc on a workaround:
http://support.microsoft.com/?kbid=830473
Bill K.