hello
Well the error u specified is a run time Exception in java.This error
occured coz of two reason:
1>when u run ur java program after compilation,during this if u are running ur java program and u are not specifing the same class name where u had declared ur main method(i.e public static void main(String a[])).
e.g suppose i had made a java program
class abc{
all code here;
}
class abc1{
all code;
public static void main(String a[]){
}
}
now suppose i save this file as abc.java then for compilation i write javac abc.java .The program will compile.But to run the program if i had writtenjava abc then i got the same Exception as mentiond by u.coz for running ,JDK check that class where u had written ur main method,so in my case i had my main method in abc1 class.so i will type java abc1 to run my program.
2>Second u got this Exception if ur classpath is not set.so for that just give the classpath in DOS prompt as
set classpth=c:\jdk2.0\lib\classes.zip.
In my case i had installed my jdk in c: drive of version 2.0
Now i hope u understand .Best of luck
RAJEEV GULERIA(INDIA)
does anything change when i get the same error (classnotfoundexception)
during running of my applet?
i mean what do i have to do if my applet at runtime throws such an error?
specifically it throws about PKCS8EncodedKeySpec.class but i think this doesnt matter.
Yours
Andy