File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes NetBeans IDE 7.0.1 - Java Bean Deployment (bdk1.1 and jdk1.6 dont work together, why???) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "NetBeans IDE 7.0.1 - Java Bean Deployment (bdk1.1 and jdk1.6 dont work together, why???)" Watch "NetBeans IDE 7.0.1 - Java Bean Deployment (bdk1.1 and jdk1.6 dont work together, why???)" New topic
Author

NetBeans IDE 7.0.1 - Java Bean Deployment (bdk1.1 and jdk1.6 dont work together, why???)

Sahaiy Quadri
Greenhorn

Joined: Dec 16, 2011
Posts: 6
Hi,

I am totally new to Java Beans and coderanch.
I wish to create a simple java bean jar file.
My Bean contains the following code's class file and a manifest file.

I have jdk 1.6.14 and bdk 1.1.
It seems that bdk doesnt work with jdk 1.4 and later versions.
Compiled the above code on cmd prompt as

And checked if the applet works well with

I got an applet window with a filled rectangle box.

Later created a manifest file - MANIFEST.MF as


And then created the jar as


and the jar file appeared.

Problem lies in the jar file when deployed in bdk1.1\beans\jars it does not appear in the jar file box on executing 'run' from bdk1.1\beans\beanbox
What do i do?

And I also wish to know what is 'Java-Bean: True' property in a Manifest file.
Finally how is the above crc.jar deployed in NetBeans and made to run.
Sahaiy Quadri
Greenhorn

Joined: Dec 16, 2011
Posts: 6
Got it!
Click File > New Project > Choose Project > Category - Java, Project - Java Application > Next.
Type in project Name : xyz without Main Class etc. > Finish
In Project Browser > Source Packages > right click Default Package > select New > JFrame Form > enter Class Name > Finish.

MANIFEST.mf


In NetBeans click Tools > Palette > Swing / AWT Component > Palette Manager > Add from JAR > select .jar file
Select Available Component > Next > Palette Category > Beans > Finish.
Palette Manager > close.

Drag xyz Bean from Bean of Palette Browser and drop on frame.Build and run.

 
jQuery in Action, 2nd edition
 
subject: NetBeans IDE 7.0.1 - Java Bean Deployment (bdk1.1 and jdk1.6 dont work together, why???)