Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Application.getStartupPath

Retrieves the path that the application was run from.

Syntax

public static String getStartupPath()

Return Value

Returns a String object that contains the full path to the executable file that started the application.

Remarks

The path returned by getStartupPath can differ depending on how the application is started. If you start your application within Visual J++, the path returned by getStartupPath will be the location of the WJView.exe or JView.exe files that are used to run your application within Visual J++. If you start your application using an .exe file, this method returns the path to the .exe file.