Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2004

Tip: Looking for answers? Try searching our database.

Length of CLASSPATH setting ( JIntegra's regjvmcmd)

Thread view: 
Prabh - 18 May 2004 01:28 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.