Subject: Java, AspectJ and Eclipse instructions (for home use)...
From: Paul Freeman (email@example.com)
Date: Fri Oct 11 2002 - 09:11:52 EDT
Hi Class -
For those of you who want to work at home, downloading and installing
all of the tools is quite easy. NOTE: don't follow these instructions
for school computers as all the software is already installed there!
You can download the Java 1.4.1 SDK (latest version of software
developer's kit) here. Do not download the Java JRE (java runtime
environment). This is included in the SDK, but it is not enough to
Before installing, uninstall any old versions of the Java SDK or Java
JRE. In Windows this can be done through the add/remove programs
section of the control panel.
To install, simple double click the downloaded file.
To get the documentation of the API for Java, return to the link above,
scroll down and download the documentation. This is a zip file that
contains html Java doc pages that describe the api. I always unzip this
to the directory in which I installed the SDK. It will unzip to it's
own directory called docs. Opening this directory, you can click on
index.html to begin viewing the API.
Before you can use the Java SDK, you need to add the "\j2sdk1.4.1\bin"
path to your PATH. In windows, you must include the drive letter before
the path, e.g.. "C:\j2sdk1.4.1\bin". To do this in Windows, you can do
choose the environment tab
if the PATH variable is not there, then click new, else select it and
click edit. In Windows each path in a variable is separated with ";"
In Unix, follow instructions in previous messages to add the PATH to
your ".software" file.
AspectJ can be downloaded from:
Once downloaded, you can double click the downloaded ".jar" file to
begin installation. Documentation is available at the same link as well.
Exactly as you did for Java, you will need to add the
"\aspectj1.0.6-001\bin" path to your PATH variable. In windows, don't
forget to include the drive, and separate each path with a ";"
You will now be able to use Java and Eclipse from the command line on
your computer (MS-Dos prompt in windows). You can test that your path
is set correctly by typing "java" and "ajc" separately at the command
line. Each command should bring up a set of usages for the command
itself. If you get some kind of command not found error, you have not
set the Path variable correctly. If you don't want to use the command
line to do your work, try downloading the Eclipse IDE. You will need to
become familiar with it at some point as we are developing our app to be
a plug-in for this environment.
I had previously sent an email out regarding eclipse use at school and
at home. Here it is again.
As you all know, we will be developing our LoDChecker as a plug in to
the Eclipse IDE. The Eclipse IDE is free and available for download at:
It has also been installed on the machines in the Unix lab at school. I
tried the machines at school as well as installed it on my own Windows
machine at home, and it seems to work pretty well. As is always the
case, there is a little bit of a learning curve when attempting to use a
new IDE. One of the nice things about this IDE though, AspectJ has
developed a plug in for it that allows for easy compilation of your
files with the aspectj compiler. It can also provide some useful
aspectj information, like what join points are being captured by your
pointcuts. (NOTE: AspectJ also makes plug-ins for other IDE's such as
JBuilder and EMACS if you prefer to code in these environments. All the
available plug-ins can be found at:
If you are downloading Eclipse for use at home, you will need to
download the AspectJ plug-ins as well. They can be found at:
http://www.eclipse.org/ajdt/ --follow the link to download. You will
need to download both the AJDT Plug-in and the AJDE Tools Plug-in.
If you are using eclipse on the Unix machines at school, the AspectJ
Plug-ins have already been installed. However you first need t
to set your path variable to point to: (again, do this in your .software
file - type resoft afterward to make it take effect, or open up another
you can run eclipse by typing
Regardless of whether or not you are using eclipse at home or at school,
you will need to do some post installation configuration in order for
you to take full use of the AspectJ plug-ins. Instructions can be found
at: http://www.eclipse.org/ajdt/ - follow the link to Documentation and
then to Post-installation configuration.
Let me know if you have any problems. You should probably at least be
familiar with this IDE as one of the goals of our LoDChecker is to have
it be a plug-in for this environment.
This archive was generated by hypermail 2b28 : Fri Oct 11 2002 - 09:14:20 EDT