0

As seen in screenshot 1, NetBeans (v8.2) does not recognise JFrame when extended (this is how NetBeans generated the file, which worked fine on another computer). As seen in screenshot 2, JFrame does not appear in the package list.

I have tried:

  1. Creating a new project
  2. Changing the line to extends JFrame
  3. Restarting IDE
  4. Reinstalling IDE
  5. Googling a lot (no one else seems to have this issue)
  6. Listed the bug at https://issues.apache.org/jira/browse/NETBEANS-905

Any ideas?

Screenshot 1: Screenshot 1

Screenshot 2: Screenshot 2

parkie1995
  • 51
  • 1
  • 9
  • Are you using a Java standard library that came packaged with NetBeans, or a separate one? If the latter, then obtain and install a fresh copy of *that*. – John Bollinger Jun 01 '18 at 23:30
  • I just set up NetBeans on this computer, I installed NetBeans and the 64 bit JDK 8. I assume these libraries come from the JDK? As far as I know I have not installed any seperate libraries. – parkie1995 Jun 01 '18 at 23:33
  • Yes, the standard library is included in the JDK (and also in JREs), but you can use either a separately installed JDK or one bundled with NetBeans. – John Bollinger Jun 01 '18 at 23:51
  • Well as far as I know it will be from the installed JDK (NetBeans required me to install it first) but even so it doesn't explain my problem because all other libraries appear to be there. So what should I do? Reinstall JDK? – parkie1995 Jun 01 '18 at 23:56
  • I can't be confident about the nature of the problem, but downloading a fresh copy of the JDK, removing the old one, and installing the new one is a plausible solution that you don't describe having tried yet. That may require reinstalling NetBeans afterward. – John Bollinger Jun 02 '18 at 00:16

1 Answers1

0

Followed a suggestion from Laszlo Kishalmi at issues.apache.org:

  1. Went to Help -> About in NetBeans.
  2. Copied filepath for cache folder in "About" window, closed NetBeans.
  3. Browsed the folder, deleted it.
  4. Re-opened NetBeans and the issue was solved.

Sorted!

parkie1995
  • 51
  • 1
  • 9