# Using clover.bat

**URL:** <https://forum.cloverdx.com/t/using-clover-bat/1017>\
**Category:** CloverDX Platform\
**Created:** [March 2, 2012, 12:00am UTC](https://forum.cloverdx.com/t/using-clover-bat/1017 "2012-03-02T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaki](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vaki](https://forum.cloverdx.com/u/vaki)\
**Post date:** [March 2, 2012, 12:00am UTC](https://forum.cloverdx.com/t/using-clover-bat/1017/1 "2012-03-02T00:00:00Z")

</div>

Hey there.

First off I would like to say that I really enjoy CloverETL. I have been working with SSIS for a while now, and it was a breath of fresh air to try out CloverETL.

I have made my first ETL package with Clover and want to set it to a schedule. I am using the clover.bat script to help me run it.

I made the system variables JAVA\_HOME and CLOVER\_HOME and I beleave that I have them correctly configured.

However… when I try to run one of my graphs, I run into this error:

C:\Testing\Vaki\_ETL\>“C:\Program Files\CloverETL\jdk1.6.0\_20\bin\java.exe” -cla  
sspath “;;C:\Program Files\CloverETL\plugins\com.cloveretl.gui\_3.2.1\lib\bin\;C:  
\Program Files\CloverETL\jdk1.6.0\_20\lib\tools.jar;” “-Dclover.home=C:\Program F  
iles\cloverETL” org.jetel.main.runGraph -plugins “C:\Program Files\cloverETL\plu  
gins” graph\Fact\_Tables.grf  
Exception in thread “main” java.lang.NoClassDefFoundError: org/jetel/main/runGra  
ph  
Caused by: java.lang.ClassNotFoundException: org.jetel.main.runGraph  
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)  
Could not find the main class: org.jetel.main.runGraph. Program will exit.

Did I mess up my Java refferance, or is this class simply missing ?

I would love to get your input on this.

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [March 2, 2012, 1:46pm UTC](https://forum.cloverdx.com/t/using-clover-bat/1017/2 "2012-03-02T13:46:13Z")

</div>

Hi Vaki,

“[http://wiki.clovergui.net/doku.php?id=running&s[]=engine](http://wiki.clovergui.net/doku.php?id=running&s%5B%5D=engine)” should help you.

---

<div class="post-metadata">

**Author:** ![vaki](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@vaki](https://forum.cloverdx.com/u/vaki)\
**Post date:** [March 2, 2012, 3:55pm UTC](https://forum.cloverdx.com/t/using-clover-bat/1017/3 "2012-03-02T15:55:40Z")

</div>

Hi kubosj.

I have looked at that post. It recommends that i run the clover.bat.

Thats what I did, but when it tries to run org.jetel.main.runGraph, java complains that it cannot be found.

Im wondering if I am missing some crucial plugin. For example I do not have a file or folder on my filesystem called org.jetel.main.

Thanks for your feedback

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [March 6, 2012, 2:13pm UTC](https://forum.cloverdx.com/t/using-clover-bat/1017/4 "2012-03-06T14:13:42Z")

</div>

Hi Vaki,

what about do not set CLOVER\_HOME? Script “clover.bat” should deduce location of installation from own disc location.

Also: what kind of cloveretl you use?  
\* own build of engine  
\* community designer  
\* designer (paid/trial)  
\* …?
