how to set class path in java

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What jsp lifecycle methods can be overridden?

533


How can a thread safe JSP page be implemented?

563


What is session tracking in jsp?

493


What are the implicit objects in jsp?

512


What is jsp translation time?

503






What is a tag file in jsp?

499


Can you override jspinit() method? If yes, in which cases?

504


How can we stop errors on display in a jsp page?

516


What is session object in jsp?

583


What is the standard action?

490


Explain the uses of tag.

531


What is meant by session management?

478


What are jsp implicit objects?

510


What is the difference between jsp and php?

483


Can we call destroy method inside init method?

484