/** * Returns the java executable for this VM or <code>null</code> if cannot be found * * @return executable for this VM or <code>null</code> if none */ File getJavaExecutable() { File installLocation = getInstallLocation(); if (installLocation != null) { return StandardVMType.findJavaExecutable(installLocation); } return null; }
/** * Returns the java executable for this VM or <code>null</code> if cannot be found * * @return executable for this VM or <code>null</code> if none */ File getJavaExecutable() { File installLocation = getInstallLocation(); if (installLocation != null) { return StandardVMType.findJavaExecutable(installLocation); } return null; }
@Override public IStatus validateInstallLocation(File javaHome) { IStatus status = null; File javaExecutable = findJavaExecutable(javaHome); if (javaExecutable == null) { status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_Not_a_JDK_Root__Java_executable_was_not_found_1, null); // } else { if (canDetectDefaultSystemLibraries(javaHome, javaExecutable)) { status = new Status(IStatus.OK, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_ok_2, null); } else { status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_Not_a_JDK_root__System_library_was_not_found__1, null); } } return status; }
@Override public IStatus validateInstallLocation(File javaHome) { IStatus status = null; File javaExecutable = findJavaExecutable(javaHome); if (javaExecutable == null) { status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_Not_a_JDK_Root__Java_executable_was_not_found_1, null); // } else { if (canDetectDefaultSystemLibraries(javaHome, javaExecutable)) { status = new Status(IStatus.OK, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_ok_2, null); } else { status = new Status(IStatus.ERROR, LaunchingPlugin.getUniqueIdentifier(), 0, LaunchingMessages.StandardVMType_Not_a_JDK_root__System_library_was_not_found__1, null); } } return status; }
File javaExecutable = findJavaExecutable(javaHome); if (javaExecutable == null) { return null;
File javaExecutable = findJavaExecutable(javaHome); if (javaExecutable == null) { return null;
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
@Override public URL getDefaultJavadocLocation(File installLocation) { File javaExecutable = findJavaExecutable(installLocation); if (javaExecutable != null) { LibraryInfo libInfo = getLibraryInfo(installLocation, javaExecutable); if (libInfo != null) { String version = libInfo.getVersion(); return getDefaultJavadocLocation(version); } } return null; }
File javaExecutable = findJavaExecutable(installLocation); LibraryInfo libInfo; if (javaExecutable == null) {
exe = ((StandardVM)fVMInstance).getJavaExecutable(); } else { exe = StandardVMType.findJavaExecutable(fVMInstance.getInstallLocation());
exe = ((StandardVM)fVMInstance).getJavaExecutable(); } else { exe = StandardVMType.findJavaExecutable(fVMInstance.getInstallLocation());
File javaExecutable = findJavaExecutable(installLocation); LibraryInfo libInfo; if (javaExecutable == null) {