This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Direction/Help needed on installing new Spring version 3.0.5.Release Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Direction/Help needed on installing new Spring version 3.0.5.Release" Watch "Direction/Help needed on installing new Spring version 3.0.5.Release" New topic
Author

Direction/Help needed on installing new Spring version 3.0.5.Release

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

I have been googling since yesterday trying to find help in installing the Spring Framework 3.0.5.Release (latest) in Eclipse 3.6 Helios. I cannot find anything on the spring site that helps people get started except for some OLD pages that do not seem to be relevant anymore especially for this latest version of Spring (3.0.5.Release)
.
At any rate, I have a couple of questions in trying to follow a tutorial that I found:

1. This tutorial, written June 2010, assumes there is a dependencies.zip file that I should be able to download but I did not find a dependencies zip for this new version. Consequently I cannot follow, yet again, another tutorial on how to install Spring into Eclipse. There is no longer a spring.jar file and again there is no longer a dependencies file. Very confusing.

2. Is the STS IDE plugin required in Eclipse to work with Spring? I just wanted to use Eclipse's IDE and could not find an answer in the documentation to this question. I'm sure I overlooked it or something but I could not find any reference to it.

I posted this question on a Spring forum but never got a response. Unfortunately, there is no newbie forum for those of us trying to even install the framework. Surely it cannot be this difficult. I'm sure I just haven't found the right help.

Any help/direction would be greatly appreciated. Just need a starting point so that I can start actually learning about Spring.

Regards.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

1. I never used any dependencies.zip. When you use Spring, you need a few libraires on which Spring depends (logging...). That zip might be a big fat archive containing all necessary dependencies. Just guessing.

2. You don't need to install the plugin if you just want to try using Spring in Eclipse. It offers some Spring oriented custom features, but you can do without it.

Using Spring in Eclipse is just a matter of including a few jars in your classpath. So it's rather a tutorial on Eclipse than a tutorial on Spring that you need. Do you know maven ? If yes, it should be the easiest way to get started, by including the Spring dependency in your pom file. If you don't use Maven, try this tutorial


[My Blog]
All roads lead to JavaRanch
Shashank Ag
Ranch Hand

Joined: Dec 22, 2009
Posts: 88

I happen to done some pretty heavy development using spring and eclipse, here's what you need to know:

1. Use RoseIndia (http://www.roseindia.net/spring/) to get on with basics of spring + eclipse.

2. When you download spring archive and include all jars in your classpath (WEB-INF/lib) for the start.
These are present in archive in dist folder. Although I suspect that following jars may be enough for simple desktop based project.
org.springframework.core-3.0.5.RELEASE.jar, org.springframework.beans-3.0.5.RELEASE.jar, org.springframework.context-3.0.5.RELEASE.jar

3. Spring plugin for Eclipse is known as Spring IDE, to install it you have to paste url into software updates within eclipse.
Although, I never used spring IDE. And no Spring IDE (plugin) is not required for spring development.
Only thing it does is validate xmls and annotations of spring inside code.


SCJP 91%, SCWCD 97%
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Spring STS is just Eclipse with Spring Plugins pre-installed. It is also skinned with SPring's colors.

I highly recommend downloading STS instead of downloading Eclipse then installing the Spring plugins. It is a much quicker and easier install.

The benefits the plugins give make the experience of developing a Spring application in Eclipse a huge deal. Yes, you can code a Spring app without the plugins, because you will get CTRL-SPACE help in xml, validation, lots of ways to help speed up your development. Almost like I can code Java in Text editor, but why when IDEs make it so much easier.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Direction/Help needed on installing new Spring version 3.0.5.Release
 
Similar Threads
Spring IDE setup problem
How to include optional jars in Maven while building WAR
running Spring project in Eclipse
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade
Cannot find org.springframework.util.assert