Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread Dennis Putnam
nk Eclipse is creating a shaded jar, means a jar which contains all > external jars. > > So you would have to download these jars and include their content in your > final archive. > > You could use for getting their content > > > > > > >

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread Dennis Putnam
KCBSEvents META-INF It is obvious now what the problem is. I just need to know how to get ant to include those same directories. On 2/21/2019 10:18 AM, Dennis Putnam wrote: > I found an article on adding Maven dependencies to my ant script. > While I'm getting a successful build but the

Re: AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread Dennis Putnam
> > > > > > jarfile="${build.dir}/${ant.project.name}.jar"> > > > > > > > >

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread Dennis Putnam
resulting jar fails as well. It seems to me that the problem is not ant specific but something in the app build per se. On 2/21/2019 10:18 AM, Dennis Putnam wrote: > I found an article on adding Maven dependencies to my ant script. > While I'm getting a successful build but the same exception

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-21 Thread Dennis Putnam
I found an article on adding Maven dependencies to my ant script. While I'm getting a successful build but the same exception when I run the jar, I hope this is getting me closer. At least the pom.xml is in the build. I am wondering if the added *fileset* is right and working. Here is my latest:

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-21 Thread Dennis Putnam
use references: > > … > > > > > > > > You mave have a look at > http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html > > > > > > Jan > > > > > > Von: Dennis Putnam [mailto:d...@bellsouth.net] > Gesendet: Diensta

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-19 Thread Dennis Putnam
e while running the application. As long as you setup > your classpath to contain all these necessary jar files, you should no > longer see those exceptions. > > -Jaikiran > > On 18/02/19 8:15 PM, Dennis Putnam wrote: >> Hi Matt and Jan, >> >> Thanks to both of yo

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
Hi Matt and Jan, Thanks to both of you as I am closer but I think I am still missing a piece. I am now getting a successful build but the resulting jar is not finding the classes in the external jars. When I run the jar I get this exception: Exception in thread "main" java.lang.NoClassDefFoun

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
default >> value for the classpath attribute. If no classpath or classpathref is >> specified then the compiler is not passed any classpath information. >> >> I would start by locating the folder where your third-party >> dependencies are and create a element containing

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
ndencies > are and create a element containing them like this: > > > > > > Once you have a path defined you can pass the classpath to the task > using a refid like this: > > classpathref="compile-classpath"/> > > Try that and see how it goes

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-17 Thread Dennis Putnam
least point me in the right direction? On 2/14/2019 9:42 AM, Dennis Putnam wrote: > Hi Jaikiran, > > Thanks for the reply. I thought the classpath parameter defaulted to > "basedir"/.classpath. In any case I made the following change: > > classpath=".classpath"

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-14 Thread Dennis Putnam
   commons-codec     1.10             commons-logging     commons-logging     1.2        Presumably the maven libraries are found from the zipfilesets in the ant script. On 2/14/2019 8:55 AM, Jaikiran Pai wrote: >

Javac Run By Ant Script is Unable to Find External Jars

2019-02-13 Thread Dennis Putnam
I had a working ant script until I made a number of source changes to my Java project via Eclipse and egit. I obviously somehow inadvertently changed something, somewhere, that is causing javac to not find libraries (perhaps pushed something via git that is not part of the source). There are some M

Re: Including Maven Dependencies in Build

2018-12-10 Thread Dennis Putnam
> On 12/7/2018 12:10 AM, Jaikiran Pai wrote: >> Hello Dennis, >> >> >> On 07/12/18 1:15 AM, Dennis Putnam wrote: >>>         >>> >> I don't see this fileset being used in the rest of the target(s) which >> generate your jar file.

Re: Including Maven Dependencies in Build

2018-12-09 Thread Dennis Putnam
On 12/7/2018 3:14 PM, Dennis Putnam wrote: > On 12/7/2018 12:10 AM, Jaikiran Pai wrote: >> Hello Dennis, >> >> >> On 07/12/18 1:15 AM, Dennis Putnam wrote: >>>         >>> >> I don't see this fileset being used in the rest of the target(s)

Re: Including Maven Dependencies in Build

2018-12-07 Thread Dennis Putnam
On 12/7/2018 12:10 AM, Jaikiran Pai wrote: > Hello Dennis, > > > On 07/12/18 1:15 AM, Dennis Putnam wrote: >>         >> > I don't see this fileset being used in the rest of the target(s) which > generate your jar file. Maybe you missed using it to copy over the

Including Maven Dependencies in Build

2018-12-06 Thread Dennis Putnam
I have a working ant build script but I changed my application to use some maven dependencies. I am trying to include those dependencies into that build script. I found this article for doing that: https://stackoverflow.com/questions/7335819/ant-eclipse-complains-about-artifactdependencies I k