# ComplexDataReader Java Issue

**URL:** https://forum.cloverdx.com/t/complexdatareader-java-issue/1844
**Category:** CloverDX Platform
**Created:** [April 11, 2017, 12:00am UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844 "2017-04-11T00:00:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dflkid](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dflkid](https://forum.cloverdx.com/u/dflkid)
#### Post date: [April 11, 2017, 12:00am UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/1 "2017-04-11T00:00:00Z")

</div>

When running the ComplexDataReader on the server, I receive the following error…

CTL code compilation finished with 1 errors.  
Error: Loading of compiled Java class failed! [Used Java Platform doesn’t provide any java compiler! .]

I’m using Designer on a Mac using JRE 1.7 (also tried 1.8) and CloverETL Server 4.3.0.15/15 has the following…

java.runtime.name:  
Java™ SE Runtime Environment  
java.runtime.version:  
1.7.0\_72-b14  
java.specification.name:  
Java Platform API Specification  
java.specification.vendor:  
Oracle Corporation  
java.specification.version:  
1.7

It appears I’m running the same versions of Java, so I’m at a loss

Thanks,  
Andrew

---

<div class="post-metadata">

### Author: ![krizovav](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@krizovav](https://forum.cloverdx.com/u/krizovav)
#### Post date: [April 11, 2017, 6:40am UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/2 "2017-04-11T06:40:08Z")

</div>

Hi,

Try to use JDK instead of JRE, please. The JRE is useful only for running Java applications. It doesn’t contain the compiler. That’s why we recommend to use JDK.

For more information about the difference between JDK and JRE, click [here](http://stackoverflow.com/questions/1906445/what-is-the-difference-between-jdk-and-jre/1906455#1906455), please.

Regards,

---

<div class="post-metadata">

### Author: ![dflkid](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dflkid](https://forum.cloverdx.com/u/dflkid)
#### Post date: [April 11, 2017, 2:03pm UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/3 "2017-04-11T14:03:06Z")

</div>

So use the JDK on my Mac and the Server? How do I ensure that Clover uses this new JDK installation?

---

<div class="post-metadata">

### Author: ![krizovav](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@krizovav](https://forum.cloverdx.com/u/krizovav)
#### Post date: [April 12, 2017, 9:36am UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/4 "2017-04-12T09:36:18Z")

</div>

Hi,

There are several possibilities how to solve this task.

In Designer:  
The Clover Designer uses the bundled JDK by default. If you would like the Designer to use any other one, you can download the Oracle JDK for Mac [here](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).  
This Java instance is installed to /Library/Java by default.  
Please note, that there is two-step configuration necessary in this case.  
1. Add new JDK in Preferences/Java/Installed JREs. [Check the documentation.](http://doc.cloveretl.com/documentation/UserGuide/topic/com.cloveretl.gui.docs/docs/java-settings.html)  
2. Set the Preferences/CloverETL/ETL Runtime/Java Runtime Environment (JRE) to Alternate JRE and choose the new one. [Check the documentation.](http://doc.cloveretl.com/documentation/UserGuide/topic/com.cloveretl.gui.docs/docs/cloveretl-runtime-configuration.html)

In Clover Server:  
The path to the JDK for the Clover Server is configured in the „[tomcat]/bin/setenv.sh“ file for Unix-like systems or the „[tomcat]/bin/setenv.bat“ for Windows system. [Check the documentation.](http://doc.cloveretl.com/documentation/UserGuide/topic/com.cloveretl.server.docs/docs/installation-eval.html)

If you run the Server on the same machine as the Designer, you can set the path to the JDK used by the Designer. If not, copy or download the same JDK and save it in a place where the Clover Server will be able to use it, please.

I hope this helps.  
Regards,

---

<div class="post-metadata">

### Author: ![dflkid](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@dflkid](https://forum.cloverdx.com/u/dflkid)
#### Post date: [April 13, 2017, 11:30pm UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/5 "2017-04-13T23:30:03Z")

</div>

I’m still having trouble getting this to work. I looked at the documentation and tried the echo command for JAVA\_HOME and JRE\_HOME on the server and they don’t return anything. Is it possible to not have java\_home configured and Clover Server still works, or is that just required to use components like ComplexDataReader?

Andrew

---

<div class="post-metadata">

### Author: ![PedroVazquezRosario](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@PedroVazquezRosario](https://forum.cloverdx.com/u/PedroVazquezRosario)
#### Post date: [April 21, 2017, 1:27pm UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/6 "2017-04-21T13:27:19Z")

</div>

Hi dflkid,

Our sales team will look to contact you directly and go over next steps to be able to resolve your issue.

Thank You,

---

<div class="post-metadata">

### Author: ![svecp](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@svecp](https://forum.cloverdx.com/u/svecp)
#### Post date: [April 25, 2017, 1:51pm UTC](https://forum.cloverdx.com/t/complexdatareader-java-issue/1844/7 "2017-04-25T13:51:06Z")

</div>

Well, if you set JAVA\_HOME to setenv.sh file and echo $JAVA\_HOME, you will not see any output since whenever startup.sh is executed, it starts in a new terminal session.

If you’d like to add it globally, at least on a Linux machine, you’d need to add it into /etc/profile.d directory or /etc/profile file. Not sure how it works on Mac though. Important thing to keep in mind, after doing that, it is necessary to open a new terminal session in order to get change applied.
