public static String getBootClasspath(IVMInstall install) { StringBuffer buffer = new StringBuffer(); LibraryLocation[] locations = JavaRuntime.getLibraryLocations(install); for (int i = 0; i < locations.length; i++) { buffer.append(locations[i].getSystemLibraryPath().toOSString()); if (i < locations.length - 1) buffer.append(";"); //$NON-NLS-1$ } return buffer.toString(); }
public static String getBootClasspath(IVMInstall install) { StringBuffer buffer = new StringBuffer(); LibraryLocation[] locations = JavaRuntime.getLibraryLocations(install); for (int i = 0; i < locations.length; i++) { buffer.append(locations[i].getSystemLibraryPath().toOSString()); if (i < locations.length - 1) buffer.append(";"); //$NON-NLS-1$ } return buffer.toString(); }
/** * Returns an execution environment description for the given VM. * * @param vm JRE to create an definition for * @return an execution environment description for the given VM * @throws IOException if unable to generate description */ public static String generateEEContents(IVMInstall vm, String eeId) throws IOException { StringBuilder buffer = new StringBuilder(); appendProperty(buffer, ExecutionEnvironmentDescription.JAVA_HOME, vm.getInstallLocation().getCanonicalPath()); StringBuilder paths = new StringBuilder(); LibraryLocation[] libraryLocations = JavaRuntime.getLibraryLocations(vm); for (int i = 0; i < libraryLocations.length; i++) { LibraryLocation lib = libraryLocations[i]; paths.append(lib.getSystemLibraryPath().toOSString()); if (i < (libraryLocations.length - 1)) { paths.append(File.pathSeparatorChar); } } appendProperty(buffer, ExecutionEnvironmentDescription.BOOT_CLASS_PATH, paths.toString()); appendProperty(buffer, ExecutionEnvironmentDescription.CLASS_LIB_LEVEL, eeId); return buffer.toString(); }
LibraryLocation[] locations= null; if (bootClassPath == null) { locations= JavaRuntime.getLibraryLocations(fInstall); bootClassPath= new String[locations.length]; for (int index= 0; index < locations.length; index++)
if (vmInstall != null) { IPath newPath= null; LibraryLocation[] locations= JavaRuntime.getLibraryLocations(vmInstall);
if (vmInstall != null) { IPath newPath= null; LibraryLocation[] locations= JavaRuntime.getLibraryLocations(vmInstall);
/** * Initializes this control based on the settings in the given * vm install and type. * * @param vm vm or <code>null</code> if none * @param type type of vm install */ public void initializeFrom(IVMInstall vm, IVMInstallType type) { fVmInstall = vm; fVmInstallType = type; if (vm != null) { setHomeDirectory(vm.getInstallLocation()); fLibraryContentProvider.setLibraries(JavaRuntime.getLibraryLocations(getVMInstall())); } update(); }
LibraryLocation[] locations= JavaRuntime.getLibraryLocations(vm); boolean exist = true; for (int i = 0; i < locations.length; i++) {
LibraryLocation[] locs = JavaRuntime.getLibraryLocations(fVMInstance); bootCP = new String[locs.length]; for (int i = 0; i < locs.length; i++) {
LibraryLocation[] locs = JavaRuntime.getLibraryLocations(fVMInstance); bootCP = new String[locs.length]; for (int i = 0; i < locs.length; i++) {
boolean overrideJavaDoc = false; if (libs == null) { libs = JavaRuntime.getLibraryLocations(vm); overrideJavaDoc = true;
libraryViewer.setLabelProvider(new LibraryLabelProvider()); libraryViewer.setInput(this); provider.setLibraries(JavaRuntime.getLibraryLocations(fVM));
boolean overrideJavaDoc = false; if (libs == null) { libs = JavaRuntime.getLibraryLocations(vm); overrideJavaDoc = true;