Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't load JAR File using JAVA BDK

Posted on 2004-09-02
7
Medium Priority
?
591 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 1000 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 1000 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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.
Suggested Courses

704 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