Eclipse does not recognize environment variables

Eclipse completely ignores all my environment variables, for example, it modifies my path variable:

Eclipse:
ANDROID_NDK=
PATH=[/usr/bin:/bin:/usr/sbin:/sbin]

Shell:
ANDROID_NDK=/Users/myname/SDKs/AndroidSDK/NDK/android-ndk-r7c
PATH=/Users/myname/local/node/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/myname/SDKs/andoird-sdks/tools:/Users/myname/SDKs/andoird-sdks/platform-tools:/Users/myname/SDKs/AndroidSDK/tools:/Users/myname/SDKs/AndroidSDK/platform-tools:/Users/myname/SDKs/AndroidSDK/NDK/android-ndk-r7c


I tried putting environment variables from .bash_profile into .profile, but no luck. Where do eclipses get environmental variables? How can i install?

+3
source share
2 answers

To make an environment variable visible in a graphical application, you need to put it in /etc/launchd.conf. Enter terminal:

sudo nano /etc/launchd.conf

Then add the variables to launchd.conf:

setenv VARIABLE_NAME variable_value

Press Ctrl + O , Enter , Ctrl + X , then reboot.

+2
source

. , . , ...

Juno (4.2) Eclipse ( 3.x)... stackoverflow 2

  • Eclipse - Eclipse bash shell/command line ( .

  • , -, Eclipse Kepler (4.3): Kepler (4.3), OP.

, OS X, , ,

OS X QuickSilver . .sh ~/Applications/, QuickSilver ( , Spotlight).

  • eclipse.sh , .app ". ADT Bundle, .app( , " " Eclipse).

My originally-posted line

/Users/mike/DevInstalls/adt-bundle-mac-x86_64-20140702/eclipse/Eclipse.app/Contents/MacOS/eclipse

works until I try to open the properties panels in Project Properties.  The panels won't open, so I tried the following change to fix it

/Users/mike/DevInstalls/adt-bundle-mac-x86_64-20140702/eclipse/Eclipse.app/Contents/MacOS/eclipse &

but this won't work when launched from Quicksilver.

Either way, launching gracefully via QuickSilver has nothing to do with the OP, so I'm going to stop pulling my hair out over it. :-/

END EDIT

Then, back at the command line run "sudo chmod 755 ./eclipse.sh" to set the permission properly so it can be executed.

2.. QuickSilver, . QuickSilver , , ..., "" , "", , "" Folder Scanner, , ​​ script, "i", - , " " " ".

2. , Quicksilver "", "Bash" ". , QuickSilver .

0

All Articles