Results 1 to 2 of 2
  1. #1
    sireesha is offline Member
    Join Date
    Nov 2007
    Posts
    50
    Rep Power
    0

    Default problem with final

    sir,i have tried that in both ways but i got a new error.
    like
    Exception in thread "main" java.lang.NoClassDefFoundError: TestConst (wrong name
    : Testconst)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    This error says that you used the wrong spelling of the class name:
    Java Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: TestConst (wrong name
    : Testconst)
    It says you typed it as "TestConst" and that you should type it as "Testconst".
    It is spelled as "Testconst" in your previous post. The compiler doesn't care about case but the jvm, ie, the "java" command/tool, is very picky about it.

Similar Threads

  1. UJO Framework 0.73.final
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-15-2008, 06:53 PM
  2. UJO Framework 0.72.final
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 03-17-2008, 08:28 PM
  3. I have a problem with final
    By sireesha in forum New To Java
    Replies: 1
    Last Post: 11-20-2007, 12:25 AM
  4. PLz i really need help on this final thing
    By jason27131 in forum New To Java
    Replies: 2
    Last Post: 08-03-2007, 02:31 AM
  5. Poi 3.0-final
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-22-2007, 07:05 AM

Posting Permissions

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