Contents
Table of Contents | ||
---|---|---|
|
Install Java
...
Runtime Environment (JRE)
Windows
Go to: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
Download the JRE7 executable that's appropriate for your Windows (32-bit vs 64-bit).
A dialog will pop-up asking if you want to Save or Run the file. Click Run.
A dialog will pop up to begin the installation of JRE7. Follow the prompts to complete the install.
Click Start and then type "cmd" in the search box and hit Enter.
In the command line type:
Code Block |
---|
java -version |
You should see some information appear in the command line detailing that you have Java 1.7 (aka Java 7).
Linux
Go to: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
Download the JRE7 file appropriate for your flavor of Linux. Because we are using Fedora 17 64-bit, we will download the Linux x64 RPM file. Please note the location where you saved the file.
Open a Terminal
Cd to the location of the file, in our case this is the Downloads directory in our HOME folder:
Code Block | ||||
---|---|---|---|---|
| ||||
$ cd ~/Downloads
$ su
$ rpm -i jre-7u17-linux-x64.rpm
$ exit
$ java --version |
After running the above commands, you should see some information appear in the terminal detailing that you have Java 1.7 (aka Java 7).
Obtain The Latest Daffodil Release
Go to: Getting Daffodil and download the latest release file. Please note the location where you saved the file.
For Windows, you will want to download the zip file.
Daffodil will run on Java 7 or newer. To download the Java Runtime Environment if you do not already have it, it can be downloaded for free at https://java.com/en/download/.
Obtain The Latest Daffodil Release
Visit the Daffodil Artifacts Page to download the latest Daffodil stable and development releases
...
.
Run Daffodil
After you've obtained the latest Daffodil Release, you'll want to 'unpack' unzip or untar the files into a suitable location on your machine.
Windows
- Navigate to the location where you saved the latest Daffodil release. Right-click the file and select cut.
- Navigate to a suitable location for you to unpack the file. Example: "C:\Users\UserName\"
- Create a folder in this location by right-clicking an empty space in the Windows Explorer and selecting New Folder.
- Name the folder "Daffodil".
- Open "Daffodil".
- Right-click an empty space in Windows Explorer and select "Paste"
- You should now see the Daffodil release zip copied to this location.
- Right-click the zip file and select "Extract All Here". If the extraction was successful, you may delete the zip file.
- Within "Daffodil" you should now see a folder titled something like "daffodil-0.8.1".
- Click Start and type "cmd" into the search box to open up the Windows Command Line.
Type the following:
Code Block | ||
---|---|---|
| ||
cd C:\Users\UserName\Daffodil\daffodil-0.8.1\daffodil-0.8.1\bin
daffodil.bat --help |
Entering the above commands will display help information for Daffodil. This means you're setup and ready to go!
Linux
Open a Terminal
Create a directory called "Daffodil" in your home directory:
Code Block | ||||
---|---|---|---|---|
| ||||
$ cd ~
$ mkdir Daffodil |
Navigate to the location where you saved the Daffodil release file. Because we're using Fedora 17, the location where the file was saved is the Downloads directory of our HOME directory (~/Downloads)
Code Block | ||||
---|---|---|---|---|
| ||||
$ cd ~/Downloads |
We're going to copy the compressed release file to the "Daffodil" directory we created in our HOME directory.
Code Block | ||||
---|---|---|---|---|
| ||||
$ cp ~/Downloads/daffodil-0.8.1.zip ~/Daffodil/
$ cd ~/Daffodil
$ ls |
After running the above commands, the daffodil release file should've been copied to your Daffodil folder in your HOME directory. The "ls" command displays the contents of the current directory (Daffodil).
Next we'll want to uncompress/unpack the release file.
If you downloaded the tar.bz2 file, enter the following:
Code Block | ||||
---|---|---|---|---|
| ||||
$ tar -xvjpf daffodil-0.8.1.tar.bz2 |
If you downloaded the zip file, enter the following:
Code Block | ||||
---|---|---|---|---|
| ||||
$ unzip daffodil-0.8.1.zip |
Finally, cd into the daffodil-0.8.1 directory until you reach the bin folder.
Code Block | ||||
---|---|---|---|---|
| ||||
$ cd daffodil-0.8.1\daffodil-0.8.1\bin |
Now you can run Daffodil:
Code Block | ||||
---|---|---|---|---|
| ||||
$ ./daffodil.sh --help |
Executing the above command should display help information for running Daffodil in the Terminal.
Example Run Command
Windows
From the bin directory:
Code Block | ||
---|---|---|
| ||
daffodil.bat parse -s SomeDir/SomeName.xsd SomeDir/SomeInput.in
|
Linux
From the bin directory:
Code Block | ||||
---|---|---|---|---|
| ||||
$ ./daffodil.sh parse -s SomeDir/SomeName.xsd SomeDir/SomeInput.in
|
The uncompressed directory contains a 'bin' directory, which contains two scripts, daffodil.bat for Windows and daffodil for Linux. Thes files must be executed on the command line to run Daffodil. See the Examples page to for examples on how to use the Daffodi CLI, and the Command Line Interface for in depth usage.