Saturday, January 10, 2009

How Set ClassPath

Select 'My Computer' --> Right click and select 'Properties'--> select 'Advanced'--> select 'Environment Variables' --> Under 'System variables' select 'New' then -->

Variable Name : JAVA_HOME
Variable Value : C:\Sun\AppServer\jdk\

press 'OK'.
-------------------

Then Under 'System variables' select 'New' then -->

Variable Name : path
Variable Value : C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\jdk\jre\bin;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Java\jakarta-tomcat-5.0.19\common\lib;

press 'OK'.
-----------------

Then Under 'System variables' select 'New' then -->

Variable Name : CLASSPATH
Variable Value : C:\Sun\AppServer\lib\j2ee.jar;C:\Java\jakarta-tomcat-5.0.19\common\lib\servlet-api.jar;

press 'OK'.

------------------

No comments:

Post a Comment