Plugin problem on Macs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin problem on Macs

Jon Harman-3
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


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) ?
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Colin Poczatek
If I'm remembering correctly the newest version of Java you can get for
PPC is 1.4.  There is nothing newer from Sun or Apple.  We ran into
some problems with this when Netbeans added some swing layout classes
from 1.5 into the generated code.

Collin

Quoting Jon Harman <[hidden email]>:

> 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
>
>
> 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) ?




The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Unruh, Jay
In reply to this post by Jon Harman-3
Jon,

I have experienced this problem when I create a jar file with eclipse or the java jar tool on a windows machine and then try to use it on the mac machine.   The only workaround I have found is to recompile the jar on a mac.  Then it can be used on both windows and mac.  I would be very interested to hear a more complete solution to this problem.

Jay Unruh
Stowers Institute for Medical Research

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jon Harman
Sent: Thursday, October 02, 2008 9:08 AM
To: [hidden email]
Subject: Plugin problem on Macs

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


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) ?
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Wayne Rasband
In reply to this post by Jon Harman-3
On Oct 2, 2008, at 10:07 AM, Jon Harman wrote:

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

The Mac user is running Java 1.4.2 and the plugin requires Java 1.5 or
later. The easiest solution is to have the Mac user compile the plugin
using the Plugins>Compile and Run command. Another solution would be to
compile the plugin from the command line using the

     -source 1.4 -target 1.4

javac compiler options. The latest version of Java available on Mac OS
X 10.3 is Java 1.4.2. The latest version available on Mac OS X 10.4
(Tiger ) is Java 1.5. Java 1.6 is only available on Mac OS X 10.5
(Leopard).

-wayne

> Jon
>
>
> 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)
> ?
>
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Vincenzo Della Mea-2
In reply to this post by Jon Harman-3
If I'm not wrong, Mac OsX 10.3 only supports Java 1.4.x ; 10.4 only  
Java 1.5.x .
If compiled with 10.5 even when not using 10.5 features, plugin will  
not run on previous versions.

regards,
Vincenzo

Il giorno 02/ott/08, alle ore 16:07, Jon Harman ha scritto:

> 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
>
>
> 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) ?

* Vincenzo Della Mea
* Medical Informatics, Telemedicine and Ehealth Lab
* University of Udine, Italy
* http://www.dimi.uniud.it/dellamea/ - http://mitel.dimi.uniud.it/  -  http://www.eslide.net
* WHO Italian Collaborating Centre for the Family of International  
Classifications
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Christopher Coulon-2
In reply to this post by Colin Poczatek
> If I'm remembering correctly the newest version of Java you can get for
> PPC is 1.4.  There is nothing newer from Sun or Apple.  We ran into
> some problems with this when Netbeans added some swing layout classes
> from 1.5 into the generated code.

1.5 is available, it¹s 1.6 that you can¹t get for the PPC ‹ it is now
available for the intel-based macs.  Check the Apple website:

http://developer.apple.com/java/download/

       

The GAIA Group
 Global Automated Image Analysis

We help Researchers help themselves!
Find out about Online Tutoring for ImageJ

Christopher Coulon, Ph.D., Founder
http://gaiag.net
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Plugin problem on Macs

Wayne Rasband
In reply to this post by Jon Harman-3
> 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)
> ?
>