Lombok: Lombok installer cannot find eclipse MARS on Mac OS X 10.10

Created on 15 Jul 2015  Â·  21Comments  Â·  Source: projectlombok/lombok

_Migrated from Google Code (issue 829)_

Most helpful comment

:bust_in_silhouette: [email protected]   :clock8: Jul 08, 2015 at 16:05 UTC

There _is_ a way ... when the installer asks you for the IDE installation, locate the eclipse.ini file. That seems to work. It is not eclipse's executable of course ...

All 21 comments

:bust_in_silhouette: [email protected]   :clock8: Jun 25, 2015 at 18:33 UTC

Please discuss feature requests first on
https://groups.google.com/forum/﹟!forum/project-lombok

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

:bust_in_silhouette: reinierz   :clock8: Jun 29, 2015 at 22:13 UTC

Works just peachy on my mac.

Will be marked as invalid-wontfix without further feedback on July 12th, 2015.

:bust_in_silhouette: [email protected]   :clock8: Jun 29, 2015 at 23:01 UTC

Well, it does NOT work on my mac.

:bust_in_silhouette: [email protected]   :clock8: Jun 29, 2015 at 23:35 UTC

When I try to install lombok, it cannot 'find' eclipse. I think that this may have something to do with the change in folder structure for Eclipse MARS. In Luna, and prior, the Eclipse.app was a sub-directory of the eclipse folder. In Mars this has been inverted. Whatever the reason, lombok won't install on my mac.

:bust_in_silhouette: nachokruss   :clock8: Jul 08, 2015 at 15:20 UTC

+1 installer doesn't work with mars under Mac OSX.

:bust_in_silhouette: [email protected]   :clock8: Jul 08, 2015 at 16:05 UTC

There _is_ a way ... when the installer asks you for the IDE installation, locate the eclipse.ini file. That seems to work. It is not eclipse's executable of course ...

_End of migration_

Agreed, I have this problem as well. When I clicked "Specify location', the file browser would not let me accept the 'Eclipse.app' file, instead it opened as if it was a folder. I had to browse to the eclipse.ini file. I have Eclipse installed in a non-standard location, so I didn't expect lombok to find it, but I did expect it to recognize the package.

+1

I got it to install in eclipse.ini, but eclipse -clean reports:

Error opening zip file or JAR manifest missing : lombok.jar

Error occurred during initialization of VM

...after which it fails to launch.

And the JAR file does appear to have a proper manifest.

I was using lombok 1.12 with Eclipse Mars and had the same problem. I copied the jar manually into /Applications/Eclipse.app/Contents/MacOS as lombok.jar and then Eclipse started fine.

But then, I saw http://stackoverflow.com/a/22332248/27474 and decided to try with the latest lombok (1.16.6) and it worked perfectly with Mars.

Never mind! It is my fault I renamed Eclipse.app, that is the reason it does not find my Mars installation

Launching the installer on my mac only finds installation of Eclipse Luna and Kepler:

schermata 2016-01-21 alle 17 37 52

Googling I've found that in order to have the installer see the installation of Eclipse Mars, you need to navigate to the "eclipse.ini" file in the Eclipse.app/Contents/Eclipse folder.
schermata 2016-01-21 alle 17 38 26

Then the installer would work:
schermata 2016-01-21 alle 17 38 41

Maybe something has changed on the layout of the mac application of eclipse.

It would be nice if in the next version of the installer it is able to recognize also Eclipse Mars installations.

it doesn't work. i can't install it for my eclipse neno.

Finding the .ini file works for me with neon

Hi.
I succeeded adding lombok after selecting eclipse.ini in the lombok installer.
Eclipse, however, cannot start up , saying like below.

[Error Message]
$ ./Contents/MacOS/eclipse -clean
Error occurred during initialization of VM
Could not find agent library instrument on the library path, with error: dlopen(libinstrument.dylib, 1): image not found
$

[My environment]
OS : MacOS EI Caption
Eclipse : Neon.1 Release(4.6.1)

[eclipse.ini]
-vmargs
-Dosgi.requiredJavaVersion=1.8
~~
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:../Eclipse/lombok.jar

NOTE: Definitely lombok.jar exist there.(../Eclipse/lombok.jar)

If you could help me, it would be great.

@gigaSproule Can you elaborate as I am on Mac and using neon, it does not work.

Can you please try the instructions on stackoverflow and report if they work for you?

@bittracer If you run the jar, then click Specify location.... In the file dialogue, find your Eclipse installation (Eclipse.app), go into it, then go into Contents > Eclipse and open eclipse.ini. For example, my ini file is in /Applications/eclipse/jee-neon/Eclipse.app/Contents/Eclipse/eclipse.ini. That should be it.

Neon on Mac should be found automatically from the next release: https://github.com/rzwitserloot/lombok/commit/ad4bd36274d2bfe8dcf74977d921a114739386b1

But currently not if the path contains just jee-neon; changing that to eclipse-jee-neon would help.

It worked in eclipse Luna on Mac OS Sierra.@gigaSproule I although tried the same for Eclipse Neon.2 & it seems no success. I have also given absolute path for lombok.jar yet, it did not worked on Mac. @rspilker Will wait until next release & till then I am good to go with Luna.

Thanks for Quick Response !

I see that you're using the oomph installer. We did encounter some problems with it. So from the next release on, we'll always specify an absolute path.

Was this page helpful?
0 / 5 - 0 ratings