• Topic
  • Discussion
  • UdaWikiWeb.NoClassDefFound(Last) -- Owiki? , 2016-08-19 15:00:36 Edit owiki 2016-08-19 15:00:36

    Error Messages (N)

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #

    NoClassDefFound

    The "NoClassDefFound" errorsarises when OpenLink .jar files do not appear in the CLASSPATH. If you experience "NoClassDefFound" errors, take the following action:

    1. Use Explorer (Windows) or find (Unix) to search your system for the OpenLink .jar files. They are named opljdbc.jar, opljdbc2.jar, megathin.jar, and megathin2.jar.

    2. Record the paths returned by Explorer or find. For example:

    C:\Program Files\OpenLink\jdk1.2\megathin2.jar
    C:\Program Files\OpenLink\jdk1.2\opljbc2.jar
    


    3. Pass the full path to the desired driver in the front of your CLASSPATH. You may set your CLASSPATH using one of the following methods:

    a) Unix users may manually set and export the variable or pass it in a .profile. For example:

    export CLASSPATH=/usr/openlink/jdk1.2/megathin2.jar
    


    b) NT and Windows 2000 users may set the variable with the System utility. The System utility appears in the Control Panel. It has an Environment tab or an Advanced tab with an Environment button. For example:

    CLASSPATH
    C:\Program Files\OpenLink\jdk1.2\megathin2.jar
    


    c) Windows '95/'98 users may set their CLASSPATH in the autoexec.bat file and reboot. For example:

    set CLASSPATH=C:\Program Files\OpenLink\jdk1.2\megathin2.jar
    

    Evidence

    Code Sample
    Classpath


    Referenced by...