it seems 3.5.0 is not working

27 views
Skip to first unread message

Farkas Levente

unread,
Oct 27, 2012, 5:12:08 AM10/27/12
to jna-...@googlegroups.com
hi,
as described here:
http://stackoverflow.com/questions/13096741/jna-capturing-every-window-java-lang-abstractmethoderror
we've got the same exception on both linux and windows. so we currently
can't use 3.5.0 (neither 3.4.0 on windows which is another bug which was
fixed in 3.5.0). it'd be useful to fix it asap since imho it's a
unusable release.
regards.

--
Levente "Si vis pacem para bellum!"

croudet

unread,
Oct 27, 2012, 7:58:15 AM10/27/12
to jna-...@googlegroups.com
I think it's just the platform.jar that is not up to date. Try to pick up any of the demo-<...>.jar in
jna/dist/jnacontrib, they contains the latest platform.jar classes.

Christophe

Daniel Doubrovkine

unread,
Oct 27, 2012, 8:14:34 AM10/27/12
to jna-...@googlegroups.com, Dan Rollo
Looks like the platform.jar in https://github.com/twall/jna/tree/3.5.0/dist is old. It hasn't been updated with the JNA release.

Dan, you missed updating it in the release - can you please check this out?

Thanks,
dB.

Farkas Levente

unread,
Oct 27, 2012, 8:36:43 AM10/27/12
to jna-...@googlegroups.com, Daniel Doubrovkine, Dan Rollo
it's not that simple. i build it on linux myself (while also package for
fedora, rhel etc). it's give the same error in the link.
so it's not the reason (or not the only reason)!

On 10/27/2012 02:14 PM, Daniel Doubrovkine wrote:
> Looks like the platform.jar
> in https://github.com/twall/jna/tree/3.5.0/dist is old. It hasn't been
> updated with the JNA release.
>
> Dan, you missed updating it in the release - can you please check this out?
>
> Thanks,
> dB.
>
> On Sat, Oct 27, 2012 at 7:58 AM, croudet <cro...@gmail.com
> <mailto:cro...@gmail.com>> wrote:
>
> I think it's just the platform.jar that is not up to date. Try to
> pick up any of the demo-<...>.jar in
> jna/dist/jnacontrib, they contains the latest platform.jar classes.
>
> Christophe
>
>
> On Saturday, October 27, 2012 5:12:11 AM UTC-4, Farkas Levente wrote:
>
> hi,
> as described here:
> http://stackoverflow.com/__questions/13096741/jna-__capturing-every-window-java-__lang-abstractmethoderror
> <http://stackoverflow.com/questions/13096741/jna-capturing-every-window-java-lang-abstractmethoderror>
>
> we've got the same exception on both linux and windows. so we
> currently
> can't use 3.5.0 (neither 3.4.0 on windows which is another bug
> which was
> fixed in 3.5.0). it'd be useful to fix it asap since imho it's a
> unusable release.
> regards.
>
> --
> Levente "Si vis pacem para bellum!"
>
>
>
>
> --
>
> dB. | Moscow - Geneva - Seattle - New York
> dblock.org <http://www.dblock.org> - @dblockdotorg
> <http://twitter.com/#!/dblockdotorg>

Farkas Levente

unread,
Oct 27, 2012, 9:17:10 AM10/27/12
to jna-...@googlegroups.com, croudet
i look into it but it's not contain any jar....

Dan Rollo

unread,
Oct 27, 2012, 9:41:13 AM10/27/12
to Farkas Levente, jna-...@googlegroups.com, Daniel Doubrovkine
The 3.5.0 local build I did is long gone. How about I quickly release a
3.5.1?

In case it helps for testing, there are 3.5.1-SNAPSHOT jars available here:
https://maven.java.net/content/groups/public/

Dan

Farkas Levente

unread,
Oct 27, 2012, 10:02:20 AM10/27/12
to jna-...@googlegroups.com, Dan Rollo, Daniel Doubrovkine
i prefer to build it myself (at least the linux version). anyway did you
find the reason and fix it?

anyway i'm not a github guru. is there any way to compare/diff 3.5.0 tag
and the head through the web?

Farkas Levente

unread,
Oct 27, 2012, 10:04:33 AM10/27/12
to jna-...@googlegroups.com, Dan Rollo, Daniel Doubrovkine
On 10/27/2012 03:41 PM, Dan Rollo wrote:
> The 3.5.0 local build I did is long gone. How about I quickly release a
> 3.5.1?
>
> In case it helps for testing, there are 3.5.1-SNAPSHOT jars available here:
> https://maven.java.net/content/groups/public/

anyway i can't find it here:-(

Farkas Levente

unread,
Oct 27, 2012, 10:30:30 AM10/27/12
to jna-...@googlegroups.com, Dan Rollo, Daniel Doubrovkine
On 10/27/2012 04:02 PM, Farkas Levente wrote:
> i prefer to build it myself (at least the linux version). anyway did you
> find the reason and fix it?
>
> anyway i'm not a github guru. is there any way to compare/diff 3.5.0 tag
> and the head through the web?

ok i find the compare view and it seems there is no code difference:-(

Timothy Wall

unread,
Oct 27, 2012, 12:15:10 PM10/27/12
to jna-...@googlegroups.com
I believe the platform.jar in the github repo was not properly updated during the release.

The released version is available from https://maven.java.net/index.html#nexus-search;quick%7Ejna.

Dan Rollo

unread,
Oct 27, 2012, 3:27:25 PM10/27/12
to jna-...@googlegroups.com
Very odd. So we all (myself included) assumed I'd made a stupid user trick, and missed the platform.jar during the 'dist/*' check-in stage.
However, I'm going through the steps (in my fork) to roll a 3.5.1 release, and guess what: after 'ant dist' target completes, platform.jar has not been rebuilt. That's why it didn't get checked in, because it was not yet changed/rebuilt.

For now, I'm just adding a step to the release docs run 'ant clean dist' instead of 'ant dist'. I'm not sure why that jar is not getting rebuilt. I wonder if adding a manifest to platform.jar would help?

Odder still, I'm not sure why the platform.jar was rebuilt during publishing to the maven staging repo...

I have to go assault some squash with knives now, but please feel free to give the release steps a run through, and see if you can shed any light on this.

Dan

Farkas Levente

unread,
Oct 27, 2012, 3:56:21 PM10/27/12
to jna-...@googlegroups.com, Dan Rollo
ok so when i build on linux until 3.4.0:

ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true
-Dnomixedjar.native=true jar contrib-jars javadoc

but no it's no longer build in 3.5.0 so i've to change it to:

ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true
-Dnomixedjar.native=true javadoc jar contrib-jars

and the resulted jar also gives the same error.

On 10/27/2012 09:27 PM, Dan Rollo wrote:
> Very odd. So we all (myself included) assumed I'd made a stupid user
> trick, and missed the platform.jar during the 'dist/*' check-in stage.
> However, I'm going through the steps (in my fork) to roll a 3.5.1
> release, and guess what: after 'ant dist' target completes, platform.jar
> has not been rebuilt. That's why it didn't get checked in, because it
> was not yet changed/rebuilt.
>
> For now, I'm just adding a step to the release docs run 'ant clean dist'
> instead of 'ant dist'. I'm not sure why that jar is not getting rebuilt.
> I wonder if adding a manifest to platform.jar would help?
>
> Odder still, I'm not sure why the platform.jar was rebuilt during
> publishing to the maven staging repo...
>
> I have to go assault some squash with knives now, but please feel free
> to give the release steps a run through, and see if you can shed any
> light on this.
>
> Dan
>
>
> On Saturday, October 27, 2012 12:15:33 PM UTC-4, Timothy Wall wrote:
>
> I believe the platform.jar in the github repo was not properly
> updated during the release.
>
> The released version is available from
> https://maven.java.net/index.html#nexus-search;quick%7Ejna
> <https://maven.java.net/index.html#nexus-search;quick%7Ejna>.
>
> On Oct 27, 2012, at 5:12 AM, Farkas Levente wrote:
>
> > hi,
> > as described here:
> > http://stackoverflow.com/questions/13096741/jna-capturing-every-window-java-lang-abstractmethoderror <http://stackoverflow.com/questions/13096741/jna-capturing-every-window-java-lang-abstractmethoderror>

Timothy Wall

unread,
Oct 27, 2012, 7:33:40 PM10/27/12
to jna-...@googlegroups.com
probably just that the dist/platform.jar target's dependencies aren't set up correctly.

I always do "ant clean dist", so I've never noticed before.
Reply all
Reply to author
Forward
0 new messages