• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot find package  RSS feed

 
Dyzio Bekowski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm learning Java and I tried to compile in Netbeans some project found on Google code. There is a line:
private org.jdesktop.beansbinding.BindingGroup bindingGroup;
which raises an error:
error: package org.jdesktop.beansbinding does not exist
private org.jdesktop.beansbinding.BindingGroup bindingGroup;

So I found and downloaded package beansbinding-1.2.1.jar and copied it to same directory as my CLASSPATH variable points to, which is
.;C:\Program Files (x86)\Java\jre7\lib\ext\
I deleted Netbeans cache, restarted it, cleaned and built the project but still receive the same error.
The same situation happens for libraries org.netbeans.lib.awtextra

What might be the cause?
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome.

You don't need to put the libraries in the SDK/JRE lib/ext folder. you should link these libraries to the Netbeans project making them available during compilation and program run.

Right click on the project and select Properties. There you should figure it out.
 
Dyzio Bekowski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:Welcome.

You don't need to put the libraries in the SDK/JRE lib/ext folder. You should link these libraries to the Netbeans project making them available during compilation and program run.

Right click on the project and select Properties. There you should figure it out.


Thank you for the tip. I added new path and copied library again. Unluckily the problem isnt'solved.

[EDIT] I found out that org.netbeans.lib.awtextra can be found in Netbeans folder, when I add link there it works. I tried the same with the first library - created /org/jdesktop/ folder structure, placed beansbinding.jar there and linked but Netbeans still doesn't recognize it.

[EDIT2] I have solved my problem. Instead of adding source package folder feature I should have used option "Add JAR/Folder" from Libraries. Topic can be closed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!