Hi Peter,
I don't know of any way to include jars embedded within another jar in
the classpath. You can do what you want if you keep the jars separate -
then you use the META-INF/MANIFEST.MF to provide the classpath
information. Here's what this looks like for jibx-bind.jar, for instance:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0-b64 (Sun Microsystems Inc.)
Main-Class: org/jibx/binding/Compile
Class-Path: bcel.jar jibx-run.jar xpp3.jar stax-api.jar wstx-asl.jar
The other alternative is to just repackage the jars - expand them into a
class file tree under the same directory as your own class files, then
jar up the whole conglomeration of classes.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117
Peter Solc wrote:
I am trying to create executable jar file but I am not sure how to
proceed with jibx files. Is there some special way how should I add
jibx jars into my executable jar. I am gettings errors because classes
which are imported from jibx are not found. My application runs fine
when I am executing with ant, but I want to be able to executed with
.jar file. I am wondering what files should I add to my jar and if it
is going to work at all.
Thanks for any suggestions,
Peter S.
------------------------------------------------------------------------
Upgrade for free to Windows Live Mail beta and you could win a Safari
trip. Learn More. <http://g.msn.com/8HMBENUS/2746??PS=47575>
------------------------------------------------------- Using Tomcat
but need to do more? Need to support web services, security? Get stuff
done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jibx-users mailing
list [email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users