View Full Version : Getting path to the app (using java)

Jun 30, 2008, 08:15 AM

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

Jun 30, 2008, 09:38 AM
Have a look here (http://forum.java.sun.com/thread.jspa?threadID=611734&messageID=3370212) - 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.

Jun 30, 2008, 11:11 AM
thank you very much.

topic closed