• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic