X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=doc%2Fbuilding.html;h=f07e2d8f62f2cadc478ed85f4ed226b784585bce;hb=2f4f1d8fb6878271b64f327bc58c895f458137af;hp=10cbbac106b8234814c2a75040682eba31d6d8f4;hpb=00a8b8b593f501f7036296b19366443da84dcd96;p=jalview.git diff --git a/doc/building.html b/doc/building.html index 10cbbac..f07e2d8 100755 --- a/doc/building.html +++ b/doc/building.html @@ -1,4 +1,22 @@ + Building Jalview from Source @@ -8,14 +26,13 @@

You will need the following (hopefully):

With any luck, after setting your paths and JAVA_HOME correctly, you just need to change to the Jalview directory and run ant (this works -from JBuilder and eclipse too). +from JBuilder and eclipse too, but NetBeans is a bit trickier).
    ant
 
@@ -29,7 +46,7 @@ build target in ant to make the signed jar files in a directory called dist. But first you need to make your own key:

Making your own key

-

The ant 'makejars' target assumes that a keystore exists in a +

The ant 'makefulldist' target assumes that a keystore exists in a directory 'keys'. To make a key accessible using the default settings in the build.xml file then make the keys directory and add the jarsigner key with the following : @@ -39,15 +56,42 @@ mkdir keys keytool -genkey -keystore keys/.keystore -keypass alignmentisfun -storepass alignmentisfun -alias jalview (you will have to answer some personal questions here) -ant makejars - (should eventually generate a Jalview.jnlp file +ant makedist + (should eventually generate a Jalview.jnlp file in ./dist along with a set of signed jars using the jalview key) -

- -

+

+ Building the JalviewLite applet
+
The JalviewLite applet is compiled using a subset of the packages in + the src directory (specifically: MCView, and jalview.{datamodel, + analysis, appletgui, utils, schemes, api, structure}, and + com.stevesoft.*). Once compiled, these class files are obfuscated to + make the code run efficiently. To compile the applet Jar, use the + makeApplet task - optionally passing in a 'donotobfuscate' property to + the ant build (e.g. -Ddonotobfuscate=true) to disable obfuscation.

+ The ant target 'pubapplet' can be used to compile install the + jalviewApplet.jar and any dependent jars (under appletlib) into a copy + of the examples directory created under the outputDir build + property (which defaults to the 'dist' directory). +

+

+

using IDEs to build Jalview

+

The Jalview source distribution includes project definitions for + Eclipse, Netbeans and some rather ancient Borland JBuilder .jpx + project files. These files should be sufficient to set up basic source + folders and build paths, but you will need to ensure that all .jar + files in the lib and appletlib directories are added to the build path + for your IDE project, and that the 'buildindices' target in Jalview's + build.xml is executed with the 'outputDir' ant property set to the + directory where the IDE expects to place compiled classes ('classes' + directory for eclipse, 'build/classes' for netbeans).

+

Note: It is generally not recommended that you distribute build + artefacts that were generated automatically via an IDE's own packaging + mechanism (e.g. Netbeans' executable Jar and dependent lib directory). + The hand-crafted ant build.xml is (currently) the only officially + supported method of building distributable versions of Jalview.

Jalview development team