Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Creating an executable jar file

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Michael Ludwig <milu71 AT gmx.de>
  • To: XOM-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Creating an executable jar file
  • Date: Mon, 11 May 2009 21:46:19 +0200

Scott Brush schrieb am 10.05.2009 um 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 manpage for the Java VM states:

-jar [...] When you use this option, the JAR file is the source of all
user classes, and other user class path settings are ignored.

> The application runs fine when I run it with the standard java command
> using the main class.

So this may be the issue here.

Michael Ludwig




Archive powered by MHonArc 2.6.24.

Top of Page