From 3de0e580b840b44f98a8901b35cb1b18bfd4ff0f Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 28 Jan 2013 02:25:31 +0000 Subject: [PATCH] SDK NBI Installer: - Add fix for broken JDK installs from installer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10218 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../helloworld/src/org/mycompany/ConfigurationLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java b/sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java index 8ed320ea7..808c9931c 100644 --- a/sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java +++ b/sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java @@ -190,7 +190,7 @@ public class ConfigurationLogic extends ProductConfigurationLogic { } //normen - JDK install - uses package on OSX if (!SystemUtils.isMacOS()) { - File javaHome = new File(System.getProperty("java.home")); + File javaHome = new File(System.getProperty("java.home")).getParentFile(); File target = new File(installLocation, "jdk"); try { FileUtils.copyFile(javaHome, target, true); //FileUtils is one of the NBI core classes, already imported in ConfigurationLogic.java