Created
May 22, 2019 03:15
-
-
Save tresf/7e642a5e6166b11837056b33e439873e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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