how to set class path in java



how to set class path in java..

Answer / balagangadhar

Go to jdk installation directory and enter into lib folder,
copy the path in the address bar for example: c:/jdk1.5/lib.
On desktop right click my computer icon-> properties ->
click on Advanced tab -> click on Environmental variables ->
click new -> and give variable name as classpath (either
small or caps) and give variable value as c:/jdk1.5/lib; and
click ok
and open command prompt give javac then some lines will be
displayed in command prompt. This is permanent setting of
classpath. For path setting give variable name as path
(either small or caps) and give variable value as
c:/jdk1.5/bin; and click ok

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More JSP Interview Questions

what are the alternate way to use the scriplet in jsp.

1 Answers  


What is difference between page and pagecontext in jsp?

1 Answers  


What are the attributes of page directive?

1 Answers  


What is contextpath in jsp?

1 Answers  


What is context in jsp?

1 Answers  


What is a declaration statement?

1 Answers  


how to set class path in java

1 Answers   TechSoft,


What is the difference between include directive and include action?

1 Answers  


How can I set a cookie and delete a cookie from within a jsp page?

1 Answers  


How do we catch exception and process it using jstl?

1 Answers  


What is session management in jsp?

1 Answers  


What is jsp param?

1 Answers  


Categories