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
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
> 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
;> > *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
>>
ield/parameter to the plugin.
>>>
>>> Wayne
>>>
>>> -------------
>>> To unsubscribe, e-mail: [hidden
>>> email]<http://user/SendEmail.jtp?type=node&node=5783328&i=0>
>>>
-
>> 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
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
> *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
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
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
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:
> 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
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
13 matches
Mail list logo