Frage

I made a Java application with AbsoluteLayout using NetBeans on a Machine then I moved project data files to another machine, there I got Reference Problem message for some libraries including AbsoluteLayout library.
I fixed project libraries and removed AbsoluteLayout.jar from Project libaries and added it again using Netbeans's add library option.
Now in the Set Layout menu there is no AbsoluteLayout !! (For all projects!!)

How Can I add AbsoluteLayout to SetLayout menu of Netbeans again?

Thanks

War es hilfreich?

Lösung

A radical solution that solves many Netbeans problems (specially those related to the user configuration) is removing the user directory and letting Netbeans recreate it.

Before NB 7.2 this folder was located inside the HOME user directory (/home/user or C:\Users\user)

Andere Tipps

As noted by @madth3, this is easy to do. AbsoluteLayout is the first entry in the Library dialog, where its classpath can become the target of a hurried click on Remove.

As an alternative to this more radical solution, navigate to the library configuration directory.

cd config/org-netbeans-api-project-libraries/Libraries

There should be a recent file named absolutelayout.xml containing the altered configuration.

$ ls
absolutelayout.xml

Remove the errant file and NetBeans will restore the original classpath on restart.

rm absolutelayout.xml

For reference, the full path to the original on Mac OS X, NetBeans 8 is

/Applications/NetBeans/NetBeans\ 8.0.app/Contents/Resources/NetBeans/platform/config/Modules/org-jdesktop-layout.xml

I was facing the same issue as netbeans not allowing me to add in build AbsoluteLayout library. As an alternate solution I searched for this jar file and found it under the netbeans installation directory. In my case it was under following path-

C:\Program Files\NetBeans 8.0.2\java\modules\ext

from here I put it into my lib structure and everything worked fine, hope this post can help others. Happy Coding!!!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top