java.lang.NoClassDefFoundError: org/springframework/core/env/DefaultEnvironment

I have a simple program. When I run it, I got the following error. Please help!

Java.lang.NoClassDefFoundError: org/springframework/core/env/DefaultEnvironment
	at org.springframework.context.support.AbstractApplicationContext.createEnvironment

Looks like you got classpath issues - are you using maven?

yes, I am using Maven.

can you please share your pomfile?

<?xml version="1.0"?>

-

4.0.0

org.couchmusic

0.0.1-SNAPSHOT

-

org.springframework.boot

spring-boot-starter-parent

1.2.3.RELEASE

-

-

org.springframework.boot

spring-boot-starter-web

-

org.springframework.boot

spring-boot-starter-test

-

org.springframework

spring-context-support

-

org.springframework

spring-aop

-

org.springframework

spring-instrument

-

com.couchbase.client

java-client

2.2.0

-

org.apache.commons

commons-lang3

3.3.2

-

org.aspectj

aspectjrt

-

org.aspectj

aspectjweaver

-

commons-beanutils

commons-beanutils

-

commons-io

commons-io

2.4

-

com.google.guava

guava

18.0

-

org.scala-lang

scala-library

2.10.4

-

org.couchmusic.Application

-

-

-

org.apache.maven.plugins

maven-compiler-plugin

-

1.8

1.8

-

org.springframework.boot

spring-boot-maven-plugin

-

-

spring-releases

https://repo.spring.io/libs-release

-

-

spring-releases

https://repo.spring.io/libs-release

lab-2.1

Michael, i sent my POM to Forum already and file does not look like in good format, so i attached the file so that you have another version of file to review.Thank you so much for all helps!
Ling

Oh actually your no class def found error is not within couchbase, but rather a missing spring dependency!

(https://www.google.at/search?q=org.springframework.core.env.DefaultEnvironment&oq=org.springframework.core.env.DefaultEnvironment&aqs=chrome..69i57.142j0j1&sourceid=chrome&ie=UTF-8)

You might want to double check your pom hierachy for spring, but there is not much from a couchbase side I can help you with I fear.

I appreciate your help. However lap I am running is from Couchbase training course, so I wonder it has something to do with Couchbase