aspose file tools*
The moose likes Spring and the fly likes Spring Tool Suite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Tool Suite" Watch "Spring Tool Suite" New topic
Author

Spring Tool Suite

Steven Barnacle
Greenhorn

Joined: Feb 17, 2012
Posts: 11
I have a number of code examples from a recent srping tool suite training course - that i now plan to look at and use after more recently downloading the spring tool suite.

So far i have imported them into STS but noticed that many (if not all) of the org.springframework import statements have errors - unable to to resolve.

I thought that STS would include the spring framework but anywhere decided to google the spring framework and was able to get a download.

If i reference the jar files from the spring fw download - the import statements are now resolved, which is great.

BUT being a bit anal - i'd like to know if this is the correct way of doing this or did i miss something in the STS install ?

I have'nt seen it documented anywhere about referencing the spring fw separately so would like to know i've done the correct thing ?

Also - i do have to reference the jar files for each and every project (i have over 30) which is a little repetitive to say the least - i have looked under Window>Preferences to see if i could do this on a IDE / global level but i cannot see exactly how to do this.

Any help of all/some of the above would be warmly welcomed !

Thanks
Steve
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17256
    
    6

Well, STS does have a New-Spring project option which will include the Spring Jars by downloading them. STS is just the IDE, not Spring.

So, since you mentioned training materials. SpringSource Lab training projects are well, built a bit different, and I would not recommend using a different IDE to bring those projects in, or use the Training's STS that got installed in your real life projects.

Why, because at SpringSource they run maven and build up all the labs up to be self contained, then create the installer. At that point, the STS is set to maven to run in offline mode, and you never have to run maven again after you run the training install. It basically removes Maven from the equation in training classes.

So then when you imported them into you clean download of STS, that clean environment in the training class is no longer there and you have to set it up yourself. The dependencies I mean.

And don't think that you can just turn Maven back on in those projects from offline. There is even more, all the jar files for the classes are also self contained in the installer in its own "local repo" that is in the training classes sub directory, not even put in your .m2 directory.

Hope that helps clear up why you are having problems with the training class materials in a different STS.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Steven Barnacle
Greenhorn

Joined: Feb 17, 2012
Posts: 11
That explains it well - thanks Mark.

I'll try and get the simple one running where possible and just use the other ones as code examples to reflect on /reference for future.

Many Thanks
Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Tool Suite