• Exception in thread "main" java.lang.NoClassDefFoundError:

    By Benjamin Plummer 1 decade ago

    Another error. Would someone be able to assist?





    C:\GooCalSync>set path=c:\program files\java\jre1.5.0_17\bin;c:\lotus\notes;C:\W

    INDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\LSinfo\;C:

    Program Files\Sybase\Shared\Win32;C:\Program Files\Sybase\SQL Anywhere 7\Win32;C

    :\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft S

    QL Server\80\Tools\Binn\;C:\Program Files\Windows Imaging\;C:\Program Files\Quic

    kTime\QTSystem\;C:\Program Files\ActivIdentity\SecureLogin



    C:\GooCalSync>set classpath=.;c:\program files\java\jre1.5.0_17\lib;c:\goocalsyn

    c\gdata-core-1.0.jar;c:\goocalsync\gdata-client-1.0.jar;c:\goocalsync\gdata-cale

    ndar-2.0.jar;C:\Lotus\Notes\jvm\lib\ext\Notes.jar;C:\goocalsync\goocalsync.jar



    C:\GooCalSync>cd c:\goocalsync



    C:\GooCalSync>java goocalsync.GooCalSync

    Exception in thread "main" java.lang.NoClassDefFoundError: lotus/domino/NotesExc

    eption

        at goocalsync.GooCalSync.main(GooCalSync.java:10)<br/>
    



    C:\GooCalSync>pause

    Press any key to continue . . .

    • Check Notes.jar

      By Muneyuki Ohkawa 1 decade ago

      I guess that your environment is not normal configuration of Lotus Notes thinking notes.ini file is not located in notes program directory.



      GooCalSync needs Notes.jar file and set classpath to include Notes.jar. Normally, it resides in subdirectory under notes program directory (ex.C:\Lotus\Notes\jvm\lib\ext\Notes.jar). But considering your environment, Notes.jar might not exist on this file path.



      Please find Notes.jar and set classpath to include real file path to Notes.jar.



      Any feedback would be appreciated.

      Best regards.