STS(Spring Tool Suite) and Eclipse - java

Now I am trying to learn about Spring step-by-step and read Pro Spring 3 ebook. In this book, the author describes STS. Now I am using with Eclipse IDE and I would like to know about Spring Tool Suite (STS).
1). What are the benefits of using it rather than Eclipse IDE
2). Have there any special features for Spring on it?
3). Is the same Extensions tab of Dashboard on STS and Eclipse market-place?
Please describes to me some useful tips (if has pros and cons) on each.
Thanks in advance!

STS is just a preconfigured eclipse. it is completely free for any purpose.
The pros and cons using STS go hand in hand: it has some plugines preinstalled which might be usefull or simply slow your IDE down. It has stuff you might need and don't need to download but i might has stuff you won't need. as far as i know, you can install all plug-ins that STS has in your eclipse.
I find it easier to set up a spring based project with STS. But if you are developing on an existing project it doesn't matter if you use STS or eclipse.
It depends on what you want.

Related

Need help to deploy Java web application

Hi I'm totally new to development. I'm trying deploy a web application on a local server like glassfish/tomcat. Backend of the app is written in Java and ui is created using HTML/css/js . I'm using maven as well. I'm not able to find a way to get this running on intellij CE .
Apparently this functionality is not supported in CE. Can someone suggest a turnaround or a different IDE as good as intellij idea. I've tried eclipse but I didn't find it completely useful
Thanks
There is no IDE as good as IntelliJ. JetBrains makes the best IDEs on the market.
No, I don't work for them. I have no affiliation at all. I'm just a satisfied customer for the past 13 years who is happy to buy a license with my own money every year.
The comparison matrix for community and ultimate editions makes it clear: You cannot deploy in IntelliJ without a licensed copy.
You can create a WAR file and deploy it manually to Tomcat or Glassfish if you wish. Why not just do that?
I will compliment you on how you are approaching the problem. IntelliJ, Maven, and your other choices are very good.
If you feel up to the challenge, you can look into Spring Boot. You can run an executable JAR and leave Java EE app servers behind. IntelliJ community can easily run a Spring Boot app.
Choosing Spring Boot does mean leaving EJBs behind. Everything you can do with Java EE is available in Spring Boot. You'll be using POJOs.

Java web development without Eclipse

I'm interested in doing some Java web development but I'm not really interested in using Eclipse. I have used Eclipse in the past and to me it seems to add a layer of abstraction that I'm not really interested in. However, I'm having a bit of upstart problems.
Does anyone have any good references/tutorials in getting up and running with Java web development without using Eclipse (or any other IDE for that matter)?
Create a maven project and use one of the embedded web servers like jetty or Glassfish.
Also, this approach allows you to work with the command line directly or use either Netbeans, Eclipse or IntelliJ as your IDE as they support Maven projects. I do not think that JDeveloper can yet.
(Eclipse may require the m2e plugin from the marketplace, and it handles all the Eclipse configuration transparently and directly. Highly recommended).
You can easily do java web development using notepad only. The extra work is, you have to write some extra code (like in servlet you have to write web.xml http://www.tutorialspoint.com/servlets/servlets-first-example.htm). Same in Struts, Hibernate and Spring framework, you have to write config file in notepad.

What IDE for Spring Framework web application?

in our company we are switching to Java. We want to develop Web Applications using the Spring Framework. We had 4 days of training where the trainer showed us Java using the Springsource Tool Suite which is based on Eclipse.
However i have used previously NetBeans for developing PHP applications.
What do i lose using NetBeans 7.0 compared to using Springsource Tool Suite 2.7.0? Is it really worth developing Spring Framework Web Applications using the dedicated Springsource Tool Suite with having in mind that we are novice in Java?
UPDATE
To provide more information: we want to use the following technologies:
- Spring Framework 3
- JPA (Hibernate)
- Apache Wicket
- Maven
STS has built in Spring refactoring facility - one among a variety of reasons why STS is the preferred choice for spring development. So for example, you were changing the bean names, the STS will automatically update the bean definition XML files.
I personally prefer eclipse over Intellij Idea; since eclipse is more lightweight than IDEA. Since STS is built on top of eclipse, that makes STS my preference too.
All the spring tutorials and examples by springsource are in STS.
STS is free whereas IDEA is not. I haven't used Netbeans though.
I would recommend IntelliJ over Eclipse. I can't speak for STS, since I've never used it, but IntelliJ's Spring support is excellent.
I couldn't disagree more with the comment above stating that Eclipse is lightweight.
STS is the best IDE for Spring IMO. Besides Spring ,it includes Maven, Spring Roo which I like very much and there is a version that includes Google's App Engine SDK and GWT SDK.
I think the biggest reason to go with STS is that the majority of developers using spring choose that IDE. Most of the tutorials, forum posts and documentation you view will be based on STS. I also like how maven and tomcat are prepackaged in the IDE. Also the Spring Template Projects easily port into STS, these projects are extremely helpful because they are prewired. I'm not sure if you can get them through netbeans without a bunch of initial configuration of maven.
I suggest using IntelliJ IDEA. It is the best IDE for developing SpringSource applications in my opinion. You can demo the ultimate version it or use the Community edition.
I like IntelliJ quite a bit. However, if you are an Eclipse shop, look at SpringSource Tool Suite http://www.springsource.com/developer/sts
There are many helpful tools in STS specifically designed for Spring Developers. Check out my DZone Refcard which was just published this week http://refcardz.dzone.com/refcardz/eclipse-tools-spring
I like to use IntelliJ IDEA. It has some advanced code related suggestion which would give not only benefit for Spring Framework, but also other frameworks. To me, it is the complete IDE. For Spring it gives convenient auto detection feature. The code navigation for Spring Framework in IntelliJ IDEA gives uniqueness and convenience.

How to extend Eclipse framework?

I want to base a tool on eclipse in a way that I could change eclipse framework whenever required. So probably writing a plugin is not a good choice ?
I want to extend it in a way as in Rodin(http://www.event-b.org/install.html)
The Rodin Platform is an Eclipse-based IDE for Event-B that provides effective support for refinement and mathematical proof. The platform is open source, contributes to the Eclipse framework and is further extendable with plugins.
So far I decided to download Eclipse platform project as directed in (http://wiki.eclipse.org/CVS_Howto) and downloaded all projects in(
:pserver:anonymous#dev.eclipse.org:/cvsroot/eclipse).
Should I download all of them?
Some of them contain error.
Is it correct way to do what I am trying to do?
How should I remove those errors?
I want to base a tool on eclipse in a
way that I could change eclipse
framework whenever required. So
probably writing a plugin is not a
good choice ? I want to extend it in a
way as in
Rodin(http://www.event-b.org/install.html)
Well there can be two approaches to extend eclipse framework. First approach, as you already know, is writing eclipse plugins. This is the way other platform specific versions or flavors of eclipse do. For example, eclipse Eclipse WTP and Eclipse Modelling work in the same way. They have core eclipse base i.e. classic Java base and then on top of it they have their on set of plugins and features. To give it a more product like feel, they have their own perspectives, views, cheatsheets and splash screen. Also to make your tool extensible you can provide custom extension points. These links would be useful:
PDE Introduction
Plugin Tutorial
Hello world plugin
How to write a plugin for Eclipse?
Eclipse Extension Point
Alternate Approach
The second way is more like making your own product, which in turn is based on eclipse framework, commonly known as Rich Client Platform (RCP). There are tools like IBM Lotus Notes, IBM Sametime, Bittorrent client Vuze. Again if you want to have an extensible IDE then you have to provide some custom extension points or use the existing ones. To make your application moduler, you have to organize it in plugins. The main benefit against the previous approach is that you don't have to ship the plugins which you are not using, which in turn makes your product smaller. The problem with the approach is that you have to think out the look and feel of the IDE, have to implement or least hook into the existing functionality like plugin installation from remote sites, code refactor, Java IDE, run/debug configurations etc. These links would be useful:
RCP Tutorial 1
RCP Tutorial 2
RCP Tutorial 3
RCP Tutorial 4
So far I decided to download Eclipse
platform project as directed in
(http://wiki.eclipse.org/CVS_Howto)
and downloaded all projects in(
:pserver:anonymous#dev.eclipse.org:/cvsroot/eclipse).
Should I download all of them?
Well it depends what do you want to do with them. If you are going to modify some functionalities (add or remove) from them then YES download/checkout the ones which you want to modify. Otherwise, if your intention is to extend eclipse then you need not to checkout/download any of the plugin/sources. Most of them have well defined and documented extension points; just use them.
Some of them contain error. How should
I remove those errors?
Its hard to say how to remove the errors without the stacktrace :). Still you might not need the source as I have mentioned above.
Is it correct way to do what I am
trying to do?
I will suggest you to go in a step wise manner. For me the logical step would be:
Learn about SWT widgets
Play with JFace
Read the releavent eclipse corner articles
Sit back and think what all features you need, out of that what can be reused from eclipse and what extra you need to develop.
Extending eclipse is a very well defined process. You won't face any problem :).
Good luck.
To base a tool on eclipse, you contribute plugins. You don't need to get the ones that are in CVS. Simply go to the eclipse download page, http://download.eclipse.org/eclipse/downloads/ and get the Eclipse SDK. That contains PDE, the Plug-in Development Environment, and source and schema for all of the API you would use.
Then check out the Official FAQ as a getting started reference. There's even a section on how to contribute your own language: http://wiki.eclipse.org/The_Official_Eclipse_FAQs
There's some "Getting Started" stuff on the Eclipse Wiki (includes a lot of the links that Favonius and Paul mentioned).
http://wiki.eclipse.org/Learn_About_Eclipse

ide and application server for java

Which is the best application server and the best ide for an absolute beginner for locally hosting servlets
One good solution is Eclipse + Tomcat.
Check this screencast for further information.
Eclipse and netbeans each have a distribution that includes all you need for Servlet development, including a server.
Between the two, eclipse is the more powerful, but for a beginner it could be a bit overwhelming. Netbeans is less configurable, but that also means there's less to distract you from the "normal" way of doing things, which is probably the best for a beginner.
I'd recommend NetBeans + Apache Tomcat/Jetty is you're just looking into servlet development. If you plan to do some EJB3/3.1 development as well have a look at Glassfish or JBoss AS.
NetBeans integrates great with all of these and requires far less configuration than Eclipse to get you started.
You might consider as an IDE option IntelliJ IDEA as well, it's heavier that Eclipse and NetBeans, but it has some compelling features of its own...
I recommend using Eclipse Java EE version, together with JBoss Application Server. You can download Eclipse plugin: JBoss Tools which adds alot of nice plugins to Eclipse.
You can download JBoss AS (Application Server) for free.
All products are free and opensource.

Categories

Resources