Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetModuleFileName

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
New to java. How can I GetModuleFileName.

Regards,
 
Maybe if you explain with more detail what you want to do someone can help.

Cheers,
Dian
 
Sorry for being vague. I am porting an application written in Delphi to Java. In it there is a call to GetModuleFileName. This gets the name of the current .exe. So I guess I need the name of the starting class (i.e. the one with the main method) and its location on disk.
 
Well, that's not the usual way to do things in Java. Why do you need that name?

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top