Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes It  compiled but  could  not be runned Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "It  compiled but  could  not be runned" Watch "It  compiled but  could  not be runned" New topic
Author

It compiled but could not be runned

Shashank Sharma
Ranch Hand

Joined: Sep 27, 2006
Posts: 91
error:Exception in thread "main" java.lang.NoClassDefFoundError: customer (wrong nam
Customer)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I dont it started when I installed Nod32 intivirus software...............helppp pls my all I am struck with all my progs.Do I have to chnge the enviroment variables
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14280
    
  21

Java is case-sensitive, so "customer" with a lower-case "c" is not the same as "Customer" with a capital "C".

Make sure you type it correctly. If the class name is "Customer", then the filename must be "Customer.java" with a capital C.
[ June 07, 2007: Message edited by: Jesper Young ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: It compiled but could not be runned