CLASSPATH is place that you put your  *.java  and  *.class  files.

I don't think that set CLASSPATH in Enviroment Variable is good idea. 
Because Java will find your class in directory that define in CLASSPATH. 
This mean if you put your class to other place (differ current directory 
and CLASSPATH too), Java will not able to see your class.

I think delete CLASSPATH in Enviroment Variable, use -classpath option 
is better

Best Regards

    Sang

Manu? wrote:
>
>
> ---------- Forwarded message ----------
> From: *Manu?* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> Date: Thu, Sep 11, 2008 at 4:02 PM
> Subject: Re: [java programming] CLASSPATH Help or (anyone can help)
> To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> I tried doing the CMD thing...it just says "Environment variable 
> CLASSPATH not defined".
> Here's my Environment variables:
>
> *User Variables:*
>
> Variable=PATH Value=E:\Program Files\Nmap;C:\Program 
> Files\Java\jdk1.6.0_10\bin
>
> Variable=TEMP Value=%USERPROFILE%\Local Settings\Temp
>
> Variable=TMP Value=%USERPROFILE%\Local Settings\Temp
>
> *System Variables:
>
> *Path*=*%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem*
> *
> I don't know if these are what you meant.
> Hope I helped.
>
> I think the Classpath is usually where ur java bin file is stored.
>
> After I stored these environment variables, I don't have to use the 
> "-classpath" thing for compiling or running the code.
>
> Hope I helped.
>
> Thanks and Regards,
> Manu.
>
>
> On Wed, Sep 3, 2008 at 7:16 AM, Stephen Hunter <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     I copied and saved the default CLASSPATH to a txt file, but I
>     accidentally delete it.
>     Does anyone have the default CLASSPATH for Windows?
>
>     If you are reading this and have not done the Java Classpath
>     Section yet, then you can help me... YEAH!
>
>     Simply open for cmd promt and type the following: set CLASSPATH
>
>     Then tell me what is after "CLASSPATH="
>
>
>
>     I would like to set it back to default, even though it probably
>     doesn't need to be set back.
>
>
>     Thanks,
>     Stephen
>
>
>
>
>
> -- 
> This email may contain confidential and privileged proprietary 
> material for the sole use of the intended recipient. Any review, use, 
> or distribution or disclosure by others is strictly prohibited. If you 
> are not the intended recipient, or authorized to receive the 
> information from the recipient, please contact the sender by reply 
> email and delete all copies of this message.
>
>
>
> -- 
> This email may contain confidential and privileged proprietary 
> material for the sole use of the intended recipient. Any review, use, 
> or distribution or disclosure by others is strictly prohibited. If you 
> are not the intended recipient, or authorized to receive the 
> information from the recipient, please contact the sender by reply 
> email and delete all copies of this message.
>
> >


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to