aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problems runing java prograns" Watch "Problems runing java prograns" New topic
Author

Problems runing java prograns

Brooks MacBevers
Greenhorn

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) {
System.out.print("test");
}

}

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

Joined: Feb 07, 2005
Posts: 2367
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: http://aspose.com/file-tools
 
subject: Problems runing java prograns