Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running Spring project in Eclipse

 
Mitch Hartner
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
've installed the latest versions of Eclipse, Tomcat and the Spring-IDE. Being fairly new to java, I'm still not super comfortable with the concept of building/running web apps and the various entries that must be made in the classpath file to make everything run smoothly. So I was wondering what I need to do get to get the petclinic app to run both with and without debugging (obviously) from within Eclipse. I've read the readme.txt and the petclinic.html but these docs, while immensely helpful, didn't answer my sepcific questions.

Here is a list of relevant installation locations

1. Eclipse --> C:\Eclipse
2. Spring Framework with Dependencies --> C:\Eclipse\Spring
3. PetClinic --> C:\Eclipse\Spring\samples\petclinic
4. J2SE Dev Kit 5.0 --> C:\Program Files\Java\jdk1.5.0_06

I don't see any errors in Eclipse for the petclinic package which means (I think) that all import statements and references are resolving fine. I just need to figure out to get Eclipse to run/debug the app. Any help would be appreciated. If I'm posting to the wrong forum I apolgize in advance and would be happy to move this post as directed!
Edit/Delete Message
 
Dave Tuttle
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I were you I'd start out simple. Learn how to deploy and debug a simple web app first (text editor, ant build script, and print statements), then learn how to do it in Eclipse, then try the spring demo.
Fancy tools can save time for experienced programmers but they make learning j2ee harder, not easier. If you jump into all of it at once, you may never really understand the basics.
--Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic