470,815 Members | 1,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Problem with reading Jar

I have a third-party jar file weblogic.jar.

On my redhat system, I put it in my $JAVA_HOME/jre/lib/ext and call a
class from anywhere by "java weblogic.Admin". It works just fine.

I do the same on my Mandrake system. But the system complains with
"java.lang.NoClassDefFoundError: weblogic/Admin" exception.

I put it in (say) /export/workarea/classes and added
"/export/workarea/classes/weblogic.jar" explicitly in my class path.
Called "java weblogic.Admin" and got the same
"java.lang.NoClassDefFoundError: weblogic/Admin" exception.

Now, I extract the contents of the jar under
"/export/workarea/classes/weblogic/". I go to
/export/workarea/classes/weblogic/ and issue "java weblogic.Admin".
This time it works fine.

So, it seems the JVM has problem reading Jar. Can anybody give me any
idea as to what's the deal here?

I am using 1.4.1_03. I have tried using the 1.4.2_02 also with same
result.
Thanks,
- Sambit

if you can cc your resonse to my email address too, I'll appreciate
that.
Jul 17 '05 #1
1 3477
Just a thought - check if you can possibly be having any classloader issues.
"Sambit Basu" <sa********@hotmail.com> wrote in message
news:1d*************************@posting.google.co m...
I have a third-party jar file weblogic.jar.

On my redhat system, I put it in my $JAVA_HOME/jre/lib/ext and call a
class from anywhere by "java weblogic.Admin". It works just fine.

I do the same on my Mandrake system. But the system complains with
"java.lang.NoClassDefFoundError: weblogic/Admin" exception.

I put it in (say) /export/workarea/classes and added
"/export/workarea/classes/weblogic.jar" explicitly in my class path.
Called "java weblogic.Admin" and got the same
"java.lang.NoClassDefFoundError: weblogic/Admin" exception.

Now, I extract the contents of the jar under
"/export/workarea/classes/weblogic/". I go to
/export/workarea/classes/weblogic/ and issue "java weblogic.Admin".
This time it works fine.

So, it seems the JVM has problem reading Jar. Can anybody give me any
idea as to what's the deal here?

I am using 1.4.1_03. I have tried using the 1.4.2_02 also with same
result.
Thanks,
- Sambit

if you can cc your resonse to my email address too, I'll appreciate
that.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Magnus Lycka | last post: by
7 posts views Thread by Thomas Sourmail | last post: by
reply views Thread by Fabrice | last post: by
7 posts views Thread by DBMS_Plumber | last post: by
11 posts views Thread by aljaber | last post: by
6 posts views Thread by efrenba | last post: by
10 posts views Thread by oktayarslan | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.