File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Storm Applied this week in the Other Open Source APIs 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: 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:
subject: Problems runing java prograns