### Get Jar Full Filename

To get the full filename (path) of the jar running, make use of JavaAPI method with Inline Java Code (requires the JavaObject library).
`Sub GetJarFileName As String
Dim joFile As JavaObject = Me
Return joFile.RunMethod("getJarFullFileName", Null)
End Sub`
If Java
//Get the full path of the jar filefrom the main class.
//The class beining called is the main class (main.class). Amend if calling from another class.
public static String getJarFullFileName() throws Exception {
String className = main.class.getSimpleName() + ".class";
String path = main.class.getResource(className).toString();
return java.net.URLDecoder.decode(path.substring(path.indexOf("/"), path.lastIndexOf("!")), "UTF-8");
}
End If

Changed: 2018-03-15 11:20, Category: Application, File: T6C159M1162.htm, ID: 1162