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 160298 - com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Summary: com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find pa...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
: 161613 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-14 21:03 UTC by cb160
Modified: 2009-06-11 05:56 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 89316


Attachments
stacktrace (3.30 KB, text/plain)
2009-03-14 21:04 UTC, cb160
Details
stacktrace (3.30 KB, text/plain)
2009-03-17 12:07 UTC, Karol Harezlak
Details
stacktrace (3.41 KB, text/plain)
2009-03-18 18:21 UTC, sunbiz
Details
stacktrace (3.41 KB, text/plain)
2009-03-24 10:20 UTC, ieising
Details
messages.log from OS X 10.6 with additional details (52.44 KB, text/plain)
2009-03-25 22:22 UTC, theshadow27
Details
stacktrace (3.41 KB, text/plain)
2009-03-31 01:16 UTC, alcmontejo
Details
stacktrace (3.31 KB, text/plain)
2009-03-31 17:30 UTC, spaquet
Details
stacktrace (3.07 KB, text/plain)
2009-03-31 17:31 UTC, spaquet
Details
stacktrace (3.07 KB, text/plain)
2009-03-31 17:32 UTC, spaquet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cb160 2009-03-14 21:03:57 UTC
Build: NetBeans IDE Dev (Build 200903121546)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
GUEST: Opening a closed project

cb160: Just installed nightly



Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 1 cb160 2009-03-14 21:04:05 UTC
Created attachment 78188 [details]
stacktrace
Comment 2 Karol Harezlak 2009-03-17 12:06:55 UTC
Build: NetBeans IDE Dev (Build 200903121546)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments: 
It happens while I was trying to open Java Me project.

Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 3 Karol Harezlak 2009-03-17 12:07:06 UTC
Created attachment 78297 [details]
stacktrace
Comment 4 sunbiz 2009-03-18 18:21:27 UTC
Build: NetBeans IDE Dev (Build 200903170201)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Linux, 2.6.27.19-3.2-pae, i386

User Comments: 
Opened a project which used Java 1.5 on a netbeans installation which did not have Java 1.5 platform. Got the exception after opening the project

Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 5 sunbiz 2009-03-18 18:21:37 UTC
Created attachment 78401 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-03-20 14:39:36 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=89316
Comment 7 ieising 2009-03-24 10:19:55 UTC
Build: NetBeans IDE Dev (Build 200903231401)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows Vista, 6.0, x86

User Comments: 
I opened a project that required some J2ME platforms to be available. While trying to add these platforms (resolving the references), this issue was reported.

Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 8 ieising 2009-03-24 10:20:13 UTC
Created attachment 78721 [details]
stacktrace
Comment 9 fishtoprecords 2009-03-25 19:23:10 UTC
changes priority. Not finding the java compiler is realistically a show stopper. IMHO
Comment 10 theshadow27 2009-03-25 22:22:40 UTC
Created attachment 78862 [details]
messages.log from OS X 10.6 with additional details
Comment 11 Exceptions Reporter 2009-03-26 15:31:38 UTC
This issue has already 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=89316
Comment 12 Dusan Balek 2009-03-27 09:41:46 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/90b450a4a068
Comment 13 Quality Engineering 2009-03-28 20:41:20 UTC
Integrated into 'main-golden', will be available in build *200903281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/90b450a4a068
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #160298: com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath - fixed.
Comment 14 alcmontejo 2009-03-31 01:16:31 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 
While the IDE is on the Scannning project state. I try to execite Exit from File -> Exit menu.

Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 15 alcmontejo 2009-03-31 01:16:41 UTC
Created attachment 79098 [details]
stacktrace
Comment 16 aldobrucale 2009-03-31 16:24:10 UTC
It still happens in build 200903310200
Comment 17 spaquet 2009-03-31 17:30:11 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 18 spaquet 2009-03-31 17:30:17 UTC
Created attachment 79163 [details]
stacktrace
Comment 19 spaquet 2009-03-31 17:31:15 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 20 spaquet 2009-03-31 17:31:24 UTC
Created attachment 79164 [details]
stacktrace
Comment 21 spaquet 2009-03-31 17:32:10 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:158)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:557)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:450)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:427)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:968)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:405)
Comment 22 spaquet 2009-03-31 17:32:15 UTC
Created attachment 79165 [details]
stacktrace
Comment 23 Dusan Balek 2009-04-01 08:47:18 UTC
OOPS - 2nd attempt pushed to jet-main.

http://hg.netbeans.org/jet-main/rev/7636bf973c2d
Comment 24 Rastislav Komara 2009-04-01 08:49:35 UTC
*** Issue 161613 has been marked as a duplicate of this issue. ***
Comment 25 Quality Engineering 2009-04-02 07:34:39 UTC
Integrated into 'main-golden', will be available in build *200904020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7636bf973c2d
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #160298: com.sun.tools.javac.util.MissingPlatformError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath - fixed.