Setting PATH as used by applications in OS X

0 votes
I've been using Apache Ant to build a project with the 'svnversion' executable to insert a version id into my sources for easy tracking of versions.

I can run this ant file from the CLI and I've set my $PATH in .profile to the path of the svnversion.
Now, when I run the same ant file from inside Eclipse, it does not work. Maybe, the PATH in eclipse is set in a different way than the PATH of shell. So, I can guess this has to be set in a plist somewhere, but I just don't know where. Please help! TIA!
Dec 17, 2018 in Java by Bharani
• 4,660 points
635 views

1 answer to this question.

0 votes

That's correct; it's in the plist file

~/.MacOSX/environment.plist

It contains key-value pairs for any environment variables that might you want to set for the whole login session. Unlike .profile or.cshrc, this file is available to GUI programs. However, you can't use any other programmatic constructs or access other environment variables here, like say, you can't use $HOME. Also, it's no longer supported under OS X 10.8 Mountain Lion.

answered Dec 17, 2018 by nirvana
• 3,130 points

Related Questions In Java

+1 vote
1 answer

how to print this statement in java print(' '*(r-x-1)+'*'*(2*x+1)) ( logic used in python .its perfect) but java wrong output came

In ' '*(r-x-1) and '*'*(2*x+1), you used multiplication ...READ MORE

answered Dec 22, 2019 in Java by Utsab Bandyopadhyay
889 views
0 votes
3 answers

Increment the date in Java by 1-day

import java.time.LocalDate; public class DateIncrementer { static ...READ MORE

answered Aug 1, 2018 in Java by Akrati
• 3,190 points
4,210 views
0 votes
1 answer

How to split Strings by space in Java ?

You can use split() method. str = "Hello ...READ MORE

answered May 16, 2018 in Java by sharth
• 3,370 points
1,307 views
0 votes
1 answer

What is the 'instanceof' operator used for in Java?

It's an operator that returns true if ...READ MORE

answered May 23, 2018 in Java by Rishabh
• 3,620 points
783 views
0 votes
1 answer

Convert Milliseconds to “X mins, x seconds” in Java?

I wrote a function which converts milliseconds ...READ MORE

answered May 30, 2018 in Java by Rishabh
• 3,620 points
2,830 views
0 votes
1 answer

'git' is not recognized as an internal or external command

Add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program ...READ MORE

answered Apr 29, 2022 in Other DevOps Questions by narikkadan
• 63,420 points
4,724 views
0 votes
2 answers

Java Environment Variables

--- To set java path --- There are ...READ MORE

answered Dec 3, 2018 in Java by Sushmita
• 6,910 points
1,171 views
0 votes
1 answer
0 votes
1 answer

3DES encryption/decryption in Java

Hey, its just that Base 64 encoding ...READ MORE

answered Nov 8, 2018 in Java by nirvana
• 3,130 points
10,569 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP