Wednesday, 31 October 2018

Eclipse Luna on macOS Mojave - Not working, now working

I've just deployed Eclipse Luna on my Mac, which is running macOS 10.14.1 Mojave: -

tar xvzf /Volumes/DaveHaySSD/Software/Eclipse/eclipse-jee-luna-SR2-macosx-cocoa-x86_64.tar.gz 

...
x eclipse/
x eclipse/artifacts.xml
x eclipse/features/

x eclipse/Eclipse.app/Contents/
x eclipse/Eclipse.app/Contents/Info.plist
x eclipse/Eclipse.app/Contents/MacOS/
x eclipse/Eclipse.app/Contents/MacOS/eclipse
x eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
x eclipse/Eclipse.app/Contents/Resources/
x eclipse/Eclipse.app/Contents/Resources/Eclipse.icns
x eclipse/dropins/
x eclipse/.eclipseproduct
x eclipse/epl-v10.html

...

When I launch it: -

./eclipse 

or: -

./eclipse -data ~/Documents/workspace.odm

it starts up OK but I can't navigate Eclipse using mouse or keyboard: -


I suspected that this MAY be the new Mojave security feature: -


but to no avail.

Thankfully, this was soluble / solvable.

I was starting Eclipse by hand from where I'd extracted it: -

cd /Users/davidhay/eclipse
./eclipse

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.

but didn't see any exceptions.

When I dug into the folder further: -

cd /Users/davidhay/eclipse
ls -al

total 568
drwxr-xr-x@  14 davidhay  staff     448 31 Oct 14:40 .
drwxr-xr-x+  70 davidhay  staff    2240 31 Oct 14:16 ..
-rw-r--r--@   1 davidhay  staff      60 28 Jan  2015 .eclipseproduct
drwxr-xr-x@   3 davidhay  staff      96 19 Feb  2015 Eclipse.app
-rw-r--r--@   1 davidhay  staff  254883 19 Feb  2015 artifacts.xml
drwxr-xr-x@  14 davidhay  staff     448 31 Oct 14:40 configuration
drwxr-xr-x@   2 davidhay  staff      64 19 Feb  2015 dropins
lrwxr-xr-x@   1 davidhay  staff      34 19 Feb  2015 eclipse -> Eclipse.app/Contents/MacOS/eclipse
-rw-r--r--@   1 davidhay  staff   12638 28 Jan  2015 epl-v10.html
drwxr-xr-x@ 163 davidhay  staff    5216 19 Feb  2015 features
-rw-r--r--@   1 davidhay  staff    9013 28 Jan  2015 notice.html
drwxr-xr-x@   4 davidhay  staff     128 19 Feb  2015 p2
drwxr-xr-x@ 845 davidhay  staff   27040 19 Feb  2015 plugins
drwxr-xr-x@   3 davidhay  staff      96 19 Feb  2015 readme

so I tried this: -

cd /Users/davidhay/eclipse/Eclipse.app/Contents/MacOS
./eclipse 

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /Users/davidhay/Documents/workspace.odm/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.1.20150109-1820.xml
org.eclipse.m2e.logback.configuration: Initializing logback

or: -

./eclipse -data ~/Documents/workspace.odm

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /Users/davidhay/Documents/workspace.odm/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.1.20150109-1820.xml
org.eclipse.m2e.logback.configuration: Initializing logback


and all is now working, keyboard and mouse-wise.

Nice :-)

No comments: