Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Spring Boot v2 giving me errors, when using Eclipse Photon

 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On this web site https://start.spring.io/ I create two different projects.  One with Spring Boot 1.5.16 and the other with 2.0.5  I then use the Import Existing Maven project feature in Eclipse.  Then I attempt to run the (autogenerated) java class which is part of the project.  The project with Spring Boot 1.5.x works, while the one with 2.x gives me "class not found" errors.

Is the issue just that Eclipse Proton doesn't support Spring Boot 2.x yet?  Tried searching for what that version of Eclipse supports, and didn't have any luck.

Thanks
 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using Eclipse, then you may want to to into the SRS tools for Eclipse. I suspect that most newer versions of Eclipse work fine with Spring Boot 2 which has been generally available for more then six months and in development for more then a year before that.
You may want to try using a Gradle configuration to see if you get different results. Maybe your Maven is not setup correctly.
Alternatively you may want to see in the free community edition of IntelliJ which may give you different results.
 
William Barnes
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This, https://github.com/spring-guides/gs-consuming-rest, which uses Spring Boot v2 works.  So not an Eclipse Photon issue I guess.  
 
Pete Letkeman
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I noticed that the github project you posted has a setup for both Gradle and Maven. Which dependency manager did you use Gradle or Maven?
What if you tried the other one dependency manager out?
Have you tried building the project which was not working using only command line tools?
 
William Barnes
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is working now, with a different project which was created using Spring Boot v2.x  So don't know what was happening.
 
reply
    Bookmark Topic Watch Topic
  • New Topic