Setting Up Eclipse for Webcat: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
Setting up Eclipse for Webcat
== Introduction ==


This activity will guide you through basic usage of the Eclipse IDE and JUnit. Please have a computer available on which you may install Eclipse IDE.
This activity will guide you through basic usage of the Eclipse IDE and JUnit for use with Webcat. Please have a computer available on which you may install Eclipse IDE. Also, please note that the following conventions will be used to draw attention to different parts of the article.


<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #D8BFD8;"><tt>
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #D8BFD8;"><tt>
Line 14: Line 14:
<b>Commands</b> will look like this.
<b>Commands</b> will look like this.
</tt></blockquote>
</tt></blockquote>
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #FFFF66; text-align: center;"><i>
<b>Tip:</b> Tips will look like this.
</i></blockquote>


A string of menu commands will be marked as follows:<br>
A string of menu commands will be marked as follows:<br>
Line 22: Line 26:


Instructive Graphics Will appear as follows:<br>
Instructive Graphics Will appear as follows:<br>
<div style="border: 2px solid black; margin: 0; padding: 0;">http://d-site.net/stuff/pics-storage/kubuntu-install-sm2.png</div>
<div style="border: 5pt solid #FFE303; margin: 0; padding: 2px; background-color: black; float: left;">http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/upgrade-guide/images/java_logo.gif</div><div style="clear: both; float: none;">
 
== Getting Started ==
To begin, make sure Eclipse is installed and working on your computer. It is often useful to install Eclipse onto a Linux environment, because it more closely mirrors the actual testing environment where your code will be compiled. I won't go into details, but in particular, installing Ubuntu Linux, or one of its derivatives such as KUbuntu, is very easy. Note that here, you install JUnit as well.
 
<div style="border: 5pt solid #FFE303; margin: 0; padding: 2px; background-color: black; float: left;">http://d-site.net/stuff/pics-storage/kubuntu-install-sm2.png &nbsp;http://d-site.net/stuff/pics-storage/kubuntu-install-sm1.png</div><div style="clear: both; float: none;">
 
On a Debian-based Linux such as Ubuntu, installing Eclipse should be as easy as<br>
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #C1FFC1;"><tt>
<b>apt-get update</b><br>
<b>apt-get install</b> eclipse junit
</tt></blockquote>
or
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #C1FFC1;"><tt>
<b>apt-get update</b><br>
<b>aptitude install</b> eclipse junit
</tt></blockquote>
On an RPM based distribution such as Red Hat Linux or Fedora Core
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #C1FFC1;"><tt>
<b>yum install</b> eclipse junit
</tt></blockquote>
should do the trick.
 
You can also install Eclipse graphically through the package manager, such as Synaptic, Adept, or simply what will be marked as "Manage Software","Manage Packages","Add and Remove Programs", or something similar in your menu.
 
<blockquote style="border: 1px solid black; padding: 6pt; line-spacing: 140%; background-color: #FFFF66; text-align: center;"><i>
<b>Tip:</b> On pure Debian, GCJ is installed instead of sun-java. Make sure to install sun-java and remove GCJ or Eclipse will not work quite right, and will likely frustrate you a great deal.
</i></blockquote>
 
Windows and Mac OSX users will likely want to visit http://www.easyeclipse.org/site/home/ and download from there. EasyEclipse is just a pre-packaged version of Eclipse which will save you time and energy in the long run.
 
You can then install JUnit with the TPTP plugin: http://easyeclipse.org/site/plugins/eclipse-tptp.html

Latest revision as of 08:10, 26 March 2008

Introduction

This activity will guide you through basic usage of the Eclipse IDE and JUnit for use with Webcat. Please have a computer available on which you may install Eclipse IDE. Also, please note that the following conventions will be used to draw attention to different parts of the article.

Java Code will look like this.

PseudoCode will look like this.

Commands will look like this.

Tip: Tips will look like this.

A string of menu commands will be marked as follows:
File => Save As

A string of keys will be marked as follows:
[Ctrl]+[Alt]+[Delete]

Instructive Graphics Will appear as follows:

http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/upgrade-guide/images/java_logo.gif

Getting Started

To begin, make sure Eclipse is installed and working on your computer. It is often useful to install Eclipse onto a Linux environment, because it more closely mirrors the actual testing environment where your code will be compiled. I won't go into details, but in particular, installing Ubuntu Linux, or one of its derivatives such as KUbuntu, is very easy. Note that here, you install JUnit as well.

On a Debian-based Linux such as Ubuntu, installing Eclipse should be as easy as

apt-get update
apt-get install eclipse junit

or

apt-get update
aptitude install eclipse junit

On an RPM based distribution such as Red Hat Linux or Fedora Core

yum install eclipse junit

should do the trick.

You can also install Eclipse graphically through the package manager, such as Synaptic, Adept, or simply what will be marked as "Manage Software","Manage Packages","Add and Remove Programs", or something similar in your menu.

Tip: On pure Debian, GCJ is installed instead of sun-java. Make sure to install sun-java and remove GCJ or Eclipse will not work quite right, and will likely frustrate you a great deal.

Windows and Mac OSX users will likely want to visit http://www.easyeclipse.org/site/home/ and download from there. EasyEclipse is just a pre-packaged version of Eclipse which will save you time and energy in the long run.

You can then install JUnit with the TPTP plugin: http://easyeclipse.org/site/plugins/eclipse-tptp.html