This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 152760
Collapse All | Expand All

(-)a/scala.stdplatform/src/org/netbeans/modules/scala/stdplatform/platformdefinition/J2SEPlatformImpl.java (+5 lines)
Lines 48-53 Link Here
48
import java.net.MalformedURLException;
48
import java.net.MalformedURLException;
49
import java.io.File;
49
import java.io.File;
50
50
51
import java.util.logging.Logger;
51
import org.netbeans.api.java.classpath.ClassPath;
52
import org.netbeans.api.java.classpath.ClassPath;
52
import org.netbeans.api.scala.platform.ScalaPlatform;
53
import org.netbeans.api.scala.platform.ScalaPlatform;
53
import org.netbeans.api.scala.platform.Specification;
54
import org.netbeans.api.scala.platform.Specification;
Lines 209-214 Link Here
209
            if (cp != null)
210
            if (cp != null)
210
                return cp;
211
                return cp;
211
            String pathSpec = getSystemProperties().get(SYSPROP_BOOT_CLASSPATH);
212
            String pathSpec = getSystemProperties().get(SYSPROP_BOOT_CLASSPATH);
213
            if (pathSpec == null) {
214
                Logger.getLogger(J2SEPlatformImpl.class.getName()).warning(String.format("No %s property in platform %s, broken platform?", SYSPROP_BOOT_CLASSPATH, getDisplayName())); //NOI18N
215
                pathSpec = "";  //NOI18N
216
            }
212
            String extPathSpec = Util.getExtensions((String)getSystemProperties().get(SYSPROP_JAVA_EXT_PATH));
217
            String extPathSpec = Util.getExtensions((String)getSystemProperties().get(SYSPROP_JAVA_EXT_PATH));
213
            if (extPathSpec != null) {
218
            if (extPathSpec != null) {
214
                pathSpec = pathSpec + File.pathSeparator + extPathSpec;
219
                pathSpec = pathSpec + File.pathSeparator + extPathSpec;
(-)a/scala.stdplatform/src/org/netbeans/modules/scala/stdplatform/platformdefinition/Util.java (+2 lines)
Lines 57-62 Link Here
57
import org.openide.filesystems.FileObject;
57
import org.openide.filesystems.FileObject;
58
import org.openide.modules.SpecificationVersion;
58
import org.openide.modules.SpecificationVersion;
59
import org.openide.util.NbBundle;
59
import org.openide.util.NbBundle;
60
import org.openide.util.Parameters;
60
import org.openide.util.Utilities;
61
import org.openide.util.Utilities;
61
62
62
public class Util {
63
public class Util {
Lines 65-70 Link Here
65
    }
66
    }
66
67
67
    static ClassPath createClassPath(String classpath) {
68
    static ClassPath createClassPath(String classpath) {
69
        Parameters.notNull("classpath", classpath);
68
        StringTokenizer tokenizer = new StringTokenizer(classpath, File.pathSeparator);
70
        StringTokenizer tokenizer = new StringTokenizer(classpath, File.pathSeparator);
69
        List<PathResourceImplementation> list = new ArrayList<PathResourceImplementation>();
71
        List<PathResourceImplementation> list = new ArrayList<PathResourceImplementation>();
70
        while (tokenizer.hasMoreTokens()) {
72
        while (tokenizer.hasMoreTokens()) {

Return to bug 152760