• [SOLVED]Exception in thread "main" java.lang.NoClassDefFoundError

    By Stephane Knockaert 1 decade ago

    Hello,



    I have test your's DB but it don't work.





    C:\GooCalSync>java goocalsync.GooCalSync

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

    eption

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

    Caused by: java.lang.ClassNotFoundException: lotus.domino.NotesException

        at java.net.URLClassLoader$1.run(Unknown Source)<br/>
        at java.security.AccessController.doPrivileged(Native Method)<br/>
        at java.net.URLClassLoader.findClass(Unknown Source)<br/>
        at java.lang.ClassLoader.loadClass(Unknown Source)<br/>
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)<br/>
        at java.lang.ClassLoader.loadClass(Unknown Source)<br/>
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)<br/>
        ... 1 more<br/>
    



    C:\GooCalSync>pause

    Appuyez sur une touche pour continuer…



    Hope you can help me.

    • Thank you for testing.

      By Muneyuki Ohkawa 1 decade ago

      It seems that classpath in goocalsync.bat might be wrong.

      Please check classpath. Especially as to Notes.jar.

      If you install Lotus Notes to C:\Lotus\Notes, then "C:\Lotus\Notes\jvm\lib\ext\Notes.jar" should be specified in classpath.



      And one thing, do you execute GooCalSync from goocalsync.bat ?

      Executing directly like ">java goocalsync.GooCalSync" don't set classpath for GooCalSync . So it might be fail as same you encountered.



      Please check classpath value in goocalsync.bat and execute goocalsync.bat.

      Any feedback would be appreciated.

      Thanks.

      • Thanks but...

        By Stephane Knockaert 1 decade ago

        in fact the problem was the path of notes.jar .



        But now i have another exception And i have no activity in the GooCalSync.nsf and in my agenda.



        Exception in thread "main" java.lang.NullPointerException

            at goocalsync.Log.save(Log.java:99)<br/>
            at goocalsync.Log.log(Log.java:85)<br/>
            at goocalsync.Log.info(Log.java:70)<br/>
            at goocalsync.GooCalSync.main(GooCalSync.java:10)<br/>
        



        C:\Test\GooCalSync>

        • use "Overwrite" on Log Mode setting.

          By Muneyuki Ohkawa 1 decade ago

          Thank you for your trying again.



          I figured out that this is a bug which rises when you set log mode as "Append" and run GooCalSync at the first time. I fixed this bug and will include it next release. As a circumvention, use "Overwrite" on Log Mode setting. It must be working.