My problem is that in order to use the annotations, lombok.jar must be
in the classpath. If it is there, the application will not deploy to
the phone with this error message
The library 'lobmbok.jar' contains native libraries that will not run
on the device.
[2011-12-14 11:14:07 - androidGui] The following libraries were found:
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/darwin/
libjnidispatch.jnilib
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/freebsd-amd64/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/freebsd-i386/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/linux-amd64/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/linux-i386/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/sunos-amd64/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/sunos-sparc/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/sunos-sparcv9/
libjnidispatch.so
[2011-12-14 11:14:07 - androidGui] - com/sun/jna/sunos-x86/
libjnidispatch.so
Thanks for any help
Hartmut
--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-lombo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-lombok?hl=en
Any clue how to do that in eclipse? The jar is not marked in the build path->export list
> Not a clue I'm afraid.
>
> As a work around, you could manually remove the lombok stuff from the output using a standard zip tool. It's an ugly workaround but might get you developing again until someone who uses eclipse replies.
>
> Mat.
>
> On 14 December 2011 11:12, Hartmut <hartmu...@gmail.com> wrote:
> Any clue how to do that in eclipse? The jar is not marked in the build path->export list
I'm not a regular eclipse user myself either, but these instructions I once followed for a different (but I think analogous) project may help:
http://code.google.com/p/androidannotations/wiki/Configuring
HTH, regards.
--
Miguel García López <miguel.ga...@gmail.com>
http://es.linkedin.com/in/garcialopezmiguel
@mglpia
> Thanks for this suggestion, but it does not solve the problem. The
> annotation processing is done all right (I guess), the situation is that
>
> - to use the lombok annotations, lombok.jar must be in the class path,
> - but lombok.jar must not be deployed to the apk
>
> My current work-around is to open lombok.jar and delete the following
> directories in it:
>
> - com
> - lombok/* (=all subdirs of lombok)
> - org
>
> That works, but is of course slightly annoying.
> /Hartmut
>
I can't help you more than it has been said - just for the benefit of
other people who might come to this archived thread with similar problems,
but open to the idea of using different build system, it's worth while to
say that Maven + Android + Lombok work a breeze out of the box.
--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
fabrizio...@tidalwave.it
http://tidalwave.it - http://fabriziogiudici.it
I don't understand where's the problem with Android + Maven + Lombok. As I
previously said, and Reinier said again, if it's properly configured
there's nothing to do and the jar won't become part of the app.
Any files that use JNI. I would very much like this feature.
Matt
Sorry, the JNI files have to go and the rest is ok. I have not built
such jars but am merely reporting what android barks at when I try to
load lombok.jar. I can try and produce a stripped jar shortly...
Matt
>>> > To post to this group, send email to project-lombok@googlegroups.com
>>> > To unsubscribe from this group, send email to
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/project-lombok?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups group for http://projectlombok.org/
>>>
>>> To post to this group, send email to project-lombok@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> For more options, visit this group at
>>> http://groups.google.com/group/project-lombok?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups group for http://projectlombok.org/
>>
>> To post to this group, send email to project-lombok@googlegroups.com
>> To unsubscribe from this group, send email to
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
> Reinier~
>
> I will try this when I get home!
>
> Thanks,
> Matt
... and, for the sake of casual readers, let me recall that (as per the
cited page) with Maven...
.... "You should be able to just follow the normal lombok with maven
instructions."
(you can replace "should be" with "are").
> So... this has been tested? If you use maven to build your android
> projects
> (including maven-eclipse plugin), this 'just works', no changes needed?
Well, I've been using it since two years, no problems at all. But I can't
speak for Eclipse: my stuff works in plain command line mode and with
NetBeans.
Also, is your configuration broken in general (that would mean mvn from the command line runs into the same issue), or is it specifically the eclipse-maven plugin with android (in which case the mvn stuff off the command line would work fine but you run into errors on eclipse).
--Reinier Zwitserloot
On Mon, Mar 19, 2012 at 23:50, Matt Fowles <matt....@gmail.com> wrote:
Reinier~I will try again and report back.MattOn Mon, Mar 19, 2012 at 6:45 PM, Reinier Zwitserloot <rei...@zwitserloot.com> wrote:
That <scope>provided</scope> business is _very_ important.
--Reinier Zwitserloot
> Sounds like eclipse is incapable of understanding what
> <scope>provided</scope> means.
Is this confirmed? It's really annoying, beyond Lombok/Android. For
instance, I was at last convinced that all my open stuff was buildable
with Eclipse too, but it seems I need to warn my Eclipse (potential)
followers.
--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
A jar that is `provided` is NOT included in the compile classpath for eclipse
Moandji, the question is not about whether it's available at compile time, its whether it's available at runtime (it shouldn't be).
--
> Moandji, the question is not about whether it's available at compile
> time, its whether it's available at runtime (it shouldn't be).
The questioned statement is:
A jar that is `provided` is NOT included in the compile classpath for
eclipse
--
--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
To post to this group, send email to project-lombok@googlegroups.com
To unsubscribe from this group, send email to
> Moandji~
>
> The other provided jar for android (android's own runtime). Is supplied
> at
> compile time through a different mechanism to eclipse. That jar is
> supplied through Eclipse's concept of a "library" (I didn't choose the
> name). Interestingly (and thanks for the idea) if I create a user
> library
> for lombok.jar and include that in my project, then the resultant APK
> doesn't include the lombok jar and I don't need the lombok-api.jar in my
> project.
>
> Perhaps, the correct answer for eclipse is to have the lombok.jar
> register
> itself as a Library (similar to JUnit, the builtin JRE, or the android
> runtime) when the installer goes.
So, in the end, if I understand well the Maven integration for Eclipse is
still far to be complete (not referring specifically to Android).