| Author |
Exeption in thread "main" java lang.No classDefound error
|
venkatesh Racharla
Greenhorn
Joined: Oct 12, 2007
Posts: 3
|
|
Hello friends I need your help in this regard. Actually I am doing a program which is know the static use, but I am able compile the program however, I am getting runtime error which is "Exeption in thread "main" java lang.No classDefound error: UseStat (wrong name: UseStat)" and long list. and the progrm is: class Usestat { static int a=6,b; static void meth(int x ) { System.out.println("The value of a is:"+a); System.out.println("The value of b is:"+b); System.out.println("The value of b is:"+x); } static { b=a*8; } public static void main(String args[]) { meth(42); } } My question is why I am getting this exception, please explain if anybody know I am unable figerout.
|
 |
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
|
|
|
Capitalization is important in Java. UseStat is not the same as Usestat.
|
"I'm not back." - Bill Harding, Twister
|
 |
 |
|
|
subject: Exeption in thread "main" java lang.No classDefound error
|
|
|