From: | schabi at logix-tt(dot)com (Markus Schaber) |
---|---|
To: | |
Subject: | [Pljava-dev] NoClassDefFoundError? |
Date: | 2008-04-15 09:06:55 |
Message-ID: | 20080415110655.33405554@kingfisher.sec.intern.logix-tt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Snow | 2008-04-16 06:24:11 | [Pljava-dev] install problems |
Previous Message | Manuel | 2008-04-14 19:31:06 | [Pljava-dev] NoClassDefFoundError? |