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.

Bug 29206

Summary: FatalError when creating java source file
Product: platform Reporter: Milan Kubec <mkubec>
Component: -- Other --Assignee: rmatous <rmatous>
Status: VERIFIED FIXED    
Severity: blocker CC: jpokorsky
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: Error stack trace

Description Milan Kubec 2002-12-02 13:26:45 UTC
[prj-proto-200212021243] "Fatal Error: Unable to
locate package java.lang in classpath or
bootclasspath" is thrown when user tries to create
new java source file in java project.

Steps:
1) Create new java project
2) Create package under Source node
3) Create new java source file under that package

Exception is thrown and nothing can be created.
Happens only on windows!
Comment 1 Milan Kubec 2002-12-02 13:27:09 UTC
Created attachment 8128 [details]
Error stack trace
Comment 2 Svata Dedic 2002-12-02 13:46:30 UTC
Windows - only bug: FileUtil.fromFile() returns an empty array of
FileObjects for (existing) %JAVA_HOME%\jre\lib\rt.jar

Comment 3 Jan Pokorsky 2002-12-02 14:11:39 UTC
*** Issue 29205 has been marked as a duplicate of this issue. ***
Comment 4 rmatous 2002-12-02 15:01:02 UTC
Fixed in trunk.
/cvs/core/localfs/src/org/netbeans/modules/localfs/HostFileObject.java,v
 <--  HostFileObject.java
new revision: 1.9; previous revision: 1.8
Comment 5 Milan Kubec 2002-12-02 16:30:21 UTC
Verified in prj-proto-200212021603.