# How To install and Create executable Graph in linux?

**URL:** <https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753>\
**Category:** CloverDX Platform\
**Created:** [September 17, 2010, 12:00am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753 "2010-09-17T00:00:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudeep.dhonde](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sudeep.dhonde](https://forum.cloverdx.com/u/sudeep.dhonde)\
**Post date:** [September 17, 2010, 12:00am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/1 "2010-09-17T00:00:00Z")

</div>

Hi All,  
I am pretty new to Clover, I’ve created a Application on windows(Its all very easy I must admit 🙂 ), Now I want to Install Clover on Linux and run my application there through any script.

Any help would be appreciated.

Regards,  
Sudeep.

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [September 20, 2010, 7:22am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/2 "2010-09-20T07:22:02Z")

</div>

Hello,  
in _cloverETL/bin_ you can find scripts for graph execution: _clover.bat_ for Windows and _clover_ for linux. Set the permission to the scripts to executable and you can run the graph, e.g:

```auto
/home/user/cloverETL/bin/clover graph/my_graph.grf

```

---

<div class="post-metadata">

**Author:** ![megreddy](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@megreddy](https://forum.cloverdx.com/u/megreddy)\
**Post date:** [October 20, 2010, 3:16pm UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/3 "2010-10-20T15:16:39Z")

</div>

If I’m understanding this correctly, there is a way to execute a graph from command line (so without launching Clover)? If so, could you provide further clarification on how to do this in Windows?

I’m looking for a way to either (1) package a .grf as an .exe, or (2) write a script that periodically runs the graph logic. In my case, the graph is a simple “Read-\>Format-\>Aggregate/Analysis-\>Write” process.

Thanks in advance for the help!

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [October 21, 2010, 11:24am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/4 "2010-10-21T11:24:57Z")

</div>

You can add a task to Windows Scheduler, that executes clover.bat script.

---

<div class="post-metadata">

**Author:** ![megreddy](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@megreddy](https://forum.cloverdx.com/u/megreddy)\
**Post date:** [October 21, 2010, 2:20pm UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/5 "2010-10-21T14:20:41Z")

</div>

Thanks for the response! Are you referring to the clover.bat script located (on Windows) in [C:\Program Files\CloverETL\plugins\com.cloveretl.gui\_3.0.0\lib\bin]?

If so, I tried moving clover.bat (and the companion commonlib.bat) into the local directory of my .grf and entered

```auto
cd [local directory]
clover.bat test_graph.grf

```

This sets CLOVER\_CMD\_LINE\_ARGS = test\_graph.grf. But it terminates in an error

```auto
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
     at java.lang.ClassLoader.defineClass1(Native Method)
     at ...

```

Do you know where my error is?

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [October 22, 2010, 7:27am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/6 "2010-10-22T07:27:15Z")

</div>

CloverETL 3.0 requires java 1.6 or higher and I suppose you try to run the graph with lower java version. This is probably the reason of the error.

But to run successfully the graph you need complete CloverETL (all jar files from CloverETL/lib directory and all from CloverETL/plugins directory).

This is the simplest instruction how to run the graph from command line:

- set system variable CLOVER\_HOME to point to CloverETL (set CLOVER\_HOME=“C:\Program Files\CloverETL”)

- go to the project folder

- call the clover.bat script (“C:\Program Files\CloverETL\bin\clover.bat” graph/my.grf)

---

<div class="post-metadata">

**Author:** ![megreddy](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@megreddy](https://forum.cloverdx.com/u/megreddy)\
**Post date:** [October 22, 2010, 6:46pm UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/7 "2010-10-22T18:46:59Z")

</div>

It was in fact a simple matter of updating Java and setting CLOVER\_HOME. Thanks for your help Agata!

---

<div class="post-metadata">

**Author:** ![megreddy](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@megreddy](https://forum.cloverdx.com/u/megreddy)\
**Post date:** [November 2, 2010, 9:01pm UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/8 "2010-11-02T21:01:52Z")

</div>

As a follow-up to your instructions, I was wondering how to set the CLOVER\_HOME and CLOVER\_CMD\_LINE\_ARGS values within the .bat. That is, I want to simply set up a Windows Schedule to execute clover.bat, rather than type the command line:

```auto
"C:\Program Files\...\clover.bat" graph\myGraph.grf

```

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![smrckoval](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@smrckoval](https://forum.cloverdx.com/u/smrckoval)\
**Post date:** [November 3, 2010, 11:03am UTC](https://forum.cloverdx.com/t/how-to-install-and-create-executable-graph-in-linux/753/9 "2010-11-03T11:03:22Z")

</div>

Set the CLOVER\_HOME system variable. Pretty nice Task Sheduler tutorial can be found [here](http://www.vistax64.com/tutorials/132903-task-scheduler-create-task.html).

Just create an action _Start a program_, put the complete _clover.bat_ URL into _Program/script_ field and the complete graph URL as the optional argument.
