Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Mona Mehta   on Oct 05 In Java Category.

  
Question Answered By: Randall Franklin   on Oct 05

As far as I know there is nothing in the Java API which will give you the exact
name of the binary used to execute your
main class. You could use the System.getProperty("java.home") to get the home
directory for your Java installation but
that is about the extent of what is available.

Perhaps you are talking about the current working directory? This is accessible
with System.getProperty("user.dir").

Share: 

 
 
Didn't find what you were looking for? Find more on Small problem Or get search suggestion and latest updates.


Tagged: