thufir@arrakis:~/bcit3621/lab2/src$
thufir@arrakis:~/bcit3621/lab2/src$ javac a00720398/view/Lab2Frame.java
./a00720398/util/LabelSliderText.java:57: package
org.jdesktop.beansbinding does not exist
private org.jdesktop.beansbinding.BindingGroup bindingGroup;
Apparently the solution is to take the beans binding library, copy it
under my main project directory and make a library wrapper.
How do I copy the beans binding library to the main project from Netbeans?
thanks,
Thufir
> Apparently the solution is to take the beans binding library, copy it
> under my main project directory and make a library wrapper.
I'm not quite sure how to do that in NetBeans, but in this case I first
selected Tools, Palette, Swing and clicked on "reset palette".
Next I (again) added the bean by right clicking and selecting tools, add
to palette, and in the "select palette category" opted for a bean.
However, I think this is fragile and will break again. With the MySQL
driver I had to point the library manager to a jar file. Presumably this
is a similar process? Generate jar files for these beans, then import
them to the library?
-Thufir
Yes, that's right. You create a library in the library manager for each
set of APIs, then add that library to your project and Netbeans will
give you a deliverable "package" with the necessary jars in a /lib
directory (if you choose "build").
--
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
> Yes, that's right. You create a library in the library manager for each
> set of APIs, then add that library to your project and Netbeans will
> give you a deliverable "package" with the necessary jars in a /lib
> directory (if you choose "build").
I'm not sure how IDE specific this is, but...
I have SourceBean and TargetBean, and then I want to use TargetBean in
MyJFrame (obviously the class names have been changed for clarity).
SourceBean and TargetBean are in the same
package,a00720398.homework.util, and project MyBean for discussion
purposes. Then, MyJFrame is in package a00720398.homework.view, but
project Homework in order to treat SourceBean as an external set of
API's. This is to ensure that the Homework project excludes the MyBean
project without editing build files. I think it would be better to just
put the MyBean code into a radically different package, but that's the
work around for now.
So, I have two projects with basically parallel package structure to
ensure that the TargetBean is being treated as a set of API's (is that
the correct terminology?).
That's all well and good, and it will *sometimes* build fine. But, if I
exit the NetBeans IDE and then recreate the Homework project, selecting
"existing code", I'll get a runtime error of:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/jdesktop/beansbinding/Property
However, if I manually add the "beans binding" library to the Homework
package a clean build and run seems to work.
ROFL. That started off as a question, but as I explained it I realized
that I probably just needed to add a missing library. Well, here's the
question, I guess:
Why doesn't NB, or whatever IDE you like, just recognize that the missing
library is free and just import it for me? I guess that's a noob mistake!
Thoughts? Pointers? I'm using NB because that's what I was "forced" to
learn for my last course, this time they're using Eclipse, but that
shouldn't matter because I just submit the source code -- but this time
I'll include some JAR files.
*******
What I can't figure out is how to make the package structure so that the
TargetBean is handled correctly, not recompiled all the time, but not
awkward to deal with. It's set up in an awkward way.
Could I put it all into one project, but with completely different
package structure? The requirement is to use the above package structure
but I think that causes weirdness -- I'm not sure.
*******
-Thufir