Posted by
Joris FA Meys on
Feb 28, 2009; 2:22pm
URL: http://imagej.273.s1.nabble.com/UnsupportedClassVersionError-tp3693514p3693516.html
Dear all,
I've checked again, and on a ImageJ version 1.41 the plugin works. It used
to work on ImageJ 1.36, but after adding the other class, the median filter
doesn't work any more as it should in ImageJ 1.36. Yet, it did before I
added the other class...
Has anybody an idea about how classes can interfere with eachother when
there is no connection through the code what so ever, purely from being in
the same jar file?
I compile everything with compliance to Java 1.5 (lower doesn't work, as
parameterized types are only available as from 1.5).
Kind regards
Joris
On Fri, Feb 27, 2009 at 6:36 PM, joris meys <
[hidden email]> wrote:
> To clarify : When I run it on the other version of ImageJ, the median
> filter does not give the expected results. I use it in my code as :
>
> RankFilters filter = new RankFilters();
> if (radius > 0)filter.rank(ip2, radius, RankFilters.MEDIAN);
>
> On the Eclipse version, it does what it has to do. On the other version, it
> renders the picture almost completely white.
>
> Kind regards
> Joris
>
>
> On Fri, Feb 27, 2009 at 6:34 PM, joris meys <
[hidden email]> wrote:
>
>> Dear all,
>>
>> I have a plugin that worked fine until I added another class to the jar
>> file. That other class is actually another plugin that has to be bundled
>> with mine, but nothing from that class is used in the rest of the code.
>> Actually, I didn't change a thing in the code of my plugin.
>>
>> Yet, this new bundle runs fine within ImageJ in Eclipse, but not anymore
>> with the other ImageJ I have on my computer. And when I run it on another
>> computer, it throws an UnsupportedClassVersionError.
>>
>> As I didn't change anything in the original code, I'm a bit puzzled about
>> how this came about. Anybody has a clue?
>>
>> Kind regards
>> Joris
>>
>
>