473,804 Members | 3,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.NoCl assDefFoundErro r: 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.NoCl assDefFoundErro r: 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 3619
Just a thought - check if you can possibly be having any classloader issues.
"Sambit Basu" <sa********@hot mail.com> wrote in message
news:1d******** *************** **@posting.goog le.com...
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.NoCl assDefFoundErro r: 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.NoCl assDefFoundErro r: 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2583
by: Magnus Lycka | last post by:
I'm trying to read standard out in a process started with popen2 in a non-blocking way. (Other good ways of doing this than the one I tried are appreciated.) I've tried to dumb down my code to see what happens, and socket.poll seems to behave very strangely. I've tried to use the .poll method for the poll object with and without a timeout, but in either case, the output randomly switches between on of the versions below. It runs fast,...
7
5463
by: Thomas Sourmail | last post by:
Hi, I hope I am missing something simple, but.. here is my problem: I need my program to check the last column of a file, as in : a b c d target ref 0 0 0 0 1 a 1 0 0 0 1.5 b 2 0 0 0 2 c
0
3945
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen. It is almost like it is trying to implement it's own COM interfaces... below is the header, and a link to the dll+code: Zip file with header, example, and DLL:...
0
1766
by: Fabrice | last post by:
Hello, (Alain) Tis is a part of my code to retrieve text from hastable in memory cache, by reading (befor) a resources file. Thanks for your help. /1/ The resources file * I have create a .TXT file with Keys/Values
7
2219
by: DBMS_Plumber | last post by:
Having a hard time with a UDF. Wonder if folk might care to take a look and tell me what's up. All of this kicked off from trying to build a set of C++ iostream derived classes that can make DB2's gimped BLOB API (sqludf_append() etc) look--to the extent that this is possible--like something C++ libraries can use to serialize stuff to (via iostream::read(), iostream::write() and what-not).
1
1817
by: Pathik | last post by:
Hi All, I have to get the values of "reading" and "value" elements of context Person/Category/Group/ser.These values must be on condition based,means I have to get the values of "reading" and "value" if entity="abc" and value="1" , and entity= "def" and value="2" at the Person/Category/Group/series/Key. My xml source file is as follows.
11
1936
by: aljaber | last post by:
hi, i am facing a problem with my program output here is the program /*********************************************\ * CD Database * * * \*********************************************/
5
14998
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing and why I have to do it. Hopefully someone has a suggestion... Alright, so I'm using a gps-simulation program that outputs gps data, like longitude, lattitude, altitude, etc. (hundreds of terms, these are just the well known ones). In the newer...
6
3535
by: efrenba | last post by:
Hi, I came from delphi world and now I'm doing my first steps in C++. I'm using C++builder because its ide is like delphi although I'm trying to avoid the vcl. I need to insert new features to an old program that I wrote in delphi and it's a good opportunity to start with c++.
10
2208
by: oktayarslan | last post by:
Hi all; I have a problem when inserting an element to a vector. All I want is reading some data from a file and putting them into a vector. But the program is crashing after pushing a data which has string value. I really do not understand why push_back() function is trying to remove previously inserted data. Thanks for any help
0
9588
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.