Can't load JAR File using JAVA BDK

Posted on 2004-09-02
Last Modified: 2008-02-01

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:

BDK Installation:

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!!!

Question by:Sheldonh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 92

Accepted Solution

objects earned 250 total points
ID: 11961064
java is case sensitive

make sure the case of the filename matches the class
LVL 35

Assisted Solution

girionis earned 250 total points
ID: 11961066
Java is case sensitive. loginbean should be LoginBean
LVL 35

Expert Comment

ID: 11961070
jar cfm loginbean.jar loginbean.mft LoginBean.class
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

LVL 92

Expert Comment

ID: 11961075
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.

Author Comment

ID: 11961113
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.

LVL 35

Expert Comment

ID: 11961127
Thank you for accepting, glad problem is solved :)
LVL 92

Expert Comment

ID: 11961137

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
login form jsp example 2 71
Finding all private fields and their corresponding getters setters for nested classes 4 31
jsp error 6 71
junit as external jar or library 7 58
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question