hi GW

thx agian ...for u quick reply .

let me give u some more details ..

java.class.path show same value  in any windows os.

In mean while i have  gone through the this url ...

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html


and here i found this


However, the standard Tomcat 4 startup scripts
($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally
ignore the contents of the CLASSPATH environment variable itself,

then some more question come to mind

1.why linux  show exact value of classpath but windows don't
2.how to get the classpath in windows through servlet

thx..

regards susanta





> What version of windows? I presume you are running NT or 2K
>
> if so
> NT doesn't use autoexec.bat for loading environment variables
> you have to set those variables somewhere else.
>
> if not NT and its not reading from autoexec.bat
> then there is something wrong with your OS
>
> visit
> www.microsoft.com
> and search for setting environment variables
>
>
>
> ----- Original Message -----
> From: "Prashant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 22, 2002 4:45 PM
> Subject: Re: not reading system classpath in windows
>
>
>> Oh yes GW....
>>
>> u r right .... i posted my question in wrong manner ...
>>
>> see  i've set my environment variables in  /etc/profile in linux ... in
>> which i had given CLASSPATH and PATH settings ...
>> the same thing i tried to give in autoexec.bat with CLASSPATH settings ...
>> I assumed that TOMCAT is reading the CLASSPATH settings properly (which r
>> set in profile) and apends {$CATALINA_HOME}\bin\bootstrap.jar to it ....
>>
>> but in windows it doesn't recognise the CLASSPATH set from autoexec.bat
> and
>> just shows CLASSPATH={$CATALINA_HOME}\bin\bootstrap.jar
>>
>> Wht cud be the reason?
>>
>> if i want to hardcode my classpath in windows version which files shall i
>> look into?
>> catalina.bat ??  and how to set anything in that file ...
>>
>> Thanking u ...
>>
>> Prashant
>>
>>
>> GW writes:
>>
>> > Prashant wrote:
>> >
>> > On linux system.getProperty("java.class.path") this shows me following
>> > classpath :
>> >
>> > $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>> >
>> >  however on windows machine it is just showing me :
>> > {$CATALINA_HOME}\bin\bootstrap.jar
>> >
>> > but my question is why it is behaving differently on two different
>> > platforms?
>> > --------------------------------------
>> > If I understand your question correctly its not actually behaving
>> > differently.
>> >
>> > The environment variable "$SYSTEM_CLASSPATH" that is returned with the
> linux
>> > version was created by an administrator/user or someone.
>> >
>> > If you create the same environment variable under windows pointing to
>> > CATALINA_HOME you should get the same result.
>> > check your windows environment variables for "$SYSTEM_CLASSPATH" I'm
> almost
>> > sure it doesn't exist.
>> >
>> >
>> > ----- Original Message -----
>> > From: "Prashant" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Monday, April 22, 2002 3:44 PM
>> > Subject: Re: not reading system classpath in windows
>> >
>> >
>> >> Hi GW...
>> >>
>> >> thankx for that .. i'm testing this right now ...
>> >>
>> >> but my question is why it is behaving differently on two different
>> >> platforms?
>> >>
>> >> on linux it works but on windows why it is not working?
>> >>
>> >> Waiting,
>> >> Prashant
>> >>
>> >> GW writes:
>> >>
>> >> > try
>> >> >
>> >> > String classPath = System.getProperty("java.class.path",".");
>> >> >
>> >> > this should work
>> >> >
>> >> > ----- Original Message -----
>> >> > From: "Prashant" <[EMAIL PROTECTED]>
>> >> > To: <[EMAIL PROTECTED]>
>> >> > Sent: Monday, April 22, 2002 2:29 PM
>> >> > Subject: not reading system classpath in windows
>> >> >
>> >> >
>> >> >> Hello sir.
>> >> >>
>> >> >> I know this is a wrong list to ask this question but still i'm
> posting
>> >> > since
>> >> >> tomcat mailing list hasnot replied yet ... :-(
>> >> >>
>> >> >> I'm testing one web application written in java on linux and windows
>> > both.
>> >> >>
>> >> >> On linux system.getProperty("java.class.path") this shows me
> following
>> >> >> classpath :
>> >> >>
>> >> >>
>> >> >> $SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar
>> >> >>
>> >> >>
>> >> >> however on windows machine it is just showing me :
>> >> >>
>> >> >> {$CATALINA_HOME}\bin\bootstrap.jar
>> >> >>
>> >> >>
>> >> >> I've tried editing the .bat files of tomcat but no success ...
>> >> >>
>> >> >> can some1 please help me out for this .....
>> >> >>
>> >> >> Thankin you,
>> >> >> Prashant
>> >> >>
>> >> >>
>> >> >
>> >
> ___________________________________________________________________________
>> >> >> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the
>> >> > body
>> >> >> of the message "signoff SERVLET-INTEREST".
>> >> >>
>> >> >> Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
>> >> >> Resources:
> http://java.sun.com/products/servlet/external-resources.html
>> >> >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >
> ___________________________________________________________________________
>> >> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the
>> > body
>> >> > of the message "signoff SERVLET-INTEREST".
>> >> >
>> >> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> >> > Resources:
> http://java.sun.com/products/servlet/external-resources.html
>> >> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >> >
>> >>
>> >>
>> >
> ___________________________________________________________________________
>> >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> > body
>> >> of the message "signoff SERVLET-INTEREST".
>> >>
>> >> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> >> Resources: http://java.sun.com/products/servlet/external-resources.html
>> >> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >>
>> >>
>> >>
>> >
>> >
> ___________________________________________________________________________
>> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
>> > of the message "signoff SERVLET-INTEREST".
>> >
>> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> > Resources: http://java.sun.com/products/servlet/external-resources.html
>> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>> >
>>
>>
> ___________________________________________________________________________
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>>
>>
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to