• Unable to launch in Linux

    By mauro marzorati 1 decade ago

    I have modified GooCalSync.bat into the unix shell equivalent but upon launch I am getting some sort of an exception. Can you suggest what may be missing? Thanks,/mauro



    This is what I get on the screen when I try to launch (in debug mode)

    $ ./GooCalSync.sh

    • gcsnotespath=/opt/lotus/notes/
    • export gcsnotespath
    • gcsjvmbinpath=/usr/lib/j2re1.6-ibm/jre/bin/
    • export gcsjvmbinpath
    • gcsjvmlibpath=/usr/lib/j2re1.6-ibm/jre/lib/
    • export gcsjvmlibpath
    • gcspath=/home/mauro1/lotus/notes/GooCalSync/
    • export gcspath
    • path=/opt/lotus/notes/:/usr/lib/j2re1.6-ibm/jre/bin/:
    • export path
    • classpath=.:/usr/lib/j2re1.6-ibm/jre/lib/:/home/mauro1/lotus/notes/GooCalSync//gdata-core-1.0.jar:/home/mauro1/lotus/notes/GooCalSync//gdata-client-1.0.jar:/home/mauro1/lotus/notes/GooCalSync/gdata-calendar-2.0.jar:/opt/lotus/notes/jvm/lib/ext/Notes.jar:/home/mauro1/lotus/notes/GooCalSync//goocalsync.jar
    • export classpath
    • cd/home/mauro1/lotus/notes/GooCalSync/
    • java -cp .:/usr/lib/j2re1.6-ibm/jre/lib/:/home/mauro1/lotus/notes/GooCalSync//gdata-core-1.0.jar:/home/mauro1/lotus/notes/GooCalSync//gdata-client-1.0.jar:/home/mauro1/lotus/notes/GooCalSync/gdata-calendar-2.0.jar:/opt/lotus/notes/jvm/lib/ext/Notes.jar:/home/mauro1/lotus/notes/GooCalSync//goocalsync.jar goocalsync.GooCalSync

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

      at java.lang.J9VMInternals.verifyImpl(Native Method)

      at java.lang.J9VMInternals.verify(J9VMInternals.java:72)

      at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)

      at goocalsync.GooCalSync.main(GooCalSync.java:10)

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

      at java.net.URLClassLoader.findClass(URLClassLoader.java:419)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)

      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:609)

      … 4 more
    • Fixed

      By mauro marzorati 1 decade ago

      Fixed with the following



      .- In GooCalSync.sh added -Djava.library.path=/opt/ibm/lotus/notes parameter to the call to java

      .- In GooCalSync.sh added -cp "${PATH}:${CLASSPATH}" to the call parameter to the call to java



      .- In Linux linked these files together

      libxmlproc.so, libnotes.so, libndgts.so found in/opt/ibm/lotus/notes/ to the location in/usr/lib where they are expected. This appears to be a Notes issue given IBM documentation found on Internet.