[XOM-interest] Creating an executable jar file

Mascolino, Mark R. mark.mascolino at hp.com
Sun May 10 22:26:35 EDT 2009


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


More information about the XOM-interest mailing list