0

After installing the java openjdk-6-* and netbeans apt packages onto my computer, i'm unable to compile or run any java source file in Netbeans 7.0, i always get following messages:

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - package org.jdesktop.layout does not exist
    at myproject.MyProjectSurface.initComponents(MyProjectSurface.java:34)
    at myproject.MyProjectSurface.<init>(MyProjectSurface.java:21)
    at myproject.MyProject.main(MyProject.java:19)
Java Result: 1

This only happens when i want to create for example a JFrame Form or anything that would use the packages mentioned in the title. What is the problem here?

therufa
  • 2,050
  • 2
  • 25
  • 39

1 Answers1

2

The "org.jdesktop.*" packages are not part of a standard Java installation. You have to download the relevant JARs from somewhere and add them to your project.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216