I am using the community edition 3.5.0.057. I have created my first graph, which runs great from the designer. Now i want to be able to run this graph from the command line.
My installation is at:
C:\Program Files\CloverETL Designer Community
My workspace is at:
C:\CloverETL\MyCompany\MyProject
I know “clover.bat” is located at the following folder:
C:\Program Files\CloverETL Designer Community\plugins\com.cloveretl.gui_3.5.0.057\lib\bin
What i have tried is run the following command, while being in the clover.bat directory:
clover.bat C:\CloverETL\MyCompany\MyProject\Graph\MyGraph.grf
This gives me the following error:
“java.exe”’ is not recognized as an internal or external command,operable program or batch file.
Do i need to specify somehow or somewhere the location of the java installation?
Please make sure path to your Java installation (it may be the one installed with CloverETL) is in your PATH environment variable. Also it would make a sense to have JAVA_HOME set.
I am not sure where to set JAVA_HOME. Can you please give me an example in the bat file? I am really not a java person (i am into .Net) and i am not aware of how java really works.
The PATH environment variable is a series of directories separated by semicolons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You can also use set JAVA_HOME environment variable and you can use %JAVA_HOME% instead of writing full path to Java home directory.
To set JAVA_HOME variable:
1. Right click My Computer and select Properties.
2. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the Java software is located, for example, C:\Program Files\Java\jdk1.6.0.
To update PATH variable:
1. Right click My Computer and select Properties.
2. On the Advanced tab, select Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, add path to the
Java executable, for example %JAVA_HOME%\bin if you have set the JAVA_HOME variable.
Click OK. Close all remaining windows by clicking OK.
Now you can run Java executables (javac.exe, java.exe and so on) from any directory without having to type the full path of the command.