• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Failure while trying to start an Spring Boot App

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys !. While trying to start a spring boot (I was asked to nake a deep dive into spring security), I entered the following the spring initializr to download the skeleton:
https://drive.google.com/file/d/11zSWORLubWQmKbyzcM-TR62xRntC0Nxd/view?usp=sharing
The image above show the configuration...

But when I try to run the main class (without even coding anything), it says something like:
Error: Could not find or load main class com.example.demo.DemoApplication

I cant realize why this is happening because I have another project which is working and I have the same config...
 
Marshal
Posts: 77213
370
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adding discussion to our Spring forum

Please show us the code and images; many people are reluctant to go to an unfamiliar link.
 
AgustinC Cardeilhac Banus
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Campbell !. There isnt code to show; I didnt find a way to upload the pic so I used my google drive... This is happening without even coding anything... I downloaded the zip file, then uncompress it, opened with intellij and then try to run the main class (previously downloaded the dependencies)... No more than that...
By the way, is there a functionality to upload images ?... Havent seen it...
 
Campbell Ritchie
Marshal
Posts: 77213
370
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can add images as attachments using the tab below the post window. That is for image files on your own computer. You can use the “Img” button to add the link for an image on the Net elsewhere.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you running the application through your code editor?

What code editor are you using?
 
Bartender
Posts: 2266
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, AgustinC
After you run the start.spring.io, you will get demo.zip. Exact it in your directory, so that you will have c:\users\<myname\downloads\demo
Open the project in your IDE and you will see DemoApplication main class.
Make sure your directory is not c:\users\<myname>\downloads\demo\demo.
The reason why the main class is not found, may be because your IDE is not looking at the right path.
 
reply
    Bookmark Topic Watch Topic
  • New Topic