Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

///how to set classpath///  RSS feed

 
chao-long liao
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Report post to moderator
win 2000 professional
My setup is:
SET CLASSPATH=.;
Is that wrong?Whenever I extended the code I wrote,It always compiled error.Somebody please help me.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you want to use classes/libraries which are not found from the current directory, you must add them into the CLASSPATH variable too:
<p>
SET CLASSPATH=%PATH_TO_LIBRARY%<br>
SET CLASSPATH=%CLASSPATH%;\j2ee.jar;C:\ABC\foo.jar;<br>
SET CLASSPATH=%CLASSPATH%;C:\ABC\lib;.<br>
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!