- if (vmInstall == null)\r
- vmInstall = JavaRuntime.getDefaultVMInstall();\r
- if (vmInstall != null) {\r
- IVMRunner vmRunner = vmInstall.getVMRunner(mode);\r
- if (vmRunner != null) {\r
- if (classPath == null) {\r
- classPath = deployedSlc.getClasspath();\r
- }\r
-\r
- if (classPath != null) {\r
- VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(\r
- ANT_MAIN, classPath);\r
- vmConfig.setVMArguments(getVmArguments(deployedSlc));\r
- vmConfig.setWorkingDirectory(file.getLocation().toFile()\r
- .getParent());\r
- vmConfig.setProgramArguments(getProgramArguments(\r
- deployedSlc, file, mode));\r
- vmRunner.run(vmConfig, launch, null);\r
- }\r
+ if (deployedSlc == null) {\r
+ String slcRuntimePath = SlcUiLaunchPlugin.getDefault()\r
+ .getPreferenceStore().getString(\r
+ SlcPreferencePage.PREF_SLC_RUNTIME_LOCATION);\r
+ if (slcRuntimePath == null || slcRuntimePath.equals("")) {\r
+ showError("SLC Runtime path is not set. Set it in Windows > Preferences > SLC");\r
+ return;\r