Skip to content

ClassNotFoundException exception when trying to start new created gradle project via Initializr [SPR-15904] #20458

@spring-projects-issues

Description

@spring-projects-issues

Milan Adamovic opened SPR-15904 and commented

When i create simple Spring gradle project via Spring Initializr and try to run it in Intellij every time i get:
ClassNotFoundException: org.springframework.boot.SpringApplication

If i use same setup but instead gradle project i choose maven, then everything works great.

Steps to reproduce:

  1. Go to Spring Initializr, choose gradle project.
  2. Set some random names or keep demo.
  3. Add Web and Rest as dependencies.
  4. Download and import in Intellij as gradle project.
  5. Go to run settings (Edit Configurations.. -> + -> Applications), set Main class and module, click save and close dialog.
  6. Run!

Expected:
Everything works fine exactly like maven generated project.

Actual:
You get exception:
ClassNotFoundException: org.springframework.boot.SpringApplication

Spring version: latest
Intellj version: IntelliJ IDEA 2016.1.4
Build #IC-145.2070,
JRE: 1.8.0_76-release-b198 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o


No further details from SPR-15904

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions