Posted By:
Bhanu_Prakash
Posted On:
Sunday, March 23, 2003 03:54 PM
I have created a SimpleBean and when I run the bean i get the message "Each jar file needs to create a manifest file describing the entries are beans.You can should provide a suitable manifest when you create the jar." This is what i did Step 1 import java.awt.*; public class SimpleBean extends Canvas { private Color col; public SimpleBean() { setSize(300,300); setBackground(Color.cyan); } public void setColor(Color c) { col=c; repaint(); } public Color getColor() { return col; } public void paint(Graphics g)
More>>
I have created a SimpleBean
and when I run the bean i get the message
"Each jar file needs to create a manifest file describing the entries are beans.You can should provide a suitable
manifest when you create the jar."
This is what i did
Step 1
import java.awt.*;
public class SimpleBean extends Canvas
{
private Color col;
public SimpleBean()
{
setSize(300,300);
setBackground(Color.cyan);
}
public void setColor(Color c)
{
col=c;
repaint();
}
public Color getColor()
{
return col;
}
public void paint(Graphics g)
{
g.setColor(col);
g.fillRect(25,6,20,30);
}
}
After creating the file I compiled the file to get the class file
Ste 2:
I created a manifest file with the name SimpleBean.tmp
Name: SimpleBean.class
Java-Bean: True
Step 3:
jar cfm SimpleBean.jar SimpleBean.tmp SimpleBean.class
The jar file gets created
Step 4 :
I copied this Jar file in c: dk1.1 eansjar
Ste 5:
c: dk1.1 eans eanbox
un
Step 6;I load the jar called SimpleBean.jar from the jars folder and it gives me the error
"Each jar file needs to create a manifest file describing the entries are beans.You can should provide a suitable
manifest when you create the jar."
Please help me
Post me the solution immediately if any one is having
<<Less