One of our customers (a mac user) has recently reported an issue that appears to stem from somewhere in execution trace of a JDIC/native Desktop call.

The issue we’re having is exactly similar to this thread in the JDIC forum which unfortunately hasn’t been answered.

Our code is doing the following:

try
{
Desktop.open(localFile);
}
catch (Exception e)
{
// some generic exception handling
}

It looks like the JdicInitException is happening on the first call to Desktop.open, but the call actually succeeds and the document is opened. I’ve actually been able to make 6 or 7 calls to Desktop.open() without a problem. However, eventually the application does lockup (without dumping another exception stacktrace).

The stack trace is as follows:

org.jdesktop.jdic.init.JdicInitException: java.lang.UnsatisfiedLinkError: getEnv
at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown Source)
at org.jdesktop.jdic.desktop.internal.ServiceManager.(Unknown Source)
at org.jdesktop.jdic.desktop.Desktop.open(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Anyone else run into a similar issue and have a solution? The client is running JDK 1.4.2_09. Also, does anyone have an OS X binary for JDIC newer than 0.8.6.x ?


Leave a Comment




  • Windows Live Writer isn’t bad Until recently, the bulk of my writing was done on a Mac using Ecto.  I was looking for a suitable publishing tool for Windows and was directed towards ...

  • Pet Peeve: Don’t email my password to me in plain text You know the drill. Signup for some random service on the internet Receive a confirmation email with your account information or Forget a password for some random service ...

  • Eclipise Memory Analyzer (MAT) I must say the Eclipse Memory Analyzer looks pretty slick. There is some pretty good material over on the developers blog. Lastly, there was a talk on it ...

  • Open-source Web-based Code Review Tool: Rietveld Guido van Rossum, of Python fame, has recently released a Django-based application that enables web-based code reviews... Rietveld. It supports any language and currently can hook into Subversion repositories. You ...

  • An implementation of the JVM in Javascript? Caught this over on JavaPosse Google Groups. Essentially, some bright fellows over in Japan have developed a bytecode->javascript compiler. There's a demo floating around that took a Tetris ...