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.
I have the Java2 SDK installed at C:\Program Files\JavaSoft\jdk1.3, and NetBeans 3.2 beta build 11 installed at C:\Program Files\netbeans. When I navigate through the explorer to a directory where I have Jaca source code files, all of the file icons appear with a red X on them, and the following items appear in the log: WARNING: "C:\Program Files\netbeans\lib\core.jar cannot be opened WARNING: C:\Program Files\netbeans\lib\ext\jaxp.jar cannot be opened WARNING: C:\Program Files\JavaSoft\jdk1.3\lib\tools.jar" cannot be opened WARNING: "C:\Program Files\JavaSoft\jdk1.3\jre\lib\rt.jar cannot be opened WARNING: C:\Program Files\JavaSoft\jdk1.3\jre\classes cannot be opened WARNING: " cannot be opened org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate package java.lang in classpath or bootclasspath at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll (Enter.java:678) at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter._case (Enter.java:793) at org.netbeans.lib.javac.v8.comp.ParsingEnter$ClazzMemberEnter._case (ParsingEnter.java:364) at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326) at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.memberEnter (Enter.java:759) at org.netbeans.lib.javac.v8.comp.Enter$CompleteEnter.complete (Enter.java:926) at org.netbeans.lib.javac.v8.code.Symbol.complete(Symbol.java:344) at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:636) at org.netbeans.modules.java.gj.ParserEngine.parseObject (ParserEngine.java:137) at org.netbeans.modules.java.gj.JavaParserEngine.process (JavaParserEngine.java:87) at org.netbeans.modules.java.parser.ParseSourceRequest.process (ParseSourceRequest.java:222) at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel (ParsingSupport.java:636) at org.netbeans.modules.java.parser.ParsingSupport$Processor.run (ParsingSupport.java:574) at org.openide.util.Task.run(Task.java:124) at org.openide.util.RequestProcessor$ProcessorThread.run (RequestProcessor.java:567) (This last exception appears once for each file.) This problem is also preventing me from compiling any code. This was not a problem with build 122.
Created attachment 987 [details] IDE log file
This issue was fixed in builds 14 and above. Please be sure to download the extra binaries, there were changes lately.
[Release32-23] It's not possible to compile, if jdk is installed in directory with spaces.
It seems that only the external compiler is broken. The internal compiler still works.
Fixed in dev trunk, pending merge to rel32 Jeff, Internal compiler does not construct any command line, it is given parameters right through the properies you set in Project Settings | Compiler types - the compiler itself is a java bean :-)
Reopening, merging to Release-3.2
Fixed in release-3.2
[release32-29] Verified
(b28) With JDK 1.3.1b21 on Windows 2000 using Canadian English Locale and also on (b29) With JDK 1.3.1b21 on Solaris 8 using Canadian English Locale The exception stack trace is the same for both cases: Fri Apr 13 11:54:55 PDT 2001: java.lang.NullPointerException: null java.lang.NullPointerException at org.openide.compiler.ExternalCompiler$4.getFileName(ExternalCompiler.java:310) at org.openide.compiler.ExternalCompiler.getFileName(ExternalCompiler.java:362) at org.openide.compiler.ExternalCompilerGroup.start(ExternalCompilerGroup.java:228) at org.netbeans.modules.java.JExternalCompilerGroup.start(JExternalCompilerGroup.java:134) [catch] at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.run(CompilationEngineImpl.java:257) Most of the time I can use the "Build All" and "Compile All" menu items, but occasionally I will get this NPE. Following the NPE, every attempt to use these menu items will result in the same NPE.
The NPE is probably not, in fact, caused by spaces in pathname(s) - it was reported as a sideeffect of locally removed file from VCSs (CVS filesystem for example). FastJavac still has problems with spaces, will fix for RC-3
Indeed I did have files in a CVS filesystem which had been "removed" and locally deleted. Since commiting the "removes" to my cvs repository I have not experienced the problems for which I reopened this bug.
Closing as fixed again. The NPE was reported separately as issues #11367 and #11436 respectively.
Merged to 3.2
Target milestone -> 3.2
Resolved for 3.4.x or earlier, no new info since then -> closing.