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
56 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

+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 21, 2019 in Java by Utsab Bandyopadhyay
176 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,150 points
949 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
111 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,560 points
96 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,560 points
1,075 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,890 points
157 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,360 points
64 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,838 views