Professional Web Applications Themes

Can't find class java.lang.NoClassDefFoundError. (Wrong class path?) - Sun Solaris

While creating JVM, I am getting the following error: Can't find class java.lang.NoClassDefFoundError. (Wrong class path?) I gave all the required Jar files in the CLASSPATH. Also, I set the LD_LIBRARY_PATH such that, it can pick up libjvm.so available at: /usr/java1.2/jre/lib/sparc/libjava.so All these did not solve the problem at all. How do I proceed ? So far, I spent 15 hours without arriving at any solution. Could you help? Thanks!...

  1. #1

    Default Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)

    While creating JVM, I am getting the following error:
    Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)

    I gave all the required Jar files in the CLASSPATH. Also, I set the
    LD_LIBRARY_PATH such that, it can pick up libjvm.so available at:
    /usr/java1.2/jre/lib/sparc/libjava.so

    All these did not solve the problem at all.

    How do I proceed ? So far, I spent 15 hours without arriving at any
    solution.
    Could you help?

    Thanks!
    qazmlp Guest

  2. #2

    Default Re: Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)

    On 10 Jul 2003 08:48:15 -0700, [email]qazmlp1209rediffmail.com[/email] (qazmlp) wrote:
    > While creating JVM, I am getting the following error:
    > Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
    I assume you mean you are using the Invocation API's to create
    a JVM in your application? Which version for InitArgs are you
    using, 1.1 or 1.2 style? If 1.1, what is the the classpath
    field set to? If you are using 1.2, which property are you
    using to set classpath, -Xbootclasspath? Will need to see the
    args setup and CreateJavaVM() call to really help here.
    > I gave all the required Jar files in the CLASSPATH. Also, I set the
    > LD_LIBRARY_PATH such that, it can pick up libjvm.so available at:
    > /usr/java1.2/jre/lib/sparc/libjava.so
    Based on the error, I guess the classpath is not what it should
    be, inspite of what you say ;-). Let's see the code.

    The LD_LIBRARY_PATH is essential, it won't work properly without
    it. But that's not your problem, the JVM is trying to start so
    you are past this issue (at least temporarily), but it can't find
    some required classes, which means your classpath is bogus somehow.
    > All these did not solve the problem at all.
    >
    > How do I proceed ? So far, I spent 15 hours without arriving at any
    > solution.
    Invocation API problems can be frustrating, the options are
    obscure and tend not to be well doented. Trial and error
    and experience help alot here.

    --Joe
    Joseph Millar Guest

  3. #3

    Default Re: Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)

    On 10 Jul 2003 08:48:15 -0700, [email]qazmlp1209rediffmail.com[/email] (qazmlp)
    wrote or quoted :
    >NoClassDefFoundError
    this is my most dreaded error. It can have a multitude of causes.
    see [url]http://mindprod.com/jgloss/errormessages.html#NOCLASSDEFFOUNDERROR[/url]

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See [url]http://mindprod.com/jgloss/jgloss.html[/url] for The Java Glossary.
    Roedy Green Guest

Similar Threads

  1. ava.lang.NoClassDefFoundError
    By Shigeru@Linkcom in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: August 11th, 04:21 AM
  2. dereference a scalar variable of type class java.lang
    By David in forum Macromedia ColdFusion
    Replies: 0
    Last Post: February 17th, 11:53 PM
  3. Replies: 0
    Last Post: August 8th, 11:18 AM
  4. Replies: 0
    Last Post: August 2nd, 08:07 PM
  5. wrong ELF class: ELFCLASS32
    By Sybrand Bakker in forum Oracle Server
    Replies: 2
    Last Post: January 13th, 11:14 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139