A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
getting error "cannot access java.lang, Unable to find package java.lang in classpath or bootclassp
Joined: Aug 05, 2009
Aug 16, 2009 05:07:59
I was using the NetBeans IDE 6.7, however on open an existing mobility project I get lots of red dots,
on rolling over the dot near the package statement it says
'cannot access java.lang"
Fatal Error:" Unable to find package java.lang in classpath or bootclasspath"
while the other red dots below near other class or Identifier statements say
"cannot find symbol"
I have JDK 1.6.0_14 installed.
I tried the following to correct the errors:
1. Reinstalled JDK 1.6.0_14 .
2. Reinstalled NetBeans 6.7.
3. Uninstalled NetBeans 6.7 and installed NetBeans 6.7.1
However nothing worked.
NetBeans menu Help-> gives the following info:
Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
My Path environment variable is:
C:\Program Files\Microchip\MPLAB C30\bin;C:\MCC18\mpasm;C:\MCC18\bin;C:\Program Files\Microchip\MPLAB C30\bin;C:\Program Files\Java\jdk1.6.0_14\bin
I also searched google but could not find any valid answers.
What should I do?
Interestingly I get these errors only on Mobility projects and that too on opening an existing Mobility project,
New Mobility and J2SE projects dont give me any errors.
Joined: May 13, 2004
Aug 16, 2009 20:39:58
Perhaps the old projects used an older version of jdk. Try to see that in the properties of the project, in the library section if the platform is configured right. Or drop the old platform configuration and use the default one.
I agree. Here's the link:
subject: getting error "cannot access java.lang, Unable to find package java.lang in classpath or bootclassp
ItemListener missing from AWT after blue screen
debug question in netBeans
JAX-WS MTOM is not workink as expected.
Installing JDK in Windows 7
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014