Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in setting up Classpath variable in Win ME

 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I execute the batch file that contains all the class path settings, it works fine, but when I check the setting with the 'set' command in a command window I can only see 3/4 of the class path settings that is specified in the batch file.

I wonder why it only sets 3/4 of it. Is there any limitation for a class path variable?

The batch file is given below for your perusal.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get a message saying something like "out of environmental space"? Your classpath is awfully long. You may want to experiment with the command

in config.sys to expand the environmental space. Better yet, reduce your classpath.
[ July 10, 2005: Message edited by: John Smith ]
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

I want to put all the classpath settings in one batch file, hence the file is long.

Actually in the Windows Me, i have set the enviromental space to 4056 rather Auto under the memory tab of the command window.

Let me try your way and i will reply soon.

Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I understand it, each of those statements creates a new environment variable but does NOT recycle the memory the previous instances used. You end up with a lot of wasted space.
Solution - put as much as possible in long single statements.
Bill
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

I tried the way you recommended..using the config.sys. It didn't work.

now I will try to put it in a few long lines.

Hi William,

HOw to recycle the memory used by the previous envirommental variable?

Thanks
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

If the classpath variable is set as follows:



Will the statement set all the jar files to the classpath?

Is it right ?

regds,
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will the statement set all the jar files to the classpath?

Alas, no - classpath has to specifically name each jar file. One of the reasons that Java needs lots of environment memory. Windows 98 is particulary inflexible in this respect.
Here is a typical Java tooldocs discussion of classpath.
Bill
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi William,

I tried putting the classpath variables in a few long lines, but it didn't work.

regards,
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any other means to set the CLASSPATH varible fully in WinMe?

regards,

 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOS used to limit environment variable values to 127 chars. Some MS variables length limits are now set at higher values, but I'm guessing you exceeded the max length for ME.

You might check into the SUBST command.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic