Re: Build is successful but can't run?

2014-02-06 Thread Ron Wheeler
On 06/02/2014 9:42 AM, Wayne Fay wrote: I added the maven-assembly-plugin as described here: http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven and now the dependencies are bundled within the jar. Thanks for your help This is a fine approac

Re: Build is successful but can't run?

2014-02-06 Thread TenLeftFingers
de=5783375&i=1> > > > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://maven.40175.n5.nabble.com/Build-is-successful-but-can-t-run-tp5783294p5783375.html > To unsubscribe from Build

Re: Build is successful but can't run?

2014-02-06 Thread Wayne Fay
> I added the maven-assembly-plugin as described here: > http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven > and now the dependencies are bundled within the jar. Thanks for your help This is a fine approach. I still maintain the exec plugin

Re: Build is successful but can't run?

2014-02-06 Thread TenLeftFingers
;> > *mainClass.* So I changed it to the former and that got rid of that >>>> error. >>>> > But now I *still *get the original error. >>>> >>>> You should specify the fully qualified main class eg: >>>> com.mycompany.app.App >>

Re: Build is successful but can't run?

2014-02-06 Thread TenLeftFingers
ield/parameter to the plugin. >>> >>> Wayne >>> >>> ------------- >>> To unsubscribe, e-mail: [hidden >>> email]<http://user/SendEmail.jtp?type=node&node=5783328&i=0> >>>

Re: Build is successful but can't run?

2014-02-06 Thread TenLeftFingers
- >> To unsubscribe, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=5783328&i=0> >> For additional commands, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=5783328&i=1

Re: Build is successful but can't run?

2014-02-06 Thread TenLeftFingers
783328&i=1> > > > > ---------- > If you reply to this email, your message will be added to the discussion > below: > > http://maven.40175.n5.nabble.com/Build-is-successful-but-can-t-run-tp5783294p5783328.html > To unsubscribe from Build is succ

Re: Build is successful but can't run?

2014-02-05 Thread Wayne Fay
> *Failed to load Main-Class manifest attribute from target/myApp.jar* > > I opened the manifest and the *Main-Class* attribute was entered as > *mainClass.* So I changed it to the former and that got rid of that error. > But now I *still *get the original error. You should specify the fully qual

Re: Build is successful but can't run?

2014-02-05 Thread Mark Eggers
On 2/5/2014 11:40 AM, TenLeftFingers wrote: Hi Mark, Thanks for that. I changed the pom as you suggested. When I ran with java -jar myApp.jar I got the output: *Failed to load Main-Class manifest attribute from target/myApp.jar* A couple of things: 1. the main-class-name was supposed to be y

Re: Build is successful but can't run?

2014-02-05 Thread TenLeftFingers
gt; > - > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5783298&i=0> > For additional commands, e-mail: [hidden > email]<http://user

Re: Build is successful but can't run?

2014-02-05 Thread Mark Eggers
On 2/5/2014 9:52 AM, TenLeftFingers wrote: When I build my Maven project with dependencies (using Netbeans but pointing to a vanilla Maven installation), I get BUILD SUCCESS. Great! When I try to /run /it in the form of *java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App* I get this:

Re: Build is successful but can't run?

2014-02-05 Thread Wayne Fay
> When I try to /run /it in the form of *java -cp > target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App* I get this: > *java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory* > > How come this dependency fails at this late stage? This line says "run Java with the classpath being my-app.jar and

Build is successful but can't run?

2014-02-05 Thread TenLeftFingers
When I build my Maven project with dependencies (using Netbeans but pointing to a vanilla Maven installation), I get BUILD SUCCESS. Great! When I try to /run /it in the form of *java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App* I get this: *java.lang.NoClassDefFoundError: org/slf4j/Lo