Solved

Can't load JAR File using JAVA BDK

Posted on 2004-09-02
7
564 Views
Last Modified: 2008-02-01
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
Comment
Question by:Sheldonh
  • 3
  • 3
7 Comments
 
LVL 92

Accepted Solution

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

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

Assisted Solution

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

Expert Comment

by:girionis
ID: 11961070
jar cfm loginbean.jar loginbean.mft LoginBean.class
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 92

Expert Comment

by:objects
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.
0
 
LVL 1

Author Comment

by:Sheldonh
ID: 11961113
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
 
LVL 35

Expert Comment

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

Expert Comment

by:objects
ID: 11961137
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
nextBoolean(double p) for Random class 3 35
javap bin 2 30
xampp tool 12 31
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now