This is driving me mad, it will compile ok without any probs, but when i run it i get the following message
here is the code that i am trying to runCode:Exception in thread "main" java.lang.NoClassDefFoundError shop/java
thank you for any help with thisCode:/** 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() + " ."); } }
![]()




Reply With Quote