xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Scott Brush" <sbrush01 AT roadrunner.com>
- To: <XOM-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] Creating an executable jar file
- Date: Sun, 10 May 2009 18:23:47 -0700
I'm trying to create an executable .jar file for an application using classes
from XOM to read and write to XML files. When I try to run the .jar file I
create with the java -jar command I get an error message saying that one of
the XOM classes can't be found. The error is java.lang.noClassDefFound
error. The first XOM class found by the interpreter is tagged. The
application runs fine when I run it with the standard java command using the
main class.
How do I create executable jar files for applications using XOM classes?
Thanks for your help.
Scott Brush
>From mark.mascolino AT hp.com Sun May 10 22:27:28 2009
Return-Path: <mark.mascolino AT hp.com>
X-Original-To: XOM-interest AT lists.ibiblio.org
Delivered-To: XOM-interest AT lists.ibiblio.org
Received: by lists.ibiblio.org (Postfix, from userid 3002)
id 895984C027; Sun, 10 May 2009 22:27:28 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on malecky
X-Spam-Level:
X-Spam-Status: No, score=-4.0 required=5.0 tests=RCVD_IN_DNSWL_MED
autolearn=disabled version=3.2.3
Received: from g4t0015.houston.hp.com (g4t0015.houston.hp.com [15.201.24.18])
by lists.ibiblio.org (Postfix) with ESMTP id 1254F4C00D
for <XOM-interest AT lists.ibiblio.org>;
Sun, 10 May 2009 22:27:22 -0400 (EDT)
Received: from G5W0603.americas.hpqcorp.net (g5w0603.americas.hpqcorp.net
[16.228.9.186]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
(No client certificate requested)
by g4t0015.houston.hp.com (Postfix) with ESMTPS id C19EE83CB;
Mon, 11 May 2009 02:27:21 +0000 (UTC)
Received: from G3W0629.americas.hpqcorp.net (16.233.58.78) by
G5W0603.americas.hpqcorp.net (16.228.9.186) with Microsoft SMTP Server
(TLS) id 8.1.340.0; Mon, 11 May 2009 02:26:39 +0000
Received: from GVW1090EXB.americas.hpqcorp.net ([16.234.97.205]) by
G3W0629.americas.hpqcorp.net ([16.233.58.78]) with mapi;
Mon, 11 May 2009 02:26:39 +0000
From: "Mascolino, Mark R." <mark.mascolino AT hp.com>
To: Scott Brush <sbrush01 AT roadrunner.com>,
"XOM-interest AT lists.ibiblio.org" <XOM-interest AT lists.ibiblio.org>
Date: Mon, 11 May 2009 02:26:35 +0000
Thread-Topic: [XOM-interest] Creating an executable jar file
Thread-Index: AcnR1yWNbAggYZkdRx+074R19Bba4wACK21g
Message-ID:
<C750513E31352641A1C4C9E1478070E41810DB7FFF AT GVW1090EXB.americas.hpqcorp.net>
References: <C341EFBAB5E2421282E4BA8783D00368@SuperlativeOne>
In-Reply-To: <C341EFBAB5E2421282E4BA8783D00368@SuperlativeOne>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [XOM-interest] Creating an executable jar file
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XOM API for processing XML with Java <xom-interest.lists.ibiblio.org>
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/xom-interest>
List-Post: <mailto:xom-interest AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Mon, 11 May 2009 02:27:28 -0000
You can include a Class-Path in the manifest of the jar where your main class
is set.
-----Original Message-----
From: xom-interest-bounces AT lists.ibiblio.org
[mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of Scott Brush
Sent: Sunday, May 10, 2009 9:24 PM
To: XOM-interest AT lists.ibiblio.org
Subject: [XOM-interest] Creating an executable jar file
I'm trying to create an executable .jar file for an application using classes
from XOM to read and write to XML files. When I try to run the .jar file I
create with the java -jar command I get an error message saying that one of
the XOM classes can't be found. The error is java.lang.noClassDefFound
error. The first XOM class found by the interpreter is tagged. The
application runs fine when I run it with the standard java command using the
main class.
How do I create executable jar files for applications using XOM classes?
Thanks for your help.
Scott Brush
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] Creating an executable jar file,
Scott Brush, 05/10/2009
-
Re: [XOM-interest] Creating an executable jar file,
Michael Ludwig, 05/11/2009
- Re: [XOM-interest] Creating an executable jar file, Zerbst, Carsten, 05/11/2009
-
Re: [XOM-interest] Creating an executable jar file,
Michael Ludwig, 05/11/2009
Archive powered by MHonArc 2.6.24.