dcsimg
i installed java in c drive but after setting the path i am getting noclassdeffounderror
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sandhya_rani
Posted On:   Tuesday, April 4, 2006 12:11 PM


my question is: how do i set classpath and path once i install java in c: drive

Re: i installed java in c drive but after setting the path i am getting noclassdeffounderror

Posted By:   Anonymous  
Posted On:   Wednesday, April 5, 2006 07:25 AM

i'm assuming that your java installed
at c:j2sdk1.4.2_06,So configur it as per your installed directory..





Open your C:autoexec.bat file in edit
mode. by defaulte it is in hide and readonly mode.. so make u it
visible and uncheck the read-only before you start edit it.





Append the following 3 statement....





SET JAVA_HOME = "c:j2sdk1.4.2_06";


SET CLASSPATH =
%JAVA_HOME%lib ools.jar;%JAVA_HOME%libdt.jar


SET PATH = %PATH%;%JAVA_HOMEin%





now you make the autoexec as readonly
and hide mode...








in your are using windows xp, 2000 or
NT, then follow the following steps to confogur your java...





1. On you desktop , Right click on
you MyComputer Icon and select properties


2. Select Advanced>Environment
Variables


3. There your have two boxes, select
New button on Sysetm variable box and give variable name as
"JAVA_HOME" and value is "c:j2sdk1.4.2_06".


4. Select "path" variable
(it must be there in the existing list),and select edit, append "
;%PATH%;%JAVA_HOMEin%; " at value part.





5. Select "New" button and
CLASSPATH as a variable and "
%JAVA_HOME%lib ools.jar;%JAVA_HOME%libdt.jar " as its
value...








thatz it..

Re: i installed java in c drive but after setting the path i am getting noclassdeffounderror

Posted By:   Ramu_G  
Posted On:   Tuesday, April 4, 2006 04:22 PM

create a java_home env. variable ex:java_home=c:jdk1.5
open a cmd widnow
type following cmd
set path=%path%;%java_home%/bin;
then type javac
if u see java options... then ur path is set.
set classpath similarly
set classpath=%classpath%;%java_home%/lib/tools.jar;
set all jars in the lib folder...
About | Sitemap | Contact