Login  Register

Re: Plugin problem on Macs

Posted by Wayne Rasband on Oct 02, 2008; 8:55pm
URL: http://imagej.273.s1.nabble.com/Plugin-problem-on-Macs-tp3694877p3694878.html

> Hi,
> I received the following email from someone using a plugin I wrote.  
> Can
> anyone help me figure out the cause of the problem?
>
> Jon

You can work around this problem by upgrading to the latest daily build
(1.41n), selecting "1.4" as the Target in Edit>Options>Compiler and  
recompiling your plugin using Plugins>Compile and Run. Plugins compiled
with "1.4" as the target work on Java 1.4 and later. Java 1.4 is the
latest version of Java available on older Macs running OS X 10.3.

-wayne

> Working perfectly on Win XP SP2 on a Dell computer but doesn't working
> on Mac PPC.
>
> Here is the two apple machine i use to test the plugin with ImageJ:
>
> Apple G4 2x867 Mhz 1,5Gb Ram OS: Mac os x 10.3.9
> Apple G5 2x2 Ghz 3 Gb Ram OS: Mac os x 10.3.9
>
> On both machines i have the following error message in imageJ:
>
> java.lang.UnsupportedClassVersionError: DStretch_ (Unsupported
> major.minor version 49.0)
>      at java.lang.ClassLoader.defineClass0(Native Method)
>      at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>      at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
>      at ij.io.PluginClassLoader.loadClass(PluginClassLoader.java:246)
>      at ij.io.PluginClassLoader.loadClass(PluginClassLoader.java:209)
>      at ij.IJ.runUserPlugIn(IJ.java:156)
>      at ij.IJ.runPlugIn(IJ.java:124)
>      at ij.Executer.runCommand(Executer.java:104)
>      at ij.Executer.run(Executer.java:58)
>      at java.lang.Thread.run(Thread.java:552)
>
> I have the latest java update downloaded directly from "apple software
> updates"
>
> Do i have the right Mac Os X? Do i need Tiger (10.4) or Leopard (10.5)
> ?
>