agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] NoClassDefFoundError?
Date: Tue, 15 Apr 2008 11:06:55 +0200
Message-ID: <20080415110655.33405554@kingfisher.sec.intern.logix-tt.com> (raw)
In-Reply-To: <BAY109-DAV19D6594DE64241510F97ABBE80@phx.gbl>
References: <BAY109-DAV19D6594DE64241510F97ABBE80@phx.gbl>
Hi, Manuel,
"Manuel" <manueldao at hotmail.com> wrote:
> test1.jar looks like this on the inside:
>
> a.. com/example/Main.class (includes "import com.example.TestClass")
> b.. test2.jar
>
> test2.jar looks this on the inside:
> a.. com/example/TestClass
>
> Any ideas as to why that may be happening?
You cannot simply include one jar in another, the classloader won't
figure this out.
Either you merge the 2 jar files into a single one, or add the second
jar file to your classpath separately, or use your own classloader.
See http://www-128.ibm.com/developerworks/java/library/j-onejar/ for a
poor guy who had to solve the same problem some time ago.
Regards,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
view thread (2+ messages)
Message-ID: <20080415110655.33405554@kingfisher.sec.intern.logix-tt.com>
Permalink: ../20080415110655.33405554@kingfisher.sec.intern.logix-tt.com/
Also on: postgresql.org/message-id/20080415110655.33405554@kingfisher.sec.intern.logix-tt.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] NoClassDefFoundError?
In-Reply-To: <20080415110655.33405554@kingfisher.sec.intern.logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox