aspose file tools
The moose likes Java in General and the fly likes Exeption in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Exeption in thread "main" java lang.No classDefound error " Watch "Exeption in thread "main" java lang.No classDefound error " New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Exeption in thread "main" java lang.No classDefound error
 
Similar Threads
Boxing & Overloading with varargs
Run time Error
Exeption in thread "main" java lang.No classDefound error
Comprehensive Example for Exeption handling
abstrct inner classes