Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pro100sanya

macrumors newbie
Original poster
Jun 30, 2008
2
0
Hello,

i need to get the path to the application.
for example: i run application , and inside this application i need to know the path to this application.

Is there any way to do this?

Application written on Java. but i interested in any ways (include native methods such as apple script) to get that path
 

wrldwzrd89

macrumors G5
Jun 6, 2003
12,110
77
Solon, OH
Have a look here - there's some discussion about this very topic.

That said, if the reason you need the path to the application is because you need a resource inside it (a fairly common thing in Java applications), there's a method of the Class class called getResource() that handles exactly this task.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.