Skip to content

Instantly share code, notes, and snippets.

@tresf
Created May 22, 2019 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tresf/7e642a5e6166b11837056b33e439873e to your computer and use it in GitHub Desktop.
Save tresf/7e642a5e6166b11837056b33e439873e to your computer and use it in GitHub Desktop.
try {
Class VersionInfo = Class.forName("com.sun.javafx.runtime.VersionInfo");
fxPath = VersionInfo.getProtectionDomain().getCodeSource().getLocation().toString();
} catch(Exception ignore) {}
if (fxPath.contains(DeployUtilities.detectJarPath())) {
System.out.println("#### Bundled with " + Constants.ABOUT_TITLE);
} else {
System.out.println("#### Provided by " + fxPath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment