Thursday, May 28, 2009

Setting the CLASSPATH System Variable  

0 comments

To display the current CLASSPATH variable, use these commands in Windows and Unix (Bourne shell): 
In Windows: C:\> set CLASSPATH

In Unix: % echo $CLASSPATH

To delete the current contents of the CLASSPATH variable, use these commands: 

In Windows: C:\> set CLASSPATH=
In Unix: % unset CLASSPATH; export CLASSPATH

To set the CLASSPATH variable, use these commands (for example): 

In Windows: C:\> set CLASSPATH=C:\users\george\java\classes
In Unix: % CLASSPATH=/home/george/java/classes; export CLASSPATH

What next?

You can also bookmark this post using your favorite bookmarking service:

Related Posts by Categories



Extension Factory Builder