NoClassDefFoundError spring boot maven

Im programming a REST API with spring boot which uses some external libraries which are included via dependency in my pom.xml. If i start the project in IntelliJ via mvn spring-boot:run everything works just fine but if i try to package everything into a jar via mvn package all external dependecy calsses are missing except the ones of spring-boot. However, the corresponding jarfiles are copied into the lib folder of the jar. So if i Start the jar everything works just fine (answering for getRequests etc.) But as soon as i want to initialize a variable of type FFmpegFrameGrabber (which is from bytedeco) i get a NoClassDefFoundError

My POM looks as follows:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""









The structure of the genrerated jar (part of it): jar + hello + lib + META-INF + org ----+ springframework ----+ HERE shoould be bytedeco (?)

Thanks in advance

EDIT: Minimal (Not) working example

package hello;

import org.bytedeco.javacv.FFmpegFrameGrabber;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

public class HelloController {

    public String index() {
        String path = "D:\\TestVideos\\1\\original.mp4";
        FFmpegFrameGrabber frameGrabber;
        System.out.println("Starting Frame Grabber for: "  + path);
        frameGrabber = new FFmpegFrameGrabber(path);
        try {
        } catch (Exception e) {
            // TODO Auto-generated catch block

        return "Greetings from Spring Boot! Opening: " + path;


And the

package hello;

import java.util.Arrays;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

public class Application {

    public static void main(String[] args) {
        ApplicationContext ctx =, args);

        System.out.println("Let's inspect the beans provided by Spring Boot:");

        String[] beanNames = ctx.getBeanDefinitionNames();
        for (String beanName : beanNames) {


This is straight from the spring boot tutorial. tanks again


Add the plugin below in your pom.xml <build><plugins> ... </plugins></build> section. Build the maven project and execute the jar command. This plugin will package all your dependent jars into the final executable jar.


This page has more information on maven assembly plugin -

Need Your Help

An error occurred in Sitecore 8.1 Experience Editor

sitecore glass-mapper sitecore8.1 experience-editor

I have set up a project in Sitecore 8.1 MVC using Glass mapper v4. I opened the Home page in Experience Editor I got following error:

How do you add an add image as drop down arrow?

html css drop-down-menu

I created a application with a drop down arrow, but the size of the arrow is too small.