From: Jim Procter Date: Mon, 9 Jul 2018 10:16:41 +0000 (+0100) Subject: JAL-3026 update README with instructions on setting up Eclipse for java2script and... X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~561^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0adce621d48dd552852486fa981229cb743ca16c;p=jalview.git JAL-3026 update README with instructions on setting up Eclipse for java2script and running unzip-to-site to update the site directory after a build. --- diff --git a/README b/README index eaf226b..c183126 100755 --- a/README +++ b/README @@ -16,6 +16,27 @@ You may also be able to use Borland JBuilder to build Jalview. A JBuilder projec but the library dependencies are almost certainly out of date. See the build.xml for current dependencies. +## + +Jalview-JS + +To enable transpilation of Jalview's code: + +1. Locate the 'dropin' directory in your eclipse installation and copy swingjs/net.sf.j2s.core.jar to it. +2. Restart Eclipse +3. If all is well you should see the 'Java2Script' builder is listed as the primary builder for the Jalview project. + if not, this is because your properties file needs to have the standard java builder replaced with the following: + net.sf.j2s.core.java2scriptbuilder + +- otherwise Javascript files will now be generated in the site/swingjs/j2s directory whenever a build occurs +4. Execute the 'unzip-to-site' task (if it isn't automatically run) to update the site directory with the latest versions of SwingJS, varna-js, JSmol and other dependencies required by Jalview. + + + + + +## + For more help, read the file doc/building.html