i.e
C:\>javac Student.java
now the Student.class file is created in the current directory
2. Now create manifest file
enter the command edit manifest.temp in cmd
i.e
C:\>edit manifest.temp
press enter
you will see a blue screen. type the following code in it.
Name: Student.class
Java-Bean: True
save it n return to cmd
Note: 1. there should be always space b/w Name: and Student.class . similarly for Java-Bean: and True. if not you will get header error. even the case(Capitals n small letters) should be same.
2. the manifest file name can be manifest.temp(as per sir notes) or even Student.temp or Student.tmp
3. better leave 2-3 empty lines in manifest file and save it
3. Now the manifest file is created. Now create the jar file. to do so type the following command
jar -cfm Student.jar manifest.temp Student.class
i.e C:\>jar -cfm Student.jar manifest.temp Student.class
NOTE: after -cfm first it should be jar filename(any name your wish) and then manifest file name and then the .class file (if it is in a directory then whole path from current directory)
press enter if no errors the jar file is created in the same directory
TEST IT NOW
4. now open bdk then beanbox n then open run batchfile.
5. 3 windows will appear. In the beanbox window clik file in menubar. then clik loadjar n load the jar file you created.
now your jar file appears in toolbox window (bottom lo).
clik on it n move the mouse onto beanbox n clik there again.dats it your bean will run now
6. now you can change the property values in the property box window and the changes will get reflected in the beanbox window. check out .bye
SIMILARLY Employee Bean
0 Post Your Comment Here:
Post a Comment