add embedding for the JRE

This commit is contained in:
Ben Fry
2013-10-20 10:01:34 -04:00
parent f58a506bec
commit b4752ac66f

View File

@@ -1239,6 +1239,11 @@ public class JavaBuild {
Runtime.getRuntime().exec(new String[] { "chmod", "+x", stubPath });
}
*/
} else if (exportPlatform == PConstants.LINUX) {
Base.copyDirNative(Base.getJavaHome(), new File(destFolder, "java"));
} else if (exportPlatform == PConstants.WINDOWS) {
Base.copyDir(Base.getJavaHome(), new File(destFolder, "java"));
}