tag:blogger.com,1999:blog-56117670153300764872024-03-14T22:15:47.362+05:30The IntersectVijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5611767015330076487.post-13428005424245072422013-09-04T12:55:00.000+05:302013-09-26T13:35:08.383+05:30How to create a Eclipse plugin wizard page part 2<h3>
How To Capture Keyboard Event in the plug-in wizard</h3>
<br />
<br />
Next lets see how to get what user input in the text box. <br />
To that we need to put key Listener.<br />
<br />
<b> host.addKeyListener(new KeyListener() {<br /><br /> @Override<br /> public void keyPressed(KeyEvent e) {<br /> }<br /><br /> @Override<br /> public void keyReleased(KeyEvent e) {<br /> if (!host.getText().isEmpty()) {<br /> setPageComplete(true);<br /><br /> }<br /> }<br /><br /> });</b> <br />
<br />
We can attach a KeyListener() or KeyAdapter() to a widget control to keep track the keyboard event.<br />
<br />
Adds the listener to the collection of listeners who will be notified when keys are pressed and released on the system keyboard, by sending it one of the messages defined in the KeyListener interface. <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
we can use the getText() method to o get the what the user has enterd.<br />
<br />
<b>public String getText1() {<br /> return host.getText();<br /> }</b><br />
<br />
<br />
And after we need to add the page to the wizard. Wizard is invoked by when we call the addpages() method.Here I have given a parameter user_select_value.It is not necessary to do that.Create a new instance of the wizard page and then add it to the list of pages.<br />
<br />
<b>RS_wizard_page1 one;<br /> one = new RS_wizard_page1(user_select_value);<br /> wizard.addPage(one); </b><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCsaNrb9jyr_H9KuxbT-KFhAsixUa5Fp-2lGacPQBvMWe7UiUhzFq8Ai6POQv_HI6mQD510_ow9MUmeXrz7-78mDPu0tulOWjfsHpnLgDHPaGD4ZSliRLBq2lKaG0CI08DRzvE9GqVNKjI/s1600/snapshot14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCsaNrb9jyr_H9KuxbT-KFhAsixUa5Fp-2lGacPQBvMWe7UiUhzFq8Ai6POQv_HI6mQD510_ow9MUmeXrz7-78mDPu0tulOWjfsHpnLgDHPaGD4ZSliRLBq2lKaG0CI08DRzvE9GqVNKjI/s1600/snapshot14.png" height="320" width="288" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZC_wG1Ql6LpUwwfKtW9vx2W2kVBqYA2K7tZtgh_QpUSnep1RZoxdz1xnYks1yLTHUbRAtBTBCg41bHPJkWtG_RrRXxzUCy06C6er0amzpXoDdkLyLMwXenZiW8HgdM3P5JXQQ1w1n6S-I/s1600/snapshot15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZC_wG1Ql6LpUwwfKtW9vx2W2kVBqYA2K7tZtgh_QpUSnep1RZoxdz1xnYks1yLTHUbRAtBTBCg41bHPJkWtG_RrRXxzUCy06C6er0amzpXoDdkLyLMwXenZiW8HgdM3P5JXQQ1w1n6S-I/s1600/snapshot15.png" height="320" width="288" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-69789194742847009202013-08-30T09:15:00.000+05:302013-09-26T09:19:49.290+05:30How to create a Eclipse plugin wizard page part 1To create a Plugon wizard you need to first create a temple for your page.<br />
This class can be extended from the class WizardPage. An abstract base implementation of a wizard page. We can use the following methods to configure the wizard page:<br />
<br />
<ul>
<li> setDescription</li>
<li> setErrorMessage</li>
<li> setImageDescriptor</li>
<li> setMessage</li>
<li> setPageComplete</li>
<li> setPreviousPage</li>
<li> setTitle</li>
</ul>
<br />
<br />
You can get more information about these methods from <span style="color: red;"><a href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjface%2Fwizard%2FWizardPage.html" target="_blank">here</a></span>.<br />
This is my page template let see what each of these code segmants do.<br />
<b><br /></b>
<b>class RS_wizard_page1 extends WizardPage {<br /> <br /> private Text host;<br /> private Text port;<br /> private Text path;<br /> public String server_url;<br /> private Composite container;<br /> private Object user_select_value;<br /> String[][] Value_ecg_providers;<br /> <br /> public RS_wizard_page1(Object user_select_value ) {<br /> super("Hello Remote Service Host");<br /> this.user_select_value = user_select_value;<br /> setTitle("Hello Remote Service Host");<br /> setDescription("Enter data for your server"); <br /> <br /> }<br /><br /> @Override<br /> public void createControl(Composite parent) {<br /> <br /> container = new Composite(parent, SWT.NONE);<br /> GridLayout layout = new GridLayout();<br /> container.setLayout(new GridLayout(1,false));<br /> layout.numColumns = 1;<br /> <br /> <br /> Label example = new Label(container, SWT.NONE); <br /> example.setText("Example ecftcp://localhost:3282/server");<br /><br /> <br /> Label Host = new Label(container, SWT.NONE);<br /> Host.setText("Host");<br /> host = new Text(container, SWT.BORDER | SWT.SINGLE);<br /> host.setText("");<br /> <br /> Label Port = new Label(container, SWT.NONE);<br /> Port.setText("Port");<br /> port = new Text(container, SWT.BORDER| SWT.SINGLE);<br /> port.setText("");<br /> <br /> Label Path = new Label(container, SWT.NONE); <br /> Path.setText("Path");<br /> path = new Text(container, SWT.BORDER| SWT.SINGLE);<br /> path.setText("");<br /> <br /> <br /> <br /> host.addKeyListener(new KeyListener() {<br /><br /> @Override<br /> public void keyPressed(KeyEvent e) {<br /> }<br /><br /> @Override<br /> public void keyReleased(KeyEvent e) {<br /> if (!host.getText().isEmpty()) {<br /> setPageComplete(true);<br /><br /> }<br /> }<br /><br /> });<br /> <br /> port.addKeyListener(new KeyListener() {<br /> <br /> @Override<br /> public void keyReleased(KeyEvent e) { <br /> <br /> }<br /> <br /> @Override<br /> public void keyPressed(KeyEvent e) {<br /> if (!port.getText().isEmpty()) {<br /> setPageComplete(true);<br /><br /> }<br /> <br /> }<br /> });<br /> <br /> path.addKeyListener(new KeyListener() {<br /> <br /> @Override<br /> public void keyReleased(KeyEvent e) {<br /> <br /> }<br /> <br /> @Override<br /> public void keyPressed(KeyEvent e) {<br /> if (!path.getText().isEmpty()) {<br /> setPageComplete(true);<br /><br /> }<br /> }<br /> });<br /> <br /> <br /> GridData gd = new GridData(GridData.FILL_HORIZONTAL);<br /> host.setLayoutData(gd);<br /> port.setLayoutData(gd);<br /> path.setLayoutData(gd);<br /> // Required to avoid an error in the system<br /> setControl(container);<br /> setPageComplete(false);<br /><br /> }<br /><br /> public String getText1() {<br /> return host.getText();<br /> }<br /><br /> public String getText2() {<br /> return port.getText();<br /> }<br /><br /> public String getText3() {<br /> return path.getText();<br /> }<br />//to get the full server url<br /> public String getServer_url() {<br /> return server_url;<br /> }<br /><br /> public void setServer_url(String server_url) {<br /> this.server_url = server_url;<br /> server_url= getText1()+getText2()+getText3();<br /> }<br /> <br /> @Override<br /> public IWizardPage getNextPage() {<br /> // TODO Auto-generated method stub<br /> return super.getNextPage();<br /> }<br /> <br /> <br /> <br />}</b><br />
<br />
<br />
<br />
<br />
From the following part we set the page title,description of the page<br />
<b> <br /> super("Hello Remote Service Host");<br /> this.user_select_value = user_select_value;<br /> setTitle("Hello Remote Service Host");<br /> setDescription("Enter data for your server"); </b> <br />
<br />
<br />
<br />
Then we need to configure the layout of the page.I have done it in the following way.<br />
<br />
<b> container = new Composite(parent, SWT.NONE);<br /> GridLayout layout = new GridLayout();<br /> container.setLayout(new GridLayout(1,false));<br /> layout.numColumns = 1;<br /> </b><br />
<br />
Frist I have create a new container. This new instance of this class given its parent and a style value describing its behavior and appearance. <br />
<br />
Then I have created a new layout. which controls children of a Composite in a grid. GridLayout has a number of configuration fields, and the controls it lays out can have an associated layout data object, called GridData.<br />
<br />
Because I need only one column i have set the <b>numColumns</b> to one. <br />
<br />
<br />
<h3>
How to put a label in the page </h3>
<h3>
</h3>
We can create a new label and have include the parent a composite control which will be the parent of the new instance(in our case it is container ) and this cannot be null and the style we need for the labe control to construct. In here I have put it has none<br />
<b> Label Host = new Label(container, SWT.NONE);<br /> </b><br />
<br />
Then we can say what does the label need have say by simpley invoking the method setText.<br />
<br />
<b> Host.setText("Host");</b><br />
<b></b><br />
<b></b><br />
Then we create a new instance of this class given with the parent and a style value describing its behavior and appearance.<br />
<br />
<b> host = new Text(container, SWT.BORDER | SWT.SINGLE);</b><br />
<br />
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-47814626196410421562013-08-21T08:20:00.000+05:302013-09-26T08:21:56.848+05:30How create and retrieve all 2D array data from Java propertie file in a Eclipse Project.In this project I needed to have a 2D array. Which had the information about the items that I needed to be put in a combo box.<br />
It can be easely done by creating a 2D array in the code. But hard coding that kind of information is not good programming practice therefore I decided to create a property file which had that information.<br />
If the user want to change what is in the drop down meneu he can easily do it by changing the property file that is the advantage of having a property file.<br />
<br />
<br />
<h3>
How to add Property file </h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">In the package explorer, right-click on the package and select New -> File, then enter the filename including the ".properties" suffix.</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOpRpu9jNFylszJttyE8xn1fX0__y0b5WDxrzUuC-1_k4o15vZ9EphhaGtehtb_EM5u5sHRKZfIh66YExyaYrUSbNyH_FhGJkznmLN3nB5G5I7UEWRCbYfput-uhVy52yep_d1Z0dQBzdX/s1600/snapshot13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOpRpu9jNFylszJttyE8xn1fX0__y0b5WDxrzUuC-1_k4o15vZ9EphhaGtehtb_EM5u5sHRKZfIh66YExyaYrUSbNyH_FhGJkznmLN3nB5G5I7UEWRCbYfput-uhVy52yep_d1Z0dQBzdX/s1600/snapshot13.png" height="179" width="320" /></a></div>
<br />
<br />
<br />
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span><span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">How to create a 2D array in property file.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">To do that you can use the following syntax.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><b>ecf_providers=0,ECF Generic;1,r-OSGi;2,ecf.generic.server;3,ecf.filetransfer.bittorrent;\<br />4,ecf.msn.msnp;5,ecf.discovery.jslp;6,ecf.msn.msnp;7,ecf.xmpp.smack;</b></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><b> </b></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">I have put "\" at the end of the first line to make sure that all the array data will be retrieved when the the method in the code uses the property file otherwise only the first line will be read form the property file. Another way to do is write the array as a single line like this.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span style="font-size: xx-small;"><b>ecf_providers=0,ECF Generic;1,r-OSGi;2,ecf.generic.server;3,ecf.filetransfer.bittorrent;4,ecf.msn.msnp;5,ecf.discovery.jslp;</b></span> <b> </b></span></h3>
<br />
<h3 itemprop="name" style="background-color: white; border: 0px none; color: black; font-family: 'Trebuchet MS','Liberation Sans','DejaVu Sans',sans-serif; font-size: 23px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;">
<span style="font-weight: normal;">Retrieve all 2D array data from Java properties file.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">To get data from the property file and store it in a 2D array you can use the following two methods.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">What
this methods do is they one method read the data from the property file
and the other method store that data in a array called </span><b><span style="font-weight: normal;"><b><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;">Value_ecg_providers.</span></span></span></span></span></b></span></b></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span></h3>
<div itemprop="name" style="background-color: white; border: 0px none; color: black; font-family: 'Trebuchet MS','Liberation Sans','DejaVu Sans',sans-serif; font-size: 23px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;">
<span style="font-weight: normal;"><span style="font-size: small;">To read the data from the property file you can use a met<span style="font-size: small;">ho<span style="font-size: small;">d l<span style="font-size: small;">i<span style="font-size: small;">ke this.</span></span></span></span></span></span></div>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> <b>private static String[][] fetchArrayFromPropFile(String propertyName,<br /> Properties propFile) {<br /> String[] a = propFile.getProperty(propertyName).split(";");<br /> String[][] array = new String[a.length][a.length];<br /> for (int i = 0; i < a.length; i++) {<br /> array[i] = a[i].split(",");<br /> }<br /> return array;<br /> }</b></span></h3>
<h3 itemprop="name" style="background-color: white; border: 0px none; color: black; font-family: 'Trebuchet MS','Liberation Sans','DejaVu Sans',sans-serif; font-size: 23px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;">
<span style="font-weight: normal;"> </span><span style="font-weight: normal;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"> </span></span></span></span></span></span></h3>
<div itemprop="name" style="background-color: white; border: 0px none; color: black; font-family: 'Trebuchet MS','Liberation Sans','DejaVu Sans',sans-serif; font-size: 23px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;">
<b><span style="font-weight: normal;"><b><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;"><span style="font-size: small;">try {<br /> providers.load(RemoteServiceConsumerExample1Template.class<br /> .getClassLoader().getResourceAsStream(<br /> "providers.properties"));<br /> Value_ecg_providers = fetchArrayFromPropFile("ecf_providers",<br /> providers);<br /><br /> } catch (FileNotFoundException e) {<br /> System.out.print("Property file not found");<br /> <br /> e.printStackTrace();<br /> } catch (IOException e) {<br /> /<br /> e.printStackTrace();<br /> }<br /><br /> } </span></span></span></span></span></b></span> </b></div>
<h3>
<b><span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span></b><span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Had to use the <<b>RemoteServiceConsumerExample1Template.class<br /> .getClassLoader().getResourceAsStream(<br /> "providers.properties"))</b> ></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> because I am loading the file from classpath.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">If you need to load a properties file from the file system and retrieved the property value you can simple use something like this.</span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span></h3>
<div itemprop="name" style="background-color: white; border: 0px none; color: black; font-family: 'Trebuchet MS','Liberation Sans','DejaVu Sans',sans-serif; font-size: 23px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 1.3; margin: 0px 0px 7px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; word-spacing: 0px;">
<br /></div>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><b>public class Test<br />{<br /> public static void main( String[] args )<br /> {<br /> Properties property = new Properties();<br /><br /> try {<br /> //set the properties value </b></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> <br /> <b>property.setProperty("database", "localhost"); <br /> property.setProperty("ABC", "CSE"); <br /> property.setProperty("letter ", "A");<br /><br /> //save properties to project root folder<br /> prop.store(new FileOutputStream("config.properties"), null);<br /><br /> } catch (IOException ex) {<br /> ex.printStackTrace();<br /> }<br /> }<br />}</b><br /></span></h3>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"> </span></h3>
Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com2tag:blogger.com,1999:blog-5611767015330076487.post-63247260098219036822013-07-25T21:23:00.000+05:302013-07-31T09:50:08.496+05:30ECF Plug-in Development -Part 2<h2>
</h2>
<br />
<div style="text-align: left;">
Before you can run an exiting ECF project you need to have set ECF in your target platform.In this case I am trying to run OSGi <a href="http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tooling/plugins/org.eclipse.ecf.remoteservices.tooling.pde" target="_blank">Remote Service Host Example</a> .If you haven not set the ECF in the target platform for the workspace you will be getting some errors like this.Even though you will not see these errors until you try to run the example.</div>
<br />
<br />
org.eclipse.ecf.examples.remoteservices.hello,<br />
org.eclipse.ecf.osgi.services.distribution,<br />
org.eclipse.ecf.remoteservice<br />
<br />
<h3>
Install the ECF SDK into Eclipse</h3>
<div style="text-align: left;">
Go to Help> Install New Software</div>
<div style="text-align: left;">
In the new window click the the Add button on the right.<br />
And type ECF for the name put the following url for the Location field.</div>
<br />
<b>http://download.eclipse.org/rt/ecf/3.6.1/site.p2 </b><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgob-5jGgSqcv031uVlw4eO-dPuEZGjRc_TyaPo2xzU_sxzk27MoGJgS_bn71obudSMWX2kgY56KIgAqOmJfVu6PlYSkhadJe3zmxCtTJw5Vx08yB2X0GQV4tyN6bJLdjmy6BiIFDKuqFkT/s1600/snapshot5.png" height="282" width="320" /></div>
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbcDif5Mh0Yi8zNiSMSx7h-O2Yhyl8L8cdQwUIY6tOhRPRQKgtpHiWG3wx0VCHy9zdrI_0zrDCbciiR5s6IgF5wKfXjbAMeOlMs-Q24AkQIkTXk9jIjlFh-CCEF-sJplnbheTHyenzyWJ8/s1600/snapshot6.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbcDif5Mh0Yi8zNiSMSx7h-O2Yhyl8L8cdQwUIY6tOhRPRQKgtpHiWG3wx0VCHy9zdrI_0zrDCbciiR5s6IgF5wKfXjbAMeOlMs-Q24AkQIkTXk9jIjlFh-CCEF-sJplnbheTHyenzyWJ8/s1600/snapshot6.png" height="282" width="320" /></a></div>
<br />
<br />
<div style="text-align: left;">
Select the Eclipse Communication Framework (ECF) check box. And click next.</div>
<div style="text-align: left;">
And ECF SDK will be installed. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
After that </div>
<div style="text-align: left;">
Goto Window>Preferences>Plugin Development>Target Platform.</div>
<div style="text-align: left;">
And. ECF Remote Services to the active target platform. </div>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><br /></span>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpo0Ane5-g6Q5_NCjs8nuPI4a5rPvlBeRVoNuT98XEzNRuT1Vfyvbp6OG0wD4DDXNp8QTScnvdYk9CT0ryqYewgWHnBXqWhXWFnrsKWTQft1gOshZI2ZqiBe5NXE-4rGSKvdvsAsjNvbw/s1600/snapshot7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpo0Ane5-g6Q5_NCjs8nuPI4a5rPvlBeRVoNuT98XEzNRuT1Vfyvbp6OG0wD4DDXNp8QTScnvdYk9CT0ryqYewgWHnBXqWhXWFnrsKWTQft1gOshZI2ZqiBe5NXE-4rGSKvdvsAsjNvbw/s1600/snapshot7.png" height="320" width="296" /></a></div>
<h3>
</h3>
<h3>
WARNING: Port 9278 already in use. This instance of R-OSGi is running on port 9279</h3>
<h3>
</h3>
If you get an error when trying run an OSGi example or a project way to resolve this is to use the disable R-OSGi when you start the eclipse.<br />
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, sans-serif; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"></span></span><br />
<br />
You can do it by using the following command.<br />
<br />
<b>./eclipse -vmargs -Dch.ethz.iks.r_osgi.registerDefaultChannel=false</b><br />
<b> </b> <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeF8pZ2YGoUyPqaRUvvA3ZY5UugMMtnLnZ4HyLMkxOQ7oKklRtqfXxsPlY9Ad3iir_wxaiISUDSS41sgEyFL4BYz-rwpm5qBT121x7ih1QsUdxjrIPaF3ca28biDFslNODI5N11tUqlZST/s1600/snapshot8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeF8pZ2YGoUyPqaRUvvA3ZY5UugMMtnLnZ4HyLMkxOQ7oKklRtqfXxsPlY9Ad3iir_wxaiISUDSS41sgEyFL4BYz-rwpm5qBT121x7ih1QsUdxjrIPaF3ca28biDFslNODI5N11tUqlZST/s1600/snapshot8.png" height="172" width="320" /></a></div>
<br />
You can learn more about ECF OSGi Remote Services from <a href="http://www.eclipse.org/community/eclipse_newsletter/2013/july/article3.php" target="_blank">this link</a>.<br />
<br />
<br />
<br />
<br />
<b><span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"></span></span></b><br />
<h2>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="Apple-converted-space"></span></span></h2>
<h3>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-57366326181105980592013-07-16T09:51:00.000+05:302013-07-30T21:26:16.750+05:30Useful software Ubuntu<h3>
System Load Indicator</h3>
<br />
This will add the CPU, RAM, Network and HDD usage meters to the taskbar so user can quickly get an idea about the system.We can see more detailed information about the system as well from the system monitor window.<br />
<br />
Add the repository by typing the following line in terminal <br />
<b>sudo add-apt-repository ppa:indicator-multiload/stable-daily</b><br />
To update and to install run the following two commands.<br />
<b>sudo apt-get update<br />sudo apt-get install indicator-multiload</b><br />
Or you can download it from the software center.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_TQpCoK0W4Bj_vlQXiq3Z5K-f2glbcgD4Y6fJDW5k4iSHXJUl_zV2bFb9KIBp9Ami0ycSAI0v4VinJR99o_Z9EjCP32CSmYBu4_VmyHvPg1mTCEdZ9zFWgfs3qHFw0ry3myxZVkWTAU7z/s1600/systemloadindicator.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_TQpCoK0W4Bj_vlQXiq3Z5K-f2glbcgD4Y6fJDW5k4iSHXJUl_zV2bFb9KIBp9Ami0ycSAI0v4VinJR99o_Z9EjCP32CSmYBu4_VmyHvPg1mTCEdZ9zFWgfs3qHFw0ry3myxZVkWTAU7z/s1600/systemloadindicator.png" height="258" width="400" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgXe2ZLDLzawbjkvh3QPRNMUCHNsF3Mp9juKdOMQoW9ZOi6fpVCvYxPJhpeLP0TS5njfDq83URGremqdQMm7OWSZgHVFHqYmLo_-HieOLBvHUlhhqLnV0WVlcq9Xw3di9zWHM5nV29Gelj/s1600/systemloadindicator2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgXe2ZLDLzawbjkvh3QPRNMUCHNsF3Mp9juKdOMQoW9ZOi6fpVCvYxPJhpeLP0TS5njfDq83URGremqdQMm7OWSZgHVFHqYmLo_-HieOLBvHUlhhqLnV0WVlcq9Xw3di9zWHM5nV29Gelj/s1600/systemloadindicator2.png" height="259" width="320" /></a></div>
<br />
<br />
<h3>
Xfburn-CD/DVD burning tool<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></span></h3>
This is useful for creating CDs and DVDs from files on your computer or ISO images downloaded from elsewhere.You can install it from software center or run the following command in the terminal. <br />
<br />
<b>sudo apt-get install xfburn </b><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhapRnw48HQY82pMyIflr71sQl_vCS_QGGJd5xXjQVWof92CNWIpYqLE5kDCpa8aVHyoMDHcP3EjOEmOrDgRzJSGzUYUav_CCU9j9kgpUvcLftw3HWVElH0913wdXJi_Uvq0Ch0RKdWNuHR/s866/ubuntudoc1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhapRnw48HQY82pMyIflr71sQl_vCS_QGGJd5xXjQVWof92CNWIpYqLE5kDCpa8aVHyoMDHcP3EjOEmOrDgRzJSGzUYUav_CCU9j9kgpUvcLftw3HWVElH0913wdXJi_Uvq0Ch0RKdWNuHR/s866/ubuntudoc1.png" height="506" width="640" /></a></div>
<span style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: inline !important; float: none; font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><b><br /></b> </span><br />
<h3>
KSnapshot</h3>
<div class="project-detail">
KSnapshot is a simple applet for taking
screenshots. It is capable of capturing images of
either the whole desktop, or just a single window.
The images can then be saved, or passed to
another application using drag and drop.<br />
<b><br />sudo apt-get install ksnapshot</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzHxQGPbWIsBQwZjhM95Ltg6vtsQn2bodQLLM_jiguLIRqNLshCwsXDVlXyq2_oxbLpVqZs8osmiZVqczZJoFzZk56j14xbmqOpgwO48Lv4WvJ4gXd8fNvLHesSEPdDQSBrgIRzgY52j-h/s1366/ksnap.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzHxQGPbWIsBQwZjhM95Ltg6vtsQn2bodQLLM_jiguLIRqNLshCwsXDVlXyq2_oxbLpVqZs8osmiZVqczZJoFzZk56j14xbmqOpgwO48Lv4WvJ4gXd8fNvLHesSEPdDQSBrgIRzgY52j-h/s1366/ksnap.png" height="179" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.ubuntugeek.com/jupiter-light-weight-power-and-hardware-control-applet.html">http://www.ubuntugeek.com/jupiter-light-weight-power-and-hardware-control-applet.html</a></div>
<br />
<br />
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-84771990220273320992013-06-29T13:14:00.000+05:302013-06-29T13:14:31.557+05:30Eclipse Plug-in Development<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxQeXxXUu369s2N_VE1kb0yBPJUfEn4YhtN5f6lVhEcNXafsnlpFUjVg8enJg6IEgEsJf-75Ppj-CcDDQ9i-iKiTbHHRLzA7fWLOdBFuuQcn_6TkO3ewfFMvU1zHRsnQ30gPNi4LlLfGc/s666/pd7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<br />
To develop Eclipse you need the Eclipse plug in development tools.There are two ways to get these tools.<br />
<br />
1)You can download the Eclipse Classic which has the necessary tools.<br />
<br />
Download the suitable Eclipse classic for your OS from this <a href="http://home/vijayindu/Desktop/eclipse" target="_blank">lin<span id="goog_61538632"></span><span id="goog_61538633"></span>k</a>.<br />
And extract it. <br />
<br />
2)You can update your existing Eclipse JAVA IDE.<br />
<br />
Go to Help=>Install New Software and select the site.In this case it is<br />
<b>Helios - http://download.eclipse.org/releases/helios</b><br />
Then select General Purpose Tools. Under this category you will<br />
Eclipse plug-in Development Environment. Install it. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjecRggAR20UAa1KGhUBNkFb3jUcNQt2m7yqR_qlG1DGsgTXUdagxI3y_zyDdRqgONhnjsIaareE44wmHtNrsLqByNL6CQf8fW1AuUSueE5q1Cba8p4uHVH6KmmWLSMynTBafNL_OnVbpgU/s1366/pg2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjecRggAR20UAa1KGhUBNkFb3jUcNQt2m7yqR_qlG1DGsgTXUdagxI3y_zyDdRqgONhnjsIaareE44wmHtNrsLqByNL6CQf8fW1AuUSueE5q1Cba8p4uHVH6KmmWLSMynTBafNL_OnVbpgU/s1366/pg2.png" height="223" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<h3>
How to import an exiting Eclipse plug-in project.</h3>
Here I am going to import a plug-in called PDE template for creating a
remote service.Which can be located <a href="http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tooling/plugins/org.eclipse.ecf.remoteservices.tooling.pde" target="_blank">here</a>. I am entering the data which is suitable for this
project. <br />
<br />
Go to File=>Import=>General=>Exiting Project.Then Select the directory of the project.Click finish.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuZQ7OylICdiMvlzaIADDp0uPR81QpXKRdrVKnP_SilllzIv3E_H0-k2R3SoUlaVYelTNgqaLqFW06U-hpo8tZ-U8ygmbKPUJ5J_LmrGv6gHVpbvJ5SfySLPtQDyDr_BtRIuWG2nTa3whW/s625/pd6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuZQ7OylICdiMvlzaIADDp0uPR81QpXKRdrVKnP_SilllzIv3E_H0-k2R3SoUlaVYelTNgqaLqFW06U-hpo8tZ-U8ygmbKPUJ5J_LmrGv6gHVpbvJ5SfySLPtQDyDr_BtRIuWG2nTa3whW/s625/pd6.png" height="355" width="400" /></a></div>
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxQeXxXUu369s2N_VE1kb0yBPJUfEn4YhtN5f6lVhEcNXafsnlpFUjVg8enJg6IEgEsJf-75Ppj-CcDDQ9i-iKiTbHHRLzA7fWLOdBFuuQcn_6TkO3ewfFMvU1zHRsnQ30gPNi4LlLfGc/s666/pd7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxQeXxXUu369s2N_VE1kb0yBPJUfEn4YhtN5f6lVhEcNXafsnlpFUjVg8enJg6IEgEsJf-75Ppj-CcDDQ9i-iKiTbHHRLzA7fWLOdBFuuQcn_6TkO3ewfFMvU1zHRsnQ30gPNi4LlLfGc/s666/pd7.png" height="400" width="373" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After this project is imported it showed some errors.These errors were
occured due to some missing packages you can fix them by adding those
packages.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZzmr9JdWdizgpzZ2yo1kYx7Xrg2FKObqgqYHg1KU3ZUCG8QRma2_loqTvUfwPtZ4QKZ_IcCgTz-vXFVXH-kzGH0CXs5xrcZvKozMOIksxm1GDipX_HMF_6hYGyUkNszHkS8QYAgdWV0iI/s1292/pd8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZzmr9JdWdizgpzZ2yo1kYx7Xrg2FKObqgqYHg1KU3ZUCG8QRma2_loqTvUfwPtZ4QKZ_IcCgTz-vXFVXH-kzGH0CXs5xrcZvKozMOIksxm1GDipX_HMF_6hYGyUkNszHkS8QYAgdWV0iI/s1292/pd8.png" height="210" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
You can easily add those packages by moving you mouse to the underlined area and selecting the option "add" from the drop down menu.<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-CTEdHKSrzha50REuRHlxC7YP0RwTyDLswvg4C93_VWiT6JqY0qzCuo6U5k6aIOkkGO7KffxTjLRkLiI6y8-6kB2MkglGihDfkD6J8Wcgu9fV-TyUulEUzSFYsyutWoiYq3B1fmf6y5Mm/s1291/pd10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-CTEdHKSrzha50REuRHlxC7YP0RwTyDLswvg4C93_VWiT6JqY0qzCuo6U5k6aIOkkGO7KffxTjLRkLiI6y8-6kB2MkglGihDfkD6J8Wcgu9fV-TyUulEUzSFYsyutWoiYq3B1fmf6y5Mm/s1291/pd10.png" height="198" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After adding those packages all the errors except one. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-GBcUtDUyPerkT-dG0wS3QxUX9ZD9vLgXw0xFMQLNSqV-jlu5YptmyV8S1GdJB6NGevkdXpxj2slxUJuG3zR8e57QxNdrpjIu-FbLrv3DXX44ftPqgVq2ECrSVih6CSn2hqJMcJ1EVPri/s1294/pd11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-GBcUtDUyPerkT-dG0wS3QxUX9ZD9vLgXw0xFMQLNSqV-jlu5YptmyV8S1GdJB6NGevkdXpxj2slxUJuG3zR8e57QxNdrpjIu-FbLrv3DXX44ftPqgVq2ECrSVih6CSn2hqJMcJ1EVPri/s1294/pd11.png" height="168" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
To fix this we need to edit the MANIFEST.MF file.<br />
<div class="separator" style="clear: both; text-align: left;">
http://en.wikipedia.org/wiki/Manifest_file</div>
Problem here is that the
required version mentioned in the MANIFEST.MF file can not be
found.There for I removed the specific bundle version line.So the
plug-in will work with the default bundle version available.<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicVeE63o4doZXc8e-4CaVfVj3D6k4t5vfyGnPS4H8p6sMQlYYPf5lqtlZjOq8ZaJzrhXSWK6Y-Ey7nzE-UvFrpQhNmWCiHivDqzPfX5btVMjTIfIdDfMUplouyIOkR0vIq9RL89rktYFQ9/s695/pd12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicVeE63o4doZXc8e-4CaVfVj3D6k4t5vfyGnPS4H8p6sMQlYYPf5lqtlZjOq8ZaJzrhXSWK6Y-Ey7nzE-UvFrpQhNmWCiHivDqzPfX5btVMjTIfIdDfMUplouyIOkR0vIq9RL89rktYFQ9/s695/pd12.png" height="196" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: center;">
before editing </div>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivm7soVyRfFZfYOrV8jXBTXPNb4rWdCaPT8ELHjR208o2x_DiPuKDLFVqLLK-6nhUom0YnJIAUMhdq2ZpZa7Vmy9q6A-E6Ok8VJ7XQA3NBZ8RSD2we3IwKsNPruhWte8uW1WGXFv87X8D3/s704/pd13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivm7soVyRfFZfYOrV8jXBTXPNb4rWdCaPT8ELHjR208o2x_DiPuKDLFVqLLK-6nhUom0YnJIAUMhdq2ZpZa7Vmy9q6A-E6Ok8VJ7XQA3NBZ8RSD2we3IwKsNPruhWte8uW1WGXFv87X8D3/s704/pd13.png" height="190" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
after editing </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After editing you have to save the MANIFEST.MF file by pressing ctrl+s.</div>
After this you can see that all the errors have gone. <br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJX6fJzAKPsPZGbuGl0y1QhhbUY5emOI1uooz9Hwr7B7uXRDSvN-NLtQ_dgTZgelZN84d8h15u4ozbBolxhT1gaaWPEqnPgIoFdfd7RwrOl3YOPjQidsyo4olXk6cpO8BE8NBBEws_z1Z/s1293/pd14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJX6fJzAKPsPZGbuGl0y1QhhbUY5emOI1uooz9Hwr7B7uXRDSvN-NLtQ_dgTZgelZN84d8h15u4ozbBolxhT1gaaWPEqnPgIoFdfd7RwrOl3YOPjQidsyo4olXk6cpO8BE8NBBEws_z1Z/s1293/pd14.png" height="182" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3>
How to Run a Eclipse Plug-in project</h3>
<div class="separator" style="clear: both; text-align: left;">
To test a Eclipse plug-in you have to run it as Eclipse Application.To that go to </div>
Run=>Run Configuration and select Eclipse Application.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVGbmqqABPbTWb4VAIIl7i9qMBYRlA9nA7Jv10fP-ohFpbBBTwP9YtNbsv4Slnu7iIBOZZMMS3-rS98zc3Aw5jAbcjhrTwS61iJGP6y6eW36Qv0YLXHMOWETYkByv2sRcAC7TFBJWqVNfK/s719/pd5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDGlAtpqtoBJYu48Fq-nW3t29yzJy73i-uN17wLj3FXVwssZGrUQzjx-4xNePjxDXylbLw0Mxk1Bxr7Hd5U-pkRE5KYOoGgS9vLPI5n9afhh7l0dKhNqhsIXJkecycdJW9JsTDUUN31UEf/s1293/pd15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDGlAtpqtoBJYu48Fq-nW3t29yzJy73i-uN17wLj3FXVwssZGrUQzjx-4xNePjxDXylbLw0Mxk1Bxr7Hd5U-pkRE5KYOoGgS9vLPI5n9afhh7l0dKhNqhsIXJkecycdJW9JsTDUUN31UEf/s1293/pd15.png" height="227" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
To create a new configuration click the icon for creating a new configuration.<br />
Then
go the plug-in tab of the new configuration window and and select the
plug-in you need to run in this case I am running "remote service"
plug-in. <br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGYW0YtH18UQi8mnwkWjzyifNad5kZfYyZ4mW6qxUMl14Zevq9gP_emOuWR3S7j9n6ScMjpNnw8FBNuc5t5xiostQXkjSnX8Wb7lHCCv0Y1jviuWReQg54keDa5Re1QRBorGQk7W3cgWyt/s1038/pd16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGYW0YtH18UQi8mnwkWjzyifNad5kZfYyZ4mW6qxUMl14Zevq9gP_emOuWR3S7j9n6ScMjpNnw8FBNuc5t5xiostQXkjSnX8Wb7lHCCv0Y1jviuWReQg54keDa5Re1QRBorGQk7W3cgWyt/s1038/pd16.png" height="248" width="400" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
After that click run and you will see that new eclipse will launch will with the plug-in you developed. <br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9gFOq3WkBuhERR2YyqWxrStjZx_7vdkr-ayvhHoFF-3ALxqnkXmvyUrVpsUYCIIldPosw5DxORJdmegOwRidwg8fnKng-MekRmYZe4QQltCSyEKM2632DvDExMLIwu3hzTAG8zOj8kGZE/s728/pd21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9gFOq3WkBuhERR2YyqWxrStjZx_7vdkr-ayvhHoFF-3ALxqnkXmvyUrVpsUYCIIldPosw5DxORJdmegOwRidwg8fnKng-MekRmYZe4QQltCSyEKM2632DvDExMLIwu3hzTAG8zOj8kGZE/s728/pd21.png" height="400" width="343" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com26tag:blogger.com,1999:blog-5611767015330076487.post-84047719380799004602013-06-26T01:04:00.002+05:302013-06-26T01:11:28.621+05:30Working with GitHub<h3>
How to install and configure GitHub on Ubuntu</h3>
<br />
Installing GitHub in ubuntu is very easy.<br />
open terminal and run the following command. <br />
<b>sudo apt-get install git</b><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GEUNd8Rs6MuZdCyWW5K-j26-6lDG-XZghoz7KC18OC4VwCfJn0lZAEvAYRgz2LZ7NYkc6NQknlAaGTpHrYA53-n03X8KYNedg9Em2InruzUYa2FCMTrgnepd39w63zxv-Om-bhmFVyvl/s1600/gitinstall.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GEUNd8Rs6MuZdCyWW5K-j26-6lDG-XZghoz7KC18OC4VwCfJn0lZAEvAYRgz2LZ7NYkc6NQknlAaGTpHrYA53-n03X8KYNedg9Em2InruzUYa2FCMTrgnepd39w63zxv-Om-bhmFVyvl/s1600/gitinstall.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GEUNd8Rs6MuZdCyWW5K-j26-6lDG-XZghoz7KC18OC4VwCfJn0lZAEvAYRgz2LZ7NYkc6NQknlAaGTpHrYA53-n03X8KYNedg9Em2InruzUYa2FCMTrgnepd39w63zxv-Om-bhmFVyvl/s1600/gitinstall.png" height="256" width="400" /></a></div>
<b><br /></b>
<br />
<h3>
<b>How to </b>configure <b>GitHub</b></h3>
The first thing you should do when you install Git is to set your user name and e-mail<b> </b>address.To do that enter the following two lines in the terminal.<br />
<br />
<b>git config --global user.name "John Doe" </b># Sets the default name for git to use when you commit<b><br /></b><br />
<b>git config --global user.email johndoe@example.com</b><br />
# Sets the default email for git to use when you commit<br />
<br />
to check your setting use the following command.<br />
<b>git config --list</b><br />
<h3>
<b><br /></b></h3>
<h3>
<b>Fork and Clone an Existing Repository</b></h3>
When you need work on a project page that looks interesting you can click the “fork” button in the project header to have GitHub copy that project to your user so you can push to it.<br />
To fork a project, visit the project page (in this case,<a href="https://github.com/eclipse/ecf">https://github.com/eclipse/ecf</a>) and click<br />
the “fork” button in the header. After a few seconds, you’re taken to your new project page, which indicates that this project is a fork of another one.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPUsD62sBZktR-wFn8VPwC7QJWnxAVoDYc-csUPQJzMJScXAfqFEkquW9M_W2jMBd4_mar_pwSdcG2rwJKYET5kOXWdigB8LL6ncR303mZZDJtNlOGi3YI51LgufrsMNwoGP4uUqQRIR3/s1600/gitfork.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPUsD62sBZktR-wFn8VPwC7QJWnxAVoDYc-csUPQJzMJScXAfqFEkquW9M_W2jMBd4_mar_pwSdcG2rwJKYET5kOXWdigB8LL6ncR303mZZDJtNlOGi3YI51LgufrsMNwoGP4uUqQRIR3/s1600/gitfork.png" height="223" width="400" /></a></div>
After you have fork the project,if you want to get a copy of an existing Git repository the command you need is git clone.<br />
<br />
<b>git clone https://github.com/vijayindu/ecf.git</b><br />
#replace vijayindu with your user name.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOVstfcFym0h_ypWd5VSW6oVaVxzaXOTyofh-zyNovM4AL0Sn7EfZLoyvx8RNQfMkOWipgM0HzFkbLgUEHhgZqgle8Aq7VcFE3gH-oXZ5nL5T_m4JH1aRHDxuFCjrEXhvxPiMNdjXVJs0j/s1600/gitclone.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOVstfcFym0h_ypWd5VSW6oVaVxzaXOTyofh-zyNovM4AL0Sn7EfZLoyvx8RNQfMkOWipgM0HzFkbLgUEHhgZqgle8Aq7VcFE3gH-oXZ5nL5T_m4JH1aRHDxuFCjrEXhvxPiMNdjXVJs0j/s1600/gitclone.png" height="83" width="400" /></a></div>
<br />
<br />
this will clone the existing repository to your current working directory of your computer.<br />
<h3>
<b><br /><br /><br /><br /></b></h3>
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-68373426090584232182013-06-25T20:19:00.000+05:302013-06-25T20:19:00.829+05:30How to install Maven in UbuntuIn a terminal(alt+ctrl+t)<br />type<br /><b>apt-cache search maven</b><br />to get all the available Maven package.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXMOhRDYuOJLr4IElLYq6QgQKZq5WATKjssEp3rL-y72pNBacfKLq9i8wQ1SV-9r5gxgV3afY64iIngdBide815AVk7pdw9QgQ_-aFKjF0vkamLp38iG5R-VY0TotfBaGL8zLCXAzhxNe/s1600/maven.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXMOhRDYuOJLr4IElLYq6QgQKZq5WATKjssEp3rL-y72pNBacfKLq9i8wQ1SV-9r5gxgV3afY64iIngdBide815AVk7pdw9QgQ_-aFKjF0vkamLp38iG5R-VY0TotfBaGL8zLCXAzhxNe/s1600/maven.png" height="251" width="400" /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkFAU1T5uG8Tsaw9FRzrV24C1mdqMJppPJCTuBNv-gIdVCPMGCh6z-Y5cAm_MM-bL68O9bs1FKhjJKQ_BFCNwI6DV1JLmkH1cm6JV0ci2kBc1RFXK-lb3qxw-c_kXF8Re7eBvIHvi3iV_2/s1600/maven+2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><br />To install maven type<br /><b>sudo apt-get install maven</b><br />in terminal<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkFAU1T5uG8Tsaw9FRzrV24C1mdqMJppPJCTuBNv-gIdVCPMGCh6z-Y5cAm_MM-bL68O9bs1FKhjJKQ_BFCNwI6DV1JLmkH1cm6JV0ci2kBc1RFXK-lb3qxw-c_kXF8Re7eBvIHvi3iV_2/s1600/maven+2.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkFAU1T5uG8Tsaw9FRzrV24C1mdqMJppPJCTuBNv-gIdVCPMGCh6z-Y5cAm_MM-bL68O9bs1FKhjJKQ_BFCNwI6DV1JLmkH1cm6JV0ci2kBc1RFXK-lb3qxw-c_kXF8Re7eBvIHvi3iV_2/s1600/maven+2.png" height="257" width="400" /></a></div>
Type <br /><b>mvn -version</b><br />
in your terminal to verify your installation.<br /><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilirbrqyNAjg2BuoWr5k2xyUkYa4-f6MN5q3SMuYOBxsQVwCB9NaRltugSAF5jQrqLOlJeA8-RfOfA4Vr-mrTN_yr53wpZv0zRqP-Wsq2M9JYngp70wH6Tyed9OU2N9Pxu5gcD8_Llv8FJ/s1600/mvnversion.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilirbrqyNAjg2BuoWr5k2xyUkYa4-f6MN5q3SMuYOBxsQVwCB9NaRltugSAF5jQrqLOlJeA8-RfOfA4Vr-mrTN_yr53wpZv0zRqP-Wsq2M9JYngp70wH6Tyed9OU2N9Pxu5gcD8_Llv8FJ/s1600/mvnversion.png" height="255" width="400" /></a></div>
<br />You have successfully installed maven. <br /><br /><br /><br /> <br /><br /><br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-11118938419255755202013-06-25T09:29:00.000+05:302013-06-25T09:29:41.194+05:30Install Eclipse,Java and setting variables in UbuntuTo install Eclipse in Ubuntu first you have to download it from the Eclipse web site.<br />
Here I am installing Eclipse Juno (4.2) Eclipse IDE for Java EE Developers Eclipse Juno (4.2)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNDS0EGKaojeJ92AB1gng3J4HegK10kZNNfSEucKiZ1Xl1BQ2fn8UmYtRXVLICrZRhoiBjv6Z7bvFREDP2TC2TO-r61UGQb1xNzxdWKwQIKKwYRJhKTZ5RQhV4D86psbTpBliNwopNLtxt/s1600/bashrc.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
You can download it from <a href="http://www.eclipse.org/downloads/" target="_blank">he<span id="goog_1098664958"></span><span id="goog_1098664959"></span>re</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLUF8KvAGCqabCksf0EJ2fwmpWWoANGK0MB4_UTfY34dIPGIGXC6j4_oJCyZMSSEcehThGypTaCIbWFvwU3zLyjmdtneGLHVjn608e_5ZWiOPOKLs066XeYFDd0jNlTZE-vScOE7UXtASk/s1600/Screenshot+from+2013-06-20+19:13:23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLUF8KvAGCqabCksf0EJ2fwmpWWoANGK0MB4_UTfY34dIPGIGXC6j4_oJCyZMSSEcehThGypTaCIbWFvwU3zLyjmdtneGLHVjn608e_5ZWiOPOKLs066XeYFDd0jNlTZE-vScOE7UXtASk/s400/Screenshot+from+2013-06-20+19:13:23.png" height="223" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After downloading the file you can you can open it with archive manger and and extract it where you want.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY_EVrD678243HGz-srP9nem_Qloajw3GCb5jvgFp7YYL5XNC6O5JWLXxYHyE27_Rs3XlQ6c5dXYM2creI7O17Z5L7DyPD1wXwGigm_QCg2eeKR9eMY6lwOOu-gTsohY6gOkXTdXvq0DMI/s1600/Screenshot+from+2013-06-20+19:55:38.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY_EVrD678243HGz-srP9nem_Qloajw3GCb5jvgFp7YYL5XNC6O5JWLXxYHyE27_Rs3XlQ6c5dXYM2creI7O17Z5L7DyPD1wXwGigm_QCg2eeKR9eMY6lwOOu-gTsohY6gOkXTdXvq0DMI/s400/Screenshot+from+2013-06-20+19:55:38.png" height="221" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After that you can start using eclipse.<br /><br /></div>
<h3>
How To Install JDK On Ubuntu</h3>
<div class="separator" style="clear: both; text-align: left;">
Open terminal by pressing alt+ctrl+t .</div>
<div class="separator" style="clear: both; text-align: left;">
Type</div>
<div class="" style="clear: both; text-align: left;">
<b>apt-cache search openjdk</b><br />To search all the available Openjdk version.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikDRi3LLjXm63Q2M6F6tTbrHxNShwgS4lUZdoO1EPfdVCwN9J3Plnu7O86hpuE5tF9RSQrQ5DDIDp_acwFsyU0EJSm2NyA0BtIUUKdeshuAAhhL9Ok8uU1KHCZpKL5REQa2fenE3vK4TST/s1600/Screenshot+from+2013-06-20+20:09:57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikDRi3LLjXm63Q2M6F6tTbrHxNShwgS4lUZdoO1EPfdVCwN9J3Plnu7O86hpuE5tF9RSQrQ5DDIDp_acwFsyU0EJSm2NyA0BtIUUKdeshuAAhhL9Ok8uU1KHCZpKL5REQa2fenE3vK4TST/s320/Screenshot+from+2013-06-20+20:09:57.png" height="179" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h2>
</h2>
<div class="separator" style="clear: both; text-align: left;">
Here I am going to install open JDK 7</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Type </div>
<div class="separator" style="clear: both; text-align: left;">
<b>sudo apt-get install openjdk-7-jdk</b></div>
in terminal to install open JDK 7<br /><br />To verify the installation type<br /><b>java -version</b> <br />in terminal<br /><br /><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji9YkCEkF1zEggkM1_vGzWUqzkuDqcQWp6bLY9LhFuc-jofzZL_rLiJoJQnTNoHimaWt6R2Q2XiwEptgrf69OO1ec4ggtM0szb0SwUFxyUJOAGHMSd0R1-I__Fy4KpyBV5y_iRC6qsctTC/s1600/java+version.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji9YkCEkF1zEggkM1_vGzWUqzkuDqcQWp6bLY9LhFuc-jofzZL_rLiJoJQnTNoHimaWt6R2Q2XiwEptgrf69OO1ec4ggtM0szb0SwUFxyUJOAGHMSd0R1-I__Fy4KpyBV5y_iRC6qsctTC/s1600/java+version.png" height="255" width="400" /></a></div>
<h2>
</h2>
<h2>
</h2>
<h2>
</h2>
<h3>
How to set JAVA_HOME for OpenJDK</h3>
<br />Type <br /><b>nano ~/.bashrc</b><br />in the terminal to open the .bashrc and edit it.At the end of the file add the following line<br /><b>export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/</b><br /><div class="r" style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: block; font-family: arial, sans-serif; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: auto; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: auto; word-spacing: 0px;">
<br /></div>
<div class="r" style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: block; font-family: arial, sans-serif; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: auto; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: auto; word-spacing: 0px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNDS0EGKaojeJ92AB1gng3J4HegK10kZNNfSEucKiZ1Xl1BQ2fn8UmYtRXVLICrZRhoiBjv6Z7bvFREDP2TC2TO-r61UGQb1xNzxdWKwQIKKwYRJhKTZ5RQhV4D86psbTpBliNwopNLtxt/s1600/bashrc.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNDS0EGKaojeJ92AB1gng3J4HegK10kZNNfSEucKiZ1Xl1BQ2fn8UmYtRXVLICrZRhoiBjv6Z7bvFREDP2TC2TO-r61UGQb1xNzxdWKwQIKKwYRJhKTZ5RQhV4D86psbTpBliNwopNLtxt/s1600/bashrc.png" height="252" width="400" /></a></div>
<div class="r" style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: block; font-family: arial, sans-serif; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: auto; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: auto; word-spacing: 0px;">
<em style="font-style: normal;"><b> </b></em></div>
<div class="r" style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: block; font-family: arial, sans-serif; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: auto; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: auto; word-spacing: 0px;">
<br /></div>
<div class="r" style="-webkit-text-stroke-width: 0px; background-color: white; color: #222222; display: block; font-family: arial, sans-serif; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px; orphans: auto; overflow: hidden; padding: 0px; text-align: left; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: nowrap; widows: auto; word-spacing: 0px;">
<em style="font-style: normal;"><b> </b><br /><br />and press <b>ctrl+o</b> and then press <b>enter</b> to save the file.</em><em style="font-style: normal; font-weight: bold;"><br /></em></div>
<br />To verify the java home type<b><br />echo $JAVA_HOME</b><br />
in the terminal<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfCBnwDwTV_zptMHGvJMorCJz-fJwRRja9zdv1OyONognmz5VH1oOTScG90-6KbdtTkhsgw3CFaYW6BPpVr8rpunK_6BZJH7XXxjPN8CDBpNL19lM8OD9adRIk7l7qwbQvBGp9JbCAzwQF/s1600/javahome.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfCBnwDwTV_zptMHGvJMorCJz-fJwRRja9zdv1OyONognmz5VH1oOTScG90-6KbdtTkhsgw3CFaYW6BPpVr8rpunK_6BZJH7XXxjPN8CDBpNL19lM8OD9adRIk7l7qwbQvBGp9JbCAzwQF/s1600/javahome.png" height="131" width="400" /></a></div>
<br />
<h2>
<br /></h2>
<br />
<br />
<h1 style="background-color: white; color: #3c3c3c; font-family: Arial, sans-serif; font-size: 32px; letter-spacing: -1px; line-height: 1.2em; margin: 0px 0px 6px; text-rendering: optimizelegibility; text-transform: capitalize;">
</h1>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0tag:blogger.com,1999:blog-5611767015330076487.post-80351445027287123442013-05-17T00:18:00.001+05:302013-05-17T00:18:16.512+05:30GSoC 2013 Proposal PDE templates of OSGi remote services<br />
<div style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;">
</div>
<br />
<b><span style="color: #e69138;">Short description</span></b>: The current Plug-in Development Environment (PDE) provides tools to create, develop, test, debug, build and deploy Eclipse plug-ins etc.This project focuses on creating a new template related with OSGi remote services which is compatible with the current PDE.<br />
<br />
The PDE provides several templates for developing plugins.This projects focuses on creating a PDE template of OSGi remote services with specific distribution providers and specifications.And the related documentation to the project.<br />
<br />
<b><span style="color: #e69138;">Detailed Information</span></b><br />
<br />
This project will develop the new template to the existing plugins development wizard and will support existing wizard.<span style="color: #e69138; font-weight: bold;"> </span><br />
<span style="color: #e69138; font-weight: bold;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://dl.dropboxusercontent.com/u/63694065/Fullscreen%20capture%20532013%2091120%20PM.bmp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="a71" border="0" height="615" src="https://dl.dropboxusercontent.com/u/63694065/Fullscreen%20capture%20532013%2091120%20PM.bmp.jpg" style="vertical-align: middle;" width="523" /></a></div>
<span style="color: #e69138; font-weight: bold;"><br /></span>
<br />
<div style="color: #e69138; font-weight: bold;">
</div>
<div>
Users will be able access the newly developed template through the wizard and the short description will be shown.</div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://dl.dropboxusercontent.com/u/63694065/Fullscreen%20capture%20532013%2063651%20PM.bmp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" height="615" src="https://dl.dropboxusercontent.com/u/63694065/Fullscreen%20capture%20532013%2063651%20PM.bmp.jpg" style="vertical-align: middle;" width="523" /></a></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div>
According to the specifications and the design of the OSGi remote service users will be able do the necessary changes.And the design will be similar to the existing GUI.</div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
</div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<img alt="" height="414" src="https://dl.dropboxusercontent.com/u/63694065/Fullscreen%20capture%20532013%2063727%20PM.bmp.jpg" style="vertical-align: middle;" width="771" /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div>
<div>
The ability to create a plug-in with a ready-to-run extension is appealing, particularly to novice Eclipse developers. Therefore,creating a template to be added to the for Eclipse's more popular templates during the plug-in project creation process will be a benefit to developers. </div>
<div>
<br /></div>
<div>
<b><span style="color: #e69138;">Background</span></b></div>
<div>
In the time leading up to the start of the GSoC programme I am going to improve my knowledge about Eclipse Communication Framework . And my major goal is to get familiar with the OSGi Remote Services and Plug-in Development Environment.And thoroughly study the source code for existing PDE template for creating a remote service.To improve my knowledge on above aspects I expect to read the documents regarding them and to have a discussion with the project mentors. </div>
<div>
<span style="color: #e69138;"><b><br /></b></span></div>
<div>
<span style="color: #e69138;"><b>Deliverables</b></span></div>
<div>
Working template in PDE which is related to OSGi Remote service.</div>
</div>
<div>
<br /></div>
<div>
<br />
<span style="color: #e69138;"><b>Schedule </b></span><br />
<span style="color: #e69138;"><b><br /></b></span>
<b><span style="color: #f1c232;">April 25 - May 2:</span></b><br />
Familiarize with ECF<br />
Study the documentation about PDE OSGi<br />
<br />
<br />
<span style="color: #f1c232;"><br /></span>
<b><span style="color: #f1c232;">May 3 - June 16</span></b><br />
Try out existing plugging development templates<br />
Research about PDE.<br />
Research about OSGi<br />
Get more familiar with ECF<br />
<br />
<br />
<br />
<b><span style="color: #f1c232;">June 17 - July 20</span></b><br />
Discuss and design a OSGi remote service<br />
Start coding to integrate designed service<br />
Start working on GUI<br />
Testing<br />
<br />
<br />
<br />
<b><span style="color: #f1c232;">July 20-August 2</span></b><br />
Mid term Evaluation<br />
<br />
<br />
<b><span style="color: #f1c232;"><br /></span></b>
<b><span style="color: #f1c232;">August 2 - September 5</span></b><br />
Add required new classes and update existing classes which requires to add OSGi Remote service.<br />
Further develop the GUI and integrate it with the code<br />
Integrate all implemented parts eclipse single project.<br />
<br />
<br />
<span style="color: #cc0000;"><br /></span>
<b><span style="color: #f1c232;">September 5- September 16</span></b><br />
Test if added new functionality and old functionality is working properly.<br />
Do the required changes to fix the bugs.<br />
<br />
<br />
<b><span style="color: #cc0000;"><br /></span></b>
<b><span style="color: #f1c232;">September 16- September 21</span></b><br />
Documentation<br />
<br />
<br />
<b><span style="color: #7f6000;"><br /></span></b>
<b><span style="color: #f1c232;">September 21 - September 23</span></b><br />
Finish project and Submit Deliverable<br />
<br />
<br />
<b><span style="color: #e69138;"><br /></span></b>
<b><span style="color: #e69138;">Expectations</span></b><br />
<br />
I hope to discussion with my mentors about the idea which will help to reduce the ambiguity of the requirements.<br />
<br />
I am going to put effort and do my best to understand but if I am unable to do so I would like to get help from the mentors clarify things that I do not understand about PDE and OSGI. <br />
<br />
<br />
<b><span style="color: #e69138;"><br /></span></b>
<b><span style="color: #e69138;">Contact Information</span></b><br />
<br />
Email: svijayindu@gmail.com<br />
<br />
Phone number: +94718082232<br />
<br />
Time-zone: GMT+5:30<br />
<br />
<br />
<br />
I’m Suneth Vijayindu Walliwala Gamage. I am a third year undergraduate in Department of Computer Science and Engineering in University of Moratuwa, Sri Lanka.Which has consecutively won GSOC’s most number of participant’s award since 2009 to 2012.I have much experience in java and developing various applications, basically I am doing programming with Java therefor I have a advance knowledge with programming in Java also I have experience with programming in C,C++ and XML.I have implemented many projects in java including a one which spanned for four months.Also I was a project team member of the following projects which were conducted by our department.<br />
<br />
Patient Management System : for Base Hospital, Homagama [1]<br />
<br />
Sheersha Yathra : Wheelchair for a Quadriplegic [2]<br />
<br />
I am able to work 50 hours a week for GSoC from June to September( 6 hours on weekdays and 10 hours on weekends).So I’m confident enough to take up this project as I have the required skill set for this project and I will deliver my best to make this project a success.`And I would like continue forward the work for ECF even after GSoC finishes and to complete the work all the way to deployment.<br />
<br />
<a href="https://www.blogger.com/]http://www.uomcseprojects.blogspot.com/2012/06/patient-management-system-for-base.htm" target="_blank">http://www.uomcseprojects.blogspot.com/2012/06/patient-management-system-for-base.htm</a><br />
<br />
<a href="http://uomcseprojects.blogspot.com/2012/08/sheersha-yathra-wheelchair-for_8.html" target="_blank">http://uomcseprojects.blogspot.com/2012/08/sheersha-yathra-wheelchair-for_8.html</a><br />
<br />
<br />
</div>
<div>
<br /></div>
<div>
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
<div style="color: #e69138; font-weight: bold;">
<br /></div>
Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com1tag:blogger.com,1999:blog-5611767015330076487.post-12018419385354282392012-03-01T10:40:00.000+05:302012-03-01T10:57:45.482+05:30HttpUnit<b><span style="font-size: large;">
Introduction </span></b><br />
Testing programs is a boring thing.It takes lot of time and efforts to do that<br />
but there are easier ways to do that by automated software one such great software is HttpUnit.<span style="font-weight: bold;"></span><br />
HttpUnit is an open source software testing framework used to perform testing of web sites without the need for a web browser.<br />
HttpUnit is primarily designed for "black-box" testing of web sites.<br />
HttpUnit is free software available from <a href="http://httpunit.sourceforge.net/" target="_blank">HttpUnitSite</a>
that implements several useful unit testing methods together with
classes for connecting to HTTP servers, processing HTML, and maintaining
stateful sessions.<br />
<br />
<span style="font-size: large;"><b>HttpUnit supports :</b></span><br />
<br />
<ul>
<li>HTML form submission </li>
<li>JavaScript</li>
<li>automatic page redirection and cookies. </li>
<li>Written in Java, HttpUnit allows Java test code to process
returned pages as text, XML DOM, or containers of forms, tables and
links </li>
</ul>
It is well suited to be used in combination with JUnit.It easily
write tests that verify the proper behaviour of a web site.The use of
HttpUnit allows for automated testing of web applications.<br />
<br />
The
center of HttpUnit is the WebConversation class, which takes the place
of a browser talking to a single site.It is responsible for maintaining
session context, which it does via cookies returned by the server.To use
it, one must create a request and ask the WebConversation for a
response. <br />
<br />
Some Drawbacks to HTTPUnit:<br />
<ul>
<li>Tests are tied to page structures.</li>
<li>If you change your page (say, reordering links or forms), you will break your tests.</li>
<li>Test assertions typically depend on the content of the page.</li>
<li>If content changes, tests may break.</li>
<li>Checking content is not completely sufficient for testing Grid portals.</li>
</ul>
<br />
<h3 class="entry-title">
<span style="font-size: large;">Setting HttpUnit in Oracle JDeveloper </span></h3>
One way to test Web application is with HttpUnit framework that is
based on Junit. One nice thing about JDeveloper is that because of the
built-in support for JUnit you also get a nice HttpUnit testing
environment.<br />
Here are the steps to follow.<br />
<br />
1. Download HttpUnit and extract it to your drive.<br />
<br />
2. In JDeveloper take your Web project and go into project
properties->libraries. Click the "Add JAR" button and add the files
from the lib and jars directory.<br />
<br />
<img alt="" border="0" height="272" src="https://blogs.oracle.com/shay/resource/images/httpunit002.gif" width="185" /><br />
<br />
<br />
3. Create a new JUnit test case class:<br />
<br />
<img src="https://blogs.oracle.com/shay/resource/images/httpunit003.gif" width="450" /><br />
<br />
4. Run your test:<br />
<br />
<img alt="" border="0" height="271" src="https://blogs.oracle.com/shay/resource/images/httpunit004.gif" width="378" /><br />
<br />
5. View the results:<br />
<br />
<img alt="" border="0" height="183" src="https://blogs.oracle.com/shay/resource/images/httpunit006.gif" width="450" /><br />
<br />
6. If you have errors double click the row in the JUnit log window to jump to the actual test code that failed.
<br />
<br />
<br />Vijayinduhttp://www.blogger.com/profile/06399617935266849267noreply@blogger.com0