Results 1 to 2 of 2

Thread: Error

  1. #1
    rummy is offline Member
    Join Date
    Jan 2010
    Posts
    21
    Rep Power
    0

    Default Error

    Hello everybody,
    Can anybody tell why the following error occurs while am trying to run the Client class from Command Prompt.

    ERROR
    -------
    D:\PrintHello\printservice>java Client.class
    Exception in thread "main" java.lang.NoClassDefFoundError: Client/class
    Caused by: java.lang.ClassNotFoundException: Client.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    830
    Rep Power
    6

    Default

    execute the java file like this "java Client"

    For fundamentals go thru Sun site.
    Ramya:cool:

Similar Threads

  1. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  2. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  3. Replies: 3
    Last Post: 01-23-2009, 08:53 AM
  4. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 04:28 PM

Posting Permissions

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