hello friends, I am a begginner to learn java.I am able to compile the program using
executable file by giving " javac helloworld.java " . Its worked fine and created a class file in the same directory. But, when tried to run using the statement " java helloworld " , I am repeatedly getting the following error. Exception in thread "main" java.lang.NoClassDefFoundError: helloworld I think u can understand my problem. Help me to learn java..
Lakshmi, Welcome to JavaRanch! We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. Note that we require display names of the format First Name(s) + SPACE + Last Name. Thanks Pardner! Hope to see you 'round the Ranch! ---- As suggested above, your problem likely stems around the CLASSPATH value. If you use the following command, does the program run? java -classpath . helloworld