Installation in Linux (Ubuntu 14.04)

2,148 views
Skip to first unread message

Pedro Robles

unread,
May 7, 2015, 8:32:30 AM5/7/15
to project...@googlegroups.com
Hi,

I'd like to add a note for installing Lombok in Linux.

I use Eclipse Luna and jdk7u79. My eclipse path is /opt/eclipse so just root user can access it.
That means I had to run sudo java -jar lombok.jar and specify my IDE path manually. No issues. Great.

But... Starting Eclipse didn't pickup lombok features (I didn't see any methods on the outline tab). What's going on?

Well basically lombok.jar was copied witihn root ownership and when I run eclipse my normal user can't read the file.

You might need to check ownership in your eclipse path: ls -l /opt/eclipse
In my case the user:group was 'messagebus users' for every file/folder and 'root users' for lombok.jar

Just execute 'sudo chown messagebus lombok.jar' and lombok will do its magic!

Cheers!

Martin Grajcar

unread,
May 8, 2015, 2:28:10 PM5/8/15
to project...@googlegroups.com
Is really the ownership the problem and not the permissions? I ran into such a problem and the root cause was my very restrictive umask 0077 (see issue 794).

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guilherme Espada

unread,
May 9, 2015, 11:14:31 AM5/9/15
to project...@googlegroups.com
A deeper issue would be: Why are you running eclipse as root?

Martin Grajcar

unread,
May 9, 2015, 9:41:17 PM5/9/15
to project...@googlegroups.com
On Sat, May 9, 2015 at 5:14 PM, Guilherme Espada <porcari...@gmail.com> wrote:
A deeper issue would be: Why are you running eclipse as root?

I am not and most probably neither Pedro is. But we were running sudo java --jar lombok.jar because of the permissions needed for writing /opt/eclipse/eclipse.ini.

Peter Robles

unread,
May 19, 2015, 6:12:00 AM5/19/15
to project...@googlegroups.com
Hi Maaartin

I didn't have the issue with umask
Just modified the ownership not permissions at all, see my ls -l output:
xxxx@xxxx:/opt/eclipse$ ls -l
total 2552
drwxrwsr-x   2 messagebus users    4096 Feb 19 08:30 about_files
-rw-rw-r--   1 messagebus users   19876 Feb  4 23:43 about.html
-rw-rw-r--   1 messagebus users  253955 Feb 19 08:30 artifacts.xml
drwxrwsr-x   4 messagebus users    4096 Feb 19 08:30 configuration
drwxrwsr-x   2 messagebus users    4096 Feb 19 08:30 dropins
-rwxr-xr-x   1 messagebus users   74675 Jan 28 15:16 eclipse
-rw-rw-r--   1 messagebus users     484 May  7 12:39 eclipse.ini
-rw-rw-r--   1 messagebus users   12638 Jan 28 15:08 epl-v10.html
drwxrwsr-x 163 messagebus users   20480 May 14 12:16 features
-rwxr-xr-x   1 messagebus users  140566 Feb  4 23:47 icon.xpm
-rw-r--r--   1 messagebus users 1355970 May  7 12:39 lombok.jar
-rw-rw-r--   1 messagebus users    9013 Jan 28 15:08 notice.html
drwxrwsr-x   4 messagebus users    4096 Feb 19 08:30 p2
drwxrwsr-x  20 messagebus users   81920 May 14 12:16 plugins
drwxrwsr-x   2 messagebus users    4096 Feb 19 08:30 readme

And I don't run eclipse as root
Reply all
Reply to author
Forward
0 new messages