• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

problem with BDK software

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3064
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Grow a forest with seedballs and this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic