This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Problems runing java prograns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problems runing java prograns" Watch "Problems runing java prograns" New topic

Problems runing java prograns

Brooks MacBevers

Joined: Apr 23, 2006
Posts: 9
When I try to run a java program I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: test/class

I am runing java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing) on Mac OS X.
This is my program:
public class test {

public static void main (String[] args) {


Thanks for any help you can provide.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
More than likely you typed java test.class

Just type java test
Anjana Ravindran
Ranch Hand

Joined: Aug 22, 2005
Posts: 76
Have a look at this question in java beginners faq.

reply if u r still not able to run the java pgms.

How do I run my very first Java program?
Mosey on over to the Java Tutorial
I agree. Here's the link:
subject: Problems runing java prograns
It's not a secret anymore!