ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Pfeiffer" <wspli...@tampabay.rr.com>
Subject Problem with manifest and executable jar
Date Sat, 15 Feb 2003 20:59:39 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message