Complete Guide To Deploy Java Web Application in Amazon Ec2 using Eclipse

Hi readers,
Today I'm going to show you how to deploy simple java web application in amazon ec2 using Eclipse IDE.
Before we begin we need some required things,

k, lets start, here we go....

Step 1
  • First you have to install the AWS toolkit for eclipse plugin. Simply go to Help--> Eclipse Market Place --> Search Amazon
  • You will get the AWS toolkit for eclipse .
  • Click Install
  • It will show the corresponding packages and after agree the license will install it. Just a simple procedure.

Step 2
  • Windows --> Preferences --> select AWS Toolkit and Fill the fields according to your amazon ec2 account 
  • Give your name to Account Name (Not Necessary), but give exact value to Access Key ID and Secret Access Key according to your amazon acc.
  • In the optional configuration (Expand it) give account id (exact value) to that field.

Step 3
  • Windows --> Show view --> Other --> Select AWS toolkit view (Select all views) --> OK
  • Now you can see the perspective view of aws.

Step 4
  • Now the configuration part is over.
  • Lets create a Amazon ec2 server. To do that File --> New --> Other --> Server --> server  --> select amazon ec2 or amazon elastic server tomcat version 6 (you can either choose tomcat version 7)
  • Fill the fields and Finish. (Hope you have some basic understand about eclipse)

Step 5
  • Now create a Dynamic Web project. File --> New --> Other -> Web --> Dynamic Web Project
  • Give whatever name you like.
  • Choose AWS Ec2 or Elastic runtime as a target runtime. 
  • Click Finish

Step 6
  • Now create a servlet and Finish
  • Change the doGet() in servlet (Only for demo. This is where your code goesssss)

Step 7
  • Right click Servlet --> Run as --> Run On server --> Select the server you above create and Finish.

Step 8
  • Eclipse will automatically open the web page that you created. (Or in server tab right click the server and select amazon web service --> running)

Thats it.....

Just a simple procedure but you can expand this in your war... its up to you.


harshadura a.k.a. Durapix said...

maxxa ayye!

shashi(Rajji) said...

thanks a lot :)

sezhian said...

Good Man ! Write More Please!

sumit kher said...

I am basically not a programmer and I am comparatively new to Java technology , so I was wondering what all topics should be covered up if i have to start java from the start and has any one
studied or got any info regarding this 6 week java training online course and should we also have knowledge of C language before we further move on to Advance Java topics??

NP said...

this guide is still up to date?

heena goyal said...

Hey sumit kher,
c language and java are two different languages so you only need to know how to make logic not the syntax of c or c++. And i have taken this course and it worked for me. It is really nice course and i think you should give it a shot.

John clark said...

Hi heena,
I have no idea about this online java training course you are talking about but i have taken many other courses from which has worked for me . It is really cool stuff which they provide like videos,notes,cd's and also the teachers are also good. So even i was planning to learn java so now when i came across ur comment even i have enrolled in because i have studied from this site before also so i have faith on this one...

prakash kadam said...

This is the information that I was looking for and let me tell you one thing that is it is very useful for who is looking for Java Online Training.

Matt Hardy said...

This is really interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!San Francisco Web Design

Divya Besant said...

amazing information about java.
Learn in Deatail Java in Java Training Institute

jermygilbert said...

Thanks for sharing such a good information...

BlueHost Hosting Review

AJ AY said...

Thank you very much for the information shared on AWS. I appreciate help.

karthick lp said...

Very good step by step explanation in such way that new learners can understand easily. Good effort.

java training in chennai

jack wilson said...

Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!

Salesforce Training Institutes in Chennai

murali karthik said...

Salesforce is a cloud based CRM product that allows users to create dynamic application and service over the cloud technology. This virtual technology has huge potential to offer for online community. salesforce Training in Chennai

mathew delport said...

Thanks for sharing such informative article on Java technology. It is most preferred technology among developers to create stunning mobile application fast and easy. It also created massive career opportunity for aspiring professionals. JAVA J2EE Training in Chennai

hari m said...

Thanks for sharing the useful information on Java,

Besant Technologies Reviews

Abinaya V said...

Its very nice.

murali karthik said...

Thanks for sharing such informative article on Java technology. It is most preferred technology among developers to create stunning mobile application fast and easy. It also created massive career opportunity for aspiring professionals. JAVA Training in Chennai

venki sk said...

Java developers are the most wanted developers all across the globe. Thus Java training course from SLA INSTITUTE is an excellent opportunity to become an Java developer. Get trained on top grossing Java Training in Chennai to get placed in MNC companies. SLA INSTITUTE offers tailor made technical courses on various platforms with unlimited placement support that promises jobs in Chennai.
Technical Courses on platforms:

Dotnet Framework
Software Testing
Hardware and Networking

Contact Information:

Address – KK Nagar
No 10, P.T. Rajan Salai, K.K. Nagar, Chennai – 600078
Phone: +91 44 -6602 4450
Mobile: +91 8220132529

Ananthi Jayabal said...

Complete your final year project in an IT company. Work with real time developers to develop your own app. PLC Technologies welcomes engineering students (BE| BTECH| MCA| MSC[CSE/IT/EEE/ECE]) to complete their final year projects in Chennai with an exclusive real-time internship on trending technologies such as Java, Dotnet, PHP, Android, Embedded & MATLAB.
MATLAB Projects in Chennai
Cloud computing Projects in Chennai
Embedded System Projects in Chennai

Roshini Balu said...

Java training in chennai
You are doing a great job, sharing our knowledge is the way of developing our skills then only we can get a deep clean solution for that unresolved problems, I appreciate your effort keep sharing.
Best JAVA Training in Chennai

Roshini RS said...

I have read all the articles in your blog; was really impressed after reading it. FITA is glad To inform you that; we provide practical Salesforce training on all the technologies with MNC exports. We Assure you that through our training the students will gain all the sufficient knowledge to have a voyage in IT industry.

Fita Chennai Reviews, Fita Chennai Complaints, Fita Academy Reviews, Fita Reviews

Post a Comment