[wildfly-dev] Swarm "Could not find or load main class"

Markus Eisele myfear at web.de
Wed May 6 06:52:25 EDT 2015


It is around 30 Meg and does contain the class. Indeed.
I have a pretty straight forward JDK setup and tried to run with both
1.7.0_65 and 1.8.0_20.
Only difference is that I run on Windows?
Is the maven version an issue? I'm running 3.3.3?


Anything I can do to provide more debug information?

Cheers,

Markus


On May 6, 2015 12:40 PM, "Ken Finnigan" <ken at kenfinnigan.me> wrote:

> Hi Markus,
>
> That's weird, as I was able to clone your repo, build it, and run it
> without any problems.
>
> Is your fat jar around 30.1Mb in size? Does
> org.wildfly.swarm.bootstrap.Main exist in that jar?
>
> Thanks
> Ken
>
>
> On Wed, May 6, 2015 at 6:17 AM, Markus Eisele <myfear at web.de> wrote:
>
>> Hi,
>>
>> I've been playing around with swarm today and here is the source:
>> https://github.com/myfear/WildFlySwarmDemo
>>
>> Very simple project. JAX-RS and nothing else.
>>
>> mvn package produces the jar. Execution results in:
>>
>> java -jar swarm-sample-1.0-SNAPSHOT-swarm.jar
>> Error: Could not find or load main class org.wildfly.swarm.bootstrap.Main
>>
>> Any help appreciated!
>>
>> Thanks,
>> M
>>
>> ____________
>> @myfear
>> http://blog.eisele.net
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20150506/dabdb337/attachment.html 


More information about the wildfly-dev mailing list