ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin" <mgai...@hotmail.com>
Subject Re: Problem with manifest and executable jar
Date Thu, 22 Aug 2002 18:31:39 GMT
Bill
What is the exact message
Are you running it
java -jar foo.jar?
-Martin

----- Original Message -----
From: "Bill Pfeiffer" <wsplist1@tampabay.rr.com>
To: "Ant-User" <ant-user@jakarta.apache.org>
Sent: Saturday, February 15, 2003 4:59 PM
Subject: Problem with manifest and executable jar


I need a second set of eyes to view my manifest generated by Ant.  I'm
trying
to build a simple executable jar with only 1 class and a couple of support
libs.  Should be simple but I can't get it to run.  When I attempt to I get:

Could not find the main class. Program will exit!

Here's the manifest generated by ant:
-------------------
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Main-Class: com.bpcs.web.RouterIpSync
Class-Path: ftp.jar jakarta-oro-2.0.6.jar
Built-By: wpfeiffe

Name: com/bpcs/web/RouterIpSync.class
Specification-Title: UpdateWebHome
Specification-Version: 1.0
Specification-Vendor: BPCS
Implementation-Title: UpdateWebHome
Implementation-Version: 1.0
Implementation-Vendor: BPCS


Table of contents for my jar:
----------------------------
META-INF/
META-INF/MANIFEST.MF
com/
com/bpcs/
com/bpcs/web/
com/bpcs/web/RouterIpSync.class
ftp.jar
jakarta-oro-2.0.6.jar

Note that I have coded and tested the RouterIpSync class with a main method
and it works just fine.

Any ideas??

TIA,

Bill Pfeiffer






Mime
View raw message