Solved

Can't load JAR File using JAVA BDK

Posted on 2004-09-02
7
580 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
[X]
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
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

623 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