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 - How to deploy self created java bean jar in NetBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply locked New topic
Author

NetBeans IDE 7.0.1 - How to deploy self created java bean jar in NetBeans

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.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Duplicate post of: http://www.coderanch.com/t/562057/vc/NetBeans-IDE-Java-Bean-Deployment
Locking


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans IDE 7.0.1 - How to deploy self created java bean jar in NetBeans