Results 1 to 4 of 4

Thread: JAR file location for ZDesktop zimlet

  1. #1
    pns
    pns is offline Member
    Join Date
    Jul 2010
    Posts
    13
    Rep Power
    5

    Default JAR file location for ZDesktop zimlet

    Hi folks...

    Can't figure this simple problem out yet and the posts I 've read (incuding the Wiki instructions) do not seem to work, so any help would be much appreciated.

    I am just trying to run the Java JAR example (i.e., the com_zimbra_example_javajar zimlet), but it doesn work, apparently because it can't find the corresponding class file (MyClass.class) using ZDesktop 1.0 over Linux (CentOS 5.5) and the _dev directory.

    The Wiki does not mention anything about ZDesktop for the Development Directory (it only says: "If using the Development Directory, you need to manually copy the JAR file into place and restart your server for the Java classes to become available. The location to copy the JAR file is: {zcs-install-dir}/jetty/webapps/zimlet/WEB-INF/lib", which obviously refers to ZCS, not ZD).

    Putting the JAR file in the zimlet path (i.e., inside .../_dev/com_zimbra_example_javajar/), or in a similar to the recommended ZCS location for ZDesktop (e.g., in {zd-install-dir}/jetty/webapps/service/WEB-INF/lib), does not work.

    Any ideas?

    Thanks!
    Last edited by pns; 07-04-2010 at 02:10 AM.

  2. #2
    drums907 is offline Active Member
    Join Date
    Aug 2009
    Posts
    25
    Rep Power
    6

    Default

    Which version of Zimbra and on What OS are you running it? I have found the instructions leave a little to be desired when you are running on a Windows Platform.

  3. #3
    pns
    pns is offline Member
    Join Date
    Jul 2010
    Posts
    13
    Rep Power
    5

    Default

    I am running Zimbra Desktop 1.0 over Linux (CentOS 5.5), as I just added in the original post. Still trying to figure things out with the JAR!

  4. #4
    pns
    pns is offline Member
    Join Date
    Jul 2010
    Posts
    13
    Rep Power
    5

    Default

    Hmmm... It now works, with the JAR file placed in {zd-install-dir}/jetty/webapps/service/WEB-INF/lib, irrespective of the name of the file (i.e., whatever.jar).

    The trick is to restart the zdesktop daemon, i.e. run

    {zd-install-dir}/zdesktop stop
    {zd-install-dir}/zdesktop start

    because apparently shutting down zdesktop and restarting it does not do that.

    All this under JDK 1.5.0, which is what zdesktop comes bundled with (JRE located in {zd-install-dir}/jre). Which means that you have to compile for 1.5.0, because compiling for 1.6.0 results in a java.lang.UnsupportedClassVersionError (bad version number in .class file).
    Last edited by pns; 07-04-2010 at 03:53 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Replies: 15
    Last Post: 01-14-2010, 05:55 PM
  3. Missing blobs - from id to file location?
    By stateless in forum Administrators
    Replies: 1
    Last Post: 04-23-2007, 06:15 PM
  4. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

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