Getting "java: package com.intellij.uiDesigner does not exist" Error.
Answered
I am trying to add a JPanel into another JPanel created by intellij. However, it give me a NullPointerException. After googling it, I found some answers indicating that I need to apply a layout constraint by using
com.intellij.uiDesigner.core.GridConstraints()
But this totally breaks every thing. After adding this, the program won't even run or compile, only give me an error of "Error:(275, 61) java: package com.intellij.uiDesigner does not exist". People keep saying that this library will be automatically added to the project in runtime, but it doesn't.
What should I do to solve this problem?
Please sign in to leave a comment.
>"java: package com.intellij.uiDesigner does not exist"
Have you added "forms_rt.jar" jar to the module's dependencies? The jar is located in IDE installation home's lib directory.