Download Export as RTF

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
ParalleljRuntime_1-3-x - Prerequisites
Pr
er
eq
ui
sit
es
Chris
toph
e
Wasti
aux
2013
/10/3
1
16:3
1
Table of Contents
Installing Java ..................................................................................................................................................................................................................................
Installing Maven ..............................................................................................................................................................................................................................
Page 1 - last modified by Christophe Wastiaux on 2013/10/31 16:31
ParalleljRuntime_1-3-x - Prerequisites
Installing AspectJ ............................................................................................................................................................................................................................
Installing Java
First of all, I guess you know that ParallelJ is using Java, so you’ll need a JDK in order to develop some projects
with ParallelJ. Commonly, you can have a look at this page from Oracle to find a JDK for your operating system:
http://www.oracle.com/technetwork/java/javase/downloads/index.html.
In order to prepare the next steps, consider also defining an environment variable called JAVA_HOME which
refers to your Java installation, and add it to your path. Here is an example on how to do:
export JAVA_HOME=/path/to/java/install/
export PATH=$PATH:$JAVA_HOME/bin
Installing Maven
ParallelJ projects rely on Maven, so we recommend to install it too. First of all, you can download it from the
Apache website: http://maven.apache.org/. We recommand to choose at least a Maven 3 bundle. Then, you just
have to unzip the content of the file in the directory you want, and once again, add some environment variables:
export M2_HOME=/path/to/maven/install/
export PATH=$PATH:$M2_HOME/bin
Installing AspectJ
ParallelJ relies on Aspect Oriented Programming, so it needs AspectJ to be used. It’s possible to manage this
directly from the project configuration, but if you want to do this only once, without thinking of your project’s
configuration for AspectJ anymore, you can install it directly. You just have to download the jar from:
http://www.eclipse.org/aspectj/downloads.php and then install it by using:
java -jar aspectj-1.7.0.jar
Once installed, you just have to set the aspectjweaver as a Maven option. This can be done using this:
export MAVEN_OPTS=/path/to/aspectj/lib/aspectjweaver.jar
From now, you can already start using ParallelJ, and develop your projects. But we didn’t talk about some IDE
integration, so let’s have a look at ParallelJ studio !
At this point, you should have this kind of variables available on your environment:
$ echo $JAVA_HOME
D:\ jdks\ 32b\ jdk1.6.0_26
$ echo $M2_HOME
D:\ tools\ apache-maven-3.0.3
$ echo $MAVEN_OPTS
-javaagent:D:/tools/aspectj/aspectj1.7/lib/aspectjweaver.jar
Page 2 - last modified by Christophe Wastiaux on 2013/10/31 16:31