Hello Arindam, 

thanx for the help. 
i installed J2SDK1.4.2 but not the rpm version.
well the problem got solved as what was happening is
that i was setting the CLASSPATH in one shell(1) and
compiling in other shell(2). but when i  compiled the
same java file by changing to the directory in
shell(1). then it worked without problem.

but still there is a question, as if above is the case
then it means when we setup a variable in one shell it
doesn't come in effect in global environment and
doesn't show any change in other shells.  but when u
close all the shells and reopen them then it works in
all the shells. why is that and what is the remedy.



Then you have to provide the output of
> something like this
> "env | grep -i CLASSPATH". This should be executed
> as the user you are
> trying to compile the java program as.
> 
> Which java are you using whether the sun jdk or
> something else?


> 
> What did you download the rpm version or something
> else?
> 
> Which distribution of Linux are you using?
> 
> Finally you do have the setenv but since it is a
> "csh" shell built in
> command it will only be invoked after you have
> changed your shell to csh
> from bash. But that is a whole different ball game.
> At the moment your
> friend for exporting variables is "export" which is
> kind off the bash
> equivalent of setenv or try "man bash" and in that
> search for "set" and
> "unset" or you can try "env".
> 
> -- 
> Arindam Dey
> 
> The mind is not a vessel to be 
> filled but a fire to be kindled.
> 
> GPG FPR: B8E3 219E F129 F970 F4A7  BC50 9636 504A
> BEDF 5739
> 
> 
> _______________________________________________
> ilugd mailinglist -- [EMAIL PROTECTED]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at:
> http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[EMAIL PROTECTED]/


=====
" I would like to remeber what I enjoyed in life NOT what I acheived"

Arundeep Singh
M.Tech[Intelligent Systems],
IIIT Allahabad, U.P, India
Ph : 09415262466
www.i-cognition.com

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to