Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6972369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:57:32+00:00 2026-05-27T16:57:32+00:00

This is driving me crazy: In Netbeans (6.9.1 on a 64bit Windows 7) with

  • 0

This is driving me crazy:

In Netbeans (6.9.1 on a 64bit Windows 7) with JDK 6 correctly installed, the Editor shows this Error at package my.package.name:

cannot access java.lang
Fatal Error: Unable to find package java.lang in classpath or bootclasspath

The Project compiles just fine, it is just the Editor messing up. Other projects in the same IDE work just fine. Other types of Projects (the errornous is a J2SE Project) work fine.

I tried to Google this, but there are always solutions about that the JDK was not installed right or links to it were corrupt in the project files. This is not the case here. I double and tripple checked the JDK installation: it is ok. Other projects do not show that behaviour in the very same IDE and are using the same JDK.

I diff’ed the project files against correct working project files and could not see any major differences except from those that are expected to be there.

I tried to delete the project and make a new one with existing sources. This works at first glance but once I close the IDE and open it again the same failure will show up.

I tried to revert from SVN to an older version of the project files before this happened: no chance.

In all files of that project I have that error and of course a lot of “cannot find symbol”, which prevents also autocomplete and everything.

Does anyone know why this happens and how I can make it stop? It is really more than annoying and I cannot just switch to Eclipse (not my decision).

Any attempt to help will be highly appreciated!

P.S.: Edith just reminded me to tell you that I did not try to reinstall Netbeans since I read in one of the articles I found through Google that it will not help.

Update
This is from netbeans.conf:

netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_27"

And it is the only JDK I have so this should be perfectly correct.

Update 2
Loads of Plugins: Ada, Android, Ant, Bundeled Subversion Client for Windows, C/C++, Database, EJB and EAR, GUI Builder, Hibernate, Hudson, IDE Branding, Identity Management, IDE Platform, Java, Java -Debugger, -Persistence, -Profiler, -Web Applications, JSF, Local History, Maven, Mercurial, Mobility, Netbeans Plugin Development, RCP Platform, RESTful Web Services, soupUI WebService Testing, SOAP Web Services, SOftware as a Service, Spellchecker, – English DIctionaries, Spring Beans, Spring Web MVC, Struts, Subversion, Team.

Update 3
Checked rt.jar: It is on the bootclasspath,
build.properties has

platforms.JDK_1.6.bootclasspath=....${platforms.JDK_1.6.home}\\jre\\lib\\rt.jar;...

Reinstalling Netbeans did not change anything.
@JRL : No commandline switches are used.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:57:33+00:00Added an answer on May 27, 2026 at 4:57 pm

    Ok, I do not know why it worked, but it worked:

    1. I closed Netbeans
    2. I navigated to “C:\Users\MyUser.netbeans\6.9\var”
    3. I renamed the folder “cache”
    4. Restarted Netbeans
    5. Profit?

    Somehow this folder was still present after reinstallation. Got that tip from a colleague. He neither knows the exact reason why this behaviour pops up nor why it goes away when you force Netbeans to recreate “cache”. But it works.

    Thanks a lot to all of you for trying to help me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me crazy, what is the reason this doesn't work? var name
This is driving me crazy. Ever since I installed ReSharper 4, F12 no longer
This is driving me crazy i know its a simple error but either i
This is driving me crazy as I cannot figure out what in the world
So this is driving me crazy. Basically, when I hard-code my user name and
This is driving me crazy! I keep crashing with this error. Below is my
This is driving me absolutely crazy. I have a package that was working fine,
This is driving me crazy. It seems I cannot use ScrollPane ANYWHERE in my
this is driving me crazy, for xslt newbie like me. Input: <root> <a><name>kyle</name></a> <b><name>stan</name></b>
This is driving me crazy right now. I cannot get a simple router to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.