• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with BDK software  RSS feed

 
minal kshirsagar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
I am trying to run my own java bean in the BDK but i am unable to run it.
please help me in solving this problem.......

I am giving a list about the steps that i have followed........

1)I have created the bean.Coding for my bean is .......
import java.awt.*;
import java.awt.event.*;



2)Then I have created a mainfest file which is as follows...........

Name: D:/TYCS/Java Beans/Colors
Java-Bean: True

3)Then I have created a JAR file and given the name to jar file as hello.jar
4)Then started the BDK
5)After starting i was getting the following problem...............

WARNING: Could not instantiate bean "D:.TYCS.Java Beans.Colors" from JAR "F:\Jav
a software\beans\jars\hello.jar"
We couldn't open the class file "D:/TYCS/Java Beans/Colors.class" in the JAR
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you have the wrong value for name in the manifest. The name you have points to a location on the file system, but the BDK is expecting a class in the jar. What you need to do is set the name to Colors, compile your class, and put both the manifest and the Colors.class into the jar. The manifest has to be in the META-INF folder, and the class should be at the root level. Give that a try!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!