Lombok: Agent is not working with Eclipse Neon

Created on 13 Aug 2016  Â·  18Comments  Â·  Source: projectlombok/lombok

Agent is not working with Eclipse Neon. Please check.
Regards

Configuration

plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms2048m
-Xmx4096m
-javaagent:lombok.jar
parked

Most helpful comment

If you put the full path to lombok.jar it works from direct access:

-javaagent:C:\Users\XXXX\eclipse\java-latest-released\eclipse\lombok.jar

All 18 comments

I've had the same problem.Configuration is as follows:
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:/Users/yunfeng.zhang/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-vmargs -javaagent:lombok.jar

Similar problem here - Eclipse fails to start-up!
It works only when started via the console (eclipsec.exec)

Do you use a shortcut to launch Eclipse? What happens if you launch eclipse.exe instead?

Hi Roel,

Yes. I was using a shortcut. The problem is somehow related to Lombok, because I can use Eclipse from the shortcut without problems when I remove the reference to Lombok from my C:eclipsejee-neoneclipseeclipse.ini file. I have tried debug options in the eclipse.ini files, but no errors were shown. Then, I tried to start with the console eclipsec.exe and Lombok worked fine. So, there is an error somewhere, but causes me no more impact, yet it could be frustrating for some people trying to use Lombok.

Thanks,

Ismael

De: Roel Spilker [mailto:[email protected]]
Enviada em: terça-feira, 30 de agosto de 2016 06:55
Para: rzwitserloot/lombok
Cc: iabmatos; Comment
Assunto: Re: [rzwitserloot/lombok] Agent is not working with Eclipse Neon (#1173)

Do you use a shortcut to launch Eclipse? What happens it you launch eclipse.exe instead?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rzwitserloot/lombok/issues/1173#issuecomment-243390861 , or mute the thread https://github.com/notifications/unsubscribe-auth/ASWgYzuWgVmV2_amusJlN_PZ3o7H_mIsks5qk_4DgaJpZM4Jjul6 . https://github.com/notifications/beacon/ASWgY8LRWcqiUIVr9dLDS0XpxorrVqWcks5qk_4DgaJpZM4Jjul6.gif


Nenhum vírus encontrado nessa mensagem.
Verificado por AVG - www.avg.com
Versão: 2016.0.7752 / Banco de dados de vírus: 4647/12890 - Data de Lançamento: 08/27/16

Anyone find a solution for this? I'm having similar issues

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:Userscmaher52.p2poolpluginsorg.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160>518-1444
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar


Eclipse

Java was started but returned exit code=1
C:Windowssystem32javaw.exe
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar
-jar C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher C:Userscmaher52eclipsejava-neoneclipseeclipse.exe
-name Eclipse
--launcher.library C:Userscmaher52.p2poolpluginsorg.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444eclipse_1617.dll
-startup C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.appendVmargs
-exitdata 233c_60
-product org.eclipse.epp.package.java.product
-vm C:Windowssystem32javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar

-jar C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar

OK

As soon as I remove the lombok plugin from my eclipse.ini, Eclipse launches normally...

Hi Ciarán,

I have been using Lombok and Eclipse Neon without problems just by starting Eclipse via the console (C:eclipsejee-neoneclipseeclipsec.exe).

I hope it helps.

Cheers,

Ismael

De: Ciarán Maher [mailto:[email protected]]
Enviada em: quinta-feira, 15 de setembro de 2016 07:21
Para: rzwitserloot/lombok
Cc: iabmatos; Comment
Assunto: Re: [rzwitserloot/lombok] Agent is not working with Eclipse Neon (#1173)

Anyone find a solution for this? I'm having similar issues
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:Userscmaher52.p2poolpluginsorg.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar

`---------------------------

Eclipse

Java was started but returned exit code=1
C:Windowssystem32javaw.exe
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar
-jar C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher C:Userscmaher52eclipsejava-neoneclipseeclipse.exe
-name Eclipse
--launcher.library C:Userscmaher52.p2poolpluginsorg.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444eclipse_1617.dll
-startup C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.appendVmargs
-exitdata 233c_60
-product org.eclipse.epp.package.java.product
-vm C:Windowssystem32javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx4096m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-javaagent:lombok.jar

-jar C:Userscmaher52eclipsejava-neoneclipseplugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar

OK

`
As soon as I remove the lombok plugin from my eclipse.ini, Eclipse launches normally...

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rzwitserloot/lombok/issues/1173#issuecomment-247291074 , or mute the thread https://github.com/notifications/unsubscribe-auth/ASWgY7u6w843BKk4y7WGsQwQMUKnPeGDks5qqRwDgaJpZM4Jjul6 .Imagem removida pelo remetente.


Nenhum vírus encontrado nessa mensagem.
Verificado por AVG - www.avg.com
Versão: 2016.0.7752 / Banco de dados de vírus: 4649/12992 - Data de Lançamento: 09/11/16

Indeed, thanks for the information!

I am using eclipse neon on macOS and am running into the same problem. By default i always launch eclipse from the terminate using open -n /Applications/Eclipse.app/ so the above step doesn't help at all.

If you put the full path to lombok.jar it works from direct access:

-javaagent:C:\Users\XXXX\eclipse\java-latest-released\eclipse\lombok.jar

Kloen's comment solved this for me

When I put the complete path, it works on Mac Os.
-javaagent:/Applications/Eclipse.app/Contents/Eclipse/lombok.jar

@Kloen pra mim funcionou também
solved this for me too.

@Kloen Thanks a lot, saved my day.

@Kloen That works for me too.

My environment is:
IDE: Version: Neon.3 Release (4.6.3)
OS: Ubuntu 16.4

It works for me when i do this steps below:

1. copy `lombok.jar` to where your eclipse folder where is the `eclipse.ini` ;
2. open `eclipse.ini`,put at end the two lines below with full lombok path and save it:
    -Xbootclasspath/a:/DEV/Tools/IDE/eclipse/jee-neon/lombok.jar
    -javaagent:/DEV/Tools/IDE/eclipse/jee-neon/lombok.jar
3. restart  `eclipse` in command line (when i try run with exist link in launcher it's not work)
4. rebuild your projects

I'm on Windows 7 and I used the Eclipse installer for Neon. When the shortcut was created, the "Start in" folder is empty. Since the path to lombok.jar was not fully qualified, I imagine that the current folder was something other than the folder where the jar file was placed when I attempt to use the shortcut. So, I just set the "Start in" folder and problem solved.

I was also unable to restart Eclipse Neon after installing lombok 1.16.18 when using my Windows 10 Task Bar shortcut. However, deleting and re-pinning the shortcut solves the problem for me

You either need to set the "Start in" directory for your shortcut, or use an absolute path in eclipse.ini.

There is an undocumented installer parameter to force using the absolute path in the ini file.

java -Dlombok.installer.fullpath=true -jar lombok.jar

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lombokissues picture lombokissues  Â·  46Comments

lex-em picture lex-em  Â·  61Comments

rspilker picture rspilker  Â·  98Comments

krzyk picture krzyk  Â·  88Comments

lombokissues picture lombokissues  Â·  39Comments