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,560 points
47 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,060 points

Related Questions In Java

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,150 points
750 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,350 points
99 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,540 points
77 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,540 points
948 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,880 points
134 views
0 votes
1 answer
0 votes
1 answer

How do i startup the quantum resistant ledger (QRL) node?

There is an open issue in GitHub ...READ MORE

answered Jul 31, 2018 in Blockchain by Shashank
• 10,350 points
58 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,060 points
2,453 views