thanks again
my swing app is a standalone
java app that interacts with database using hibernate, so i need several jars to have my app working
i developed all this using eclipse; here i added the packages (org, com, javax, etc) into my project and this way i can create an executable jar using eclipse wizard.
i also manually created an executable jar adding those jars to manifest classpath, but i had to have all those jars allways next to my jar, in order to have it working (didnt like this solution)
next, i tried to (re)create my proj, in another location, using jars instead of packages (inside lib folder):
<property name = "librarydir" value = "${basedir}/lib" />
<path id = "libraries">
<fileset dir ="${librarydir}">
<include name = "*.jar" />
</fileset>
</path>
and building and running it with ant: success!
the problem appeared when i tried to generate the dreaded jar
now, i tried using command line and coud not get the jar, because of the same error msg; so i added the several needed packages (instead of jars), and got it working, using:
C:\javas\projc\bin>jar -cmf MANIFEST.MF CDC.jar bd creditacao dominio excepcoes gui hbm io negocio org
test util hibernate.cfg.xml log4j.properties img net com javax
now i guess that is impossible to create an executable jar from a project that itself includes jar files...
at this moment i'm looking at something called "one-jar", suposedly created for situations such as mine
as an aside, you might have noticed i'm no pro, just a java amateur who uses java for fun (in my spare time)
