java.lang.classnotfoundexception:Parachat

Please help me...what does this error mean?
[50 byte] By [nswaltera] at [2007-9-28 0:10:03]
# 1

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)

rajeev_guleriaa at 2007-7-7 19:42:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

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

xagapioua at 2007-7-7 19:42:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...