Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 606
  • Last Modified:

Can't load JAR File using JAVA BDK

Hi

I am using BDK 1.1 . I am having trouble loading any .jar file into the BDK. It gives the following error:

WARNING: Could not instantiate bean "LoginBean" from JAR "C:\jdk1.3.1_02BDK\beanbox\LoginBean.jar"
    We couldn't open the class file "LoginBean.class" in the JAR

Here is the loginbean.mft file:

Name: LoginBean.class
Java-Bean: True

Here is the .bat file I am using to start BDK:

if "%OS%" == "Windows_NT" setlocal
set CLASSPATH=classes;..\lib\methodtracer.jar;..\infobus.jar
java sun.beanbox.BeanBoxFrame

Here is the command I used to create the loginbean.jar file:

jar cfm loginbean.jar loginbean.mft loginbean.class

My environment variables have all been set in the windows environment variables section:

JAVA_HOME c:\jdk1.3.1_02
PATH c:\jdk1.3.1_02\bin

This is my directory structure:

JAVA INSTALLATION:
c:\jdk1.3.1_02
 
BDK Installation:
c:\jdk1.3.1_02\BDK

As you can see I am using jdk1.3.1_02. I am using Windows XP Pro Service Pack 1. I am having exactly the same problems with some Windows 2000 machines. I have a feeling that there is something missing in the CLASSPATH variable to get my JAR files to work but I don't know what it is.

Please help, I need a solution ASAP!!!

Thanks
0
Sheldonh
Asked:
Sheldonh
  • 3
  • 3
2 Solutions
 
objectsCommented:
java is case sensitive

make sure the case of the filename matches the class
0
 
girionisCommented:
Java is case sensitive. loginbean should be LoginBean
0
 
girionisCommented:
jar cfm loginbean.jar loginbean.mft LoginBean.class
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
objectsCommented:
Name: LoginBean.class

that may have to be:

Name: loginbean.class

depends on what the class name actually is name.
Just ensure they all match, including case.
0
 
SheldonhAuthor Commented:
WTF!
It works!

I can't believe that I offered 500 points for such a simple solution. I should have know better about the case sensitivity thing.

Thank you do MUCH!!! You are lifesavers!

I will split the points between the two of you.

And thanks for the quick response.

Cheers
0
 
girionisCommented:
Thank you for accepting, glad problem is solved :)
0
 
objectsCommented:
:)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now