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

write a program in javasacript to shake the window

0 Answers  


How do I set password expire time period?

4 Answers  


How do I run a jsp file in linux?

0 Answers  


How do I view a jsp file?

0 Answers  


Explain jsp lifecycle methods?

0 Answers  


What is jsp page?

0 Answers  


Which implicit object is not available in normal jsp pages?

0 Answers  


Explain the difference between servletcontext and pagecontext in jsp?

0 Answers  


What is a jsp and what is it used for?

0 Answers  


Where we use assertion in java programming?

2 Answers  


Explain the various scope values for <jsp:useBean> tag.

0 Answers  


How can I implement a thread-safe jsp page? What are the advantages and disadvantages of using it?

0 Answers  


Categories