Does anyone know why i get an error with this code when i run it ??? [resolved]
This is driving me mad, it will compile ok without any probs, but when i run it i get the following message
Code:
Exception in thread "main" java.lang.NoClassDefFoundError shop/java
here is the code that i am trying to run
Code:
/** this is the main program to be run and it is called Shop
*/
import Supplier;
//import Product;
public class Shop {
public static void main(String args[])
{
Supplier Supplier1 = new Supplier ("Bobbies Suppliers", "\n 6 Oak Street, Aberystwyth", 123654, 123655);
System.out.println ("This is the Shop Demo"+"\n\nit will show what supplier supplies what product");
System.out.println ("The name of the first supplier is " + Supplier1.getTheName() + " .");
}
}
thank you for any help with this
:)