aspose file tools*
The moose likes Java in General and the fly likes Problem in setting up Classpath variable in Win ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem in setting up Classpath variable in Win ME" Watch "Problem in setting up Classpath variable in Win ME" New topic
Author

Problem in setting up Classpath variable in Win ME

Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
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.


Best regards,<br /> <br />vanchin
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
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

Joined: Feb 24, 2004
Posts: 107
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

Joined: Mar 22, 2000
Posts: 12788
    
    5
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

Joined: Feb 24, 2004
Posts: 107
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

Joined: Feb 24, 2004
Posts: 107
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

Joined: Mar 22, 2000
Posts: 12788
    
    5
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

Joined: Feb 24, 2004
Posts: 107
hi William,

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

regards,
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
Hi,

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

regards,

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in setting up Classpath variable in Win ME