Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Classpath for running jar files

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Scott Brush" <sbrush01 AT roadrunner.com>
  • To: "XOM Interest List" <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Classpath for running jar files
  • Date: Mon, 11 May 2009 13:58:01 -0700

Thank you to everyone who has responded to my question. I added a ClassPath
line to my manifest file and was able to run my .jar file from the PC where I
created the application. However, when I copied this file to another PC, a
laptop, which doesn't have the XOM classes installed on it, I got the
java.lang.noClassDefFound error. I included the XOM .jar file in the .jar
file I created for my application and even unarchived everything from the
.jar file but the same error popped up.

Is it possible to run a .jar file with XOM classes on a PC without them being
installed?


Scott Brush
>From milu71 AT gmx.de Mon May 11 18:18:44 2009
Return-Path: <milu71 AT gmx.de>
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 EAF304C015; Mon, 11 May 2009 18:18:43 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on malecky
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled
version=3.2.3
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
by lists.ibiblio.org (Postfix) with SMTP id 49E614C014
for <xom-interest AT lists.ibiblio.org>;
Mon, 11 May 2009 18:18:43 -0400 (EDT)
Received: (qmail invoked by alias); 11 May 2009 22:18:41 -0000
Received: from e178051029.adsl.alicedsl.de (EHLO wladimir) [85.178.51.29]
by mail.gmx.net (mp030) with SMTP; 12 May 2009 00:18:41 +0200
X-Authenticated: #48488578
X-Provags-ID: V01U2FsdGVkX199Y/0v1AV9C7EvX7RsbeR6deLucN1ODgzzqcPMhZ
yUcqltyDFjG2ML
Received: by wladimir (sSMTP sendmail emulation);
Tue, 12 May 2009 00:18:31 +0000
Date: Tue, 12 May 2009 00:18:31 +0200
From: Michael Ludwig <milu71 AT gmx.de>
To: XOM Interest List <xom-interest AT lists.ibiblio.org>
Message-ID: <20090511221831.GA2704@wladimir>
References: <52BA42C0088F4122A5A97166793251E5@SuperlativeOne>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
In-Reply-To: <52BA42C0088F4122A5A97166793251E5@SuperlativeOne>
User-Agent: Mutt/1.4.2.2i
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.66
Subject: Re: [XOM-interest] Classpath for running jar files
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 22:18:44 -0000

Scott Brush schrieb am 11.05.2009 um 13:58:01 (-0700):

> Is it possible to run a .jar file with XOM classes on a PC without
> them being installed?

If you want to spread some good jam on your slice of bread but forgot
the jar at home, well, your breakfast won't work.

The "XOM classes" you're referring to seem to be classes you've coded
yourself which reference the XOM library classes, and hence need them
around at runtime, and also at compile time.

Michael Ludwig




Archive powered by MHonArc 2.6.24.

Top of Page