Hi,
Just type *set* in the command prompt. This will show you all properties
including CLASSPATH, PATH, etc.
Eg.* C:\> set*
This works in Windows only.
To view each property or environmental variable value separately, use :
*echo %CLASSPATH%*
*echo %PATH%*
*echo %JAVA_HOME%*
Thanks,
Nirmal
\\\///
/ \
| \\ // |
( | (.) (.) |)
----------o00o--(_)--o00o-------------------
Stand up,be bold,be strong.
Take the whole responsibility on
ur own shoulders and know that
U are the creator of ur own destiny.
------ooo0-------------------------------------
( ) 0ooo
\ ( ( )
\_) ) /
(_/
On Sun, Jul 5, 2009 at 10:27 PM, JKid314159 <[email protected]> wrote:
>
> Dear Java Programmer:
>
>
> Thank you for your correspondences to me directly. I have set the
> CLASSPATH variable in the Environmental variables under System
> variable. The issue was I tried to check this path using the command
> prompt which did not work.
>
> Question: What is the proper command prompt input to check the
> classpath? And if mine was the correct way, why is the path not being
> shown? Thanks.
>
>
> On Jul 3, 2:52 pm, JKid314 <[email protected]> wrote:
> > Dear Java Programmer:
> >
> > I am reading documentation in the "Packages and Java Classpath"
> > lesson. The instructions say "To display the current CLASSPATH
> > variable, use these commands in Windows. . .
> >
> > In Windows: C:\> set CLASSPATH
> >
> > But I received the following error in my Command Prompt,
> >
> > "Environment variable CLASSPATH not defined."
> >
> > I have been able to compile from the Command Prompt as well as
> > NetBeans IDE. Please comment?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---