Print

InstallJolie

Table of contents



Installing Jolie


Linux


openSUSE - One Click Installation

openSUSE 11.0
openSUSE 11.1



From sources


Requirements:
  • Java SDK >=1.6
  • Apache ant
  • Subversion client

Open a shell and execute:

svn co https://jolie.svn.sourceforge.net/svnroot/jolie/trunk
ant && sudo ant install


The ant script will automatically build and install Jolie for you. The default is to install in /opt/jolie, but the installation parameters can be controlled by editing buildconfig/config.properties. A Jolie launcher script will be put in /usr/local/bin (this parameter is configurable, too), thus executing a Jolie script will be just a matter of:

jolie file.ol


Windows

From sources

Requirements:
  • Install the latest JDK (Java SE Development Kit) from this link (external link)
  • Install a Subversion client (e.g. Tortoise (external link))
  • Install Ant for building sources from this link (external link)

Installing:
  • Download JOLIE's sources with your svn client from https://jolie.svn.sourceforge.net/svnroot/jolie/trunk (external link)
  • Go into the trunk directory
  • Open the buildconfig/config.properties file and change the parameters install.launcher_dir and install.dir by replacing the existing directories with your desired ones. Use \\ instead of the single backslashes when writing paths. Example:

install.launcher_dir=C:\\Program Files\\jolie
install.dir=C:\\Program Files\\jolie



  • Execute the ant dist-install command

If the install path contains spaces you will experience a problem in launching the jolie executable.

This is due to a problem on the command

set joliepath

present in jolie.bat that can be found in the intall directoy that you have previously specified.
To solve this you must substitute the \ characters before and after the path containing the space with // and include the same part of the path between "".

For instance, if you did choose to use the same directory of this tutorial you can correct the set command with the following code.

set joliepath=C://"Program Files"//jolie\


You can now execute Jolie scripts by issuing the jolie command to a console, e.g.:

jolie your_file.ol






Support for external tools

Kate

Homepage: http://kate-editor.org/ (external link)

A syntax highlighting description file for KatePart (which is used by most KDE applications and the Kate editor itself) is available.
Download the latest version (external link) and put it in your $KDE_HOME/share/apps/katepart/syntax directory.
You can discover your $KDE_HOME directory by issuing the kde4-config --localprefix command.


Menu [toggle]

Powered by TikiWiki CMS/Groupware v2.2 -Arcturus-