2 |
26 Feb 07 |
jari |
$Id$ |
2 |
26 Feb 07 |
jari |
2 |
|
9 |
24 Aug 07 |
jari |
This file is a part of the MeV plug-in for BASE package available at |
20 |
12 May 08 |
nicklas |
http://dev.thep.lu.se/basehacks/wiki/MeV |
3 |
27 Feb 07 |
jari |
5 |
|
9 |
24 Aug 07 |
jari |
= Compilation and installation instructions = |
3 |
27 Feb 07 |
jari |
7 |
|
9 |
24 Aug 07 |
jari |
Steps needed to compile and install. |
3 |
27 Feb 07 |
jari |
9 |
|
9 |
24 Aug 07 |
jari |
1 Compilation [[br]] |
9 |
24 Aug 07 |
jari |
2 Signing of JAR files [[br]] |
21 |
13 May 08 |
nicklas |
3 Installing on BASE server |
21 |
13 May 08 |
nicklas |
4 Testing |
21 |
13 May 08 |
nicklas |
5 Create the MEV Launcher extension [[br]] |
3 |
27 Feb 07 |
jari |
15 |
|
9 |
24 Aug 07 |
jari |
== 1 Compilation of MeV in an Unix or Unix-like environment == |
9 |
24 Aug 07 |
jari |
17 |
|
9 |
24 Aug 07 |
jari |
a. You must use java 1.4.2 and set `JAVA_HOME` accordingly. On my Mac |
9 |
24 Aug 07 |
jari |
this means (running bash) |
9 |
24 Aug 07 |
jari |
20 |
{{{ |
9 |
24 Aug 07 |
jari |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home |
9 |
24 Aug 07 |
jari |
22 |
}}} |
9 |
24 Aug 07 |
jari |
a. To compile, do |
9 |
24 Aug 07 |
jari |
24 |
{{{ |
9 |
24 Aug 07 |
jari |
cd build_script ; ant |
9 |
24 Aug 07 |
jari |
26 |
}}} |
9 |
24 Aug 07 |
jari |
27 |
|
9 |
24 Aug 07 |
jari |
28 |
|
9 |
24 Aug 07 |
jari |
== 2 Signing of JAR files == |
9 |
24 Aug 07 |
jari |
30 |
|
9 |
24 Aug 07 |
jari |
To be able to use the plug-in from BASE the JAR files must be |
9 |
24 Aug 07 |
jari |
signed. The reason for this is that the MeV plug-in has to download |
9 |
24 Aug 07 |
jari |
data from the BASE application, and the current implementation does |
9 |
24 Aug 07 |
jari |
not allow the MeV application to run in a Java sand-box. Upon start of |
9 |
24 Aug 07 |
jari |
the plug-in the user is requested to accept a certificate. |
9 |
24 Aug 07 |
jari |
36 |
|
9 |
24 Aug 07 |
jari |
a. If you do not already have a key in a keystore you must create |
9 |
24 Aug 07 |
jari |
one. This is done with `keytool` |
9 |
24 Aug 07 |
jari |
39 |
{{{ |
17 |
06 Oct 07 |
jari |
keytool -genkey -alias mev_base -keypass password -keystore myKeystore |
9 |
24 Aug 07 |
jari |
41 |
}}} |
17 |
06 Oct 07 |
jari |
If keystore myKeystore does not already exist, a new keystore is |
9 |
24 Aug 07 |
jari |
created. The command creates a self-signed certificate. [[br]][[br]] |
9 |
24 Aug 07 |
jari |
a. Sign all jar files that was changed during the compilation |
9 |
24 Aug 07 |
jari |
45 |
{{{ |
9 |
24 Aug 07 |
jari |
jarsigner -keystore myKeystore lib/HTTPClient.jar mev_base |
9 |
24 Aug 07 |
jari |
jarsigner -keystore myKeystore lib/JSciCore.jar mev_base |
9 |
24 Aug 07 |
jari |
48 |
... |
9 |
24 Aug 07 |
jari |
49 |
}}} |
9 |
24 Aug 07 |
jari |
All JARs distributed with the application must be signed, i.e., |
9 |
24 Aug 07 |
jari |
all JARs in the `lib` directory. |
9 |
24 Aug 07 |
jari |
52 |
|
9 |
24 Aug 07 |
jari |
53 |
|
21 |
13 May 08 |
nicklas |
== 3 Installing on BASE server == |
9 |
24 Aug 07 |
jari |
55 |
|
21 |
13 May 08 |
nicklas |
This step assumes that you have already installed the MEV Launcher |
21 |
13 May 08 |
nicklas |
extension from http://baseplugins.thep.lu.se/wiki/net.sf.basedb.mev. |
21 |
13 May 08 |
nicklas |
58 |
|
21 |
13 May 08 |
nicklas |
Copy the JAR files to the BASE server. |
21 |
13 May 08 |
nicklas |
60 |
|
21 |
13 May 08 |
nicklas |
61 |
{{{ |
21 |
13 May 08 |
nicklas |
cp -p lib/*.jar /path/to/base/www/extensions/mev-launcher.jar/jar |
21 |
13 May 08 |
nicklas |
63 |
}}} |
21 |
13 May 08 |
nicklas |
64 |
|
21 |
13 May 08 |
nicklas |
65 |
|
21 |
13 May 08 |
nicklas |
== 4 Testing == |
21 |
13 May 08 |
nicklas |
67 |
|
21 |
13 May 08 |
nicklas |
Log into BASE, select a bioassayset, and click on the MeV icon to |
21 |
13 May 08 |
nicklas |
start the MeV application. Wait for the new JARs to be downloaded and |
21 |
13 May 08 |
nicklas |
for the data to be loaded into MeV. If this succeeds then everything |
21 |
13 May 08 |
nicklas |
should be okay. |
21 |
13 May 08 |
nicklas |
72 |
|
21 |
13 May 08 |
nicklas |
73 |
|
21 |
13 May 08 |
nicklas |
== 5 Create the MEV Launcher extension == |
21 |
13 May 08 |
nicklas |
75 |
|
20 |
12 May 08 |
nicklas |
You need to check out the source code for the MEV Launcher extension |
20 |
12 May 08 |
nicklas |
for this step. See http://baseplugins.thep.lu.se/wiki/net.sf.basedb.mev |
20 |
12 May 08 |
nicklas |
for more information about this. |
20 |
12 May 08 |
nicklas |
79 |
|
20 |
12 May 08 |
nicklas |
Copy the JAR files to the `/path/to/mev-launcher/resources/jar` directory. |
20 |
12 May 08 |
nicklas |
81 |
|
9 |
24 Aug 07 |
jari |
82 |
{{{ |
20 |
12 May 08 |
nicklas |
cp -p lib/*.jar /path/to/mev-launcher/resources/jar |
9 |
24 Aug 07 |
jari |
84 |
}}} |
9 |
24 Aug 07 |
jari |
85 |
|
20 |
12 May 08 |
nicklas |
Compile the MEV Launcher extension. |
9 |
24 Aug 07 |
jari |
87 |
|
20 |
12 May 08 |
nicklas |
88 |
{{{ |
21 |
13 May 08 |
nicklas |
cd /path/to/mev-launcher |
20 |
12 May 08 |
nicklas |
ant |
20 |
12 May 08 |
nicklas |
91 |
}}} |
9 |
24 Aug 07 |
jari |
92 |
|
21 |
13 May 08 |
nicklas |
This should create the `mev-launcher.jar` file. This can be installed |
21 |
13 May 08 |
nicklas |
into `/path/to/base/www/WEB-INF/extensions`. |