Results 1 to 3 of 3

Thread: Does anyone know why i get an error with this code when i run it ??? [resolved]

  1. #1

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    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

    Last edited by zmerlinz; Oct 30th, 2001 at 06:31 AM.

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Exception in thread "main" java.lang.NoClassDefFoundError shop/java
    You must capitalize Shop.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604
    wow i must of been tired last night, sorry for being so stupid, and yeah the program works now

    thanks

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width