# Can't get ORML to work

**URL:** <https://openrndr.discourse.group/t/cant-get-orml-to-work/306>\
**Category:** Installation and setup\
**Created:** [December 2, 2021, 9:18am UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306 "2021-12-02T09:18:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanity\_ibex](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@vanity\_ibex](https://openrndr.discourse.group/u/vanity_ibex)\
**Post date:** [December 2, 2021, 9:18am UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/1 "2021-12-02T09:18:20Z")

</div>

Hi,  
First of sorry if this is some basic problem that should be fairly trivial.  
Im new to OPENRDR and Kotlin and have reached a point where google wont help me anymore.  
I’ve cloned the openrndr-template and gone through the tutorials, I then wanted to test out ORML as an alternative to ML5 for better performance. But after cloning i get these error messages:

 ![2021-11-27 18_06_10-orml – BodyPixImage01.kt orml.orml-bodypix.demo](https://global.discourse-cdn.com/free1/uploads/openrndr/original/1X/12aa3a5683f4f9486acc8d43386da50c34a5c83f.png)

I tried moving the orml projects into the openrdnr-template and linking the gradle files, without any result. Again sorry if this is some trivial error

---

<div class="post-metadata">

**Author:** ![marcoshier](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@marcoshier](https://openrndr.discourse.group/u/marcoshier)\
**Post date:** [December 2, 2021, 1:31pm UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/2 "2021-12-02T13:31:07Z")

</div>

For me a fresh clone works just fine.

It seems like it’s looking for the local OPENRNDR 0.4 artifacts.

> **[GitHub - openrndr/openrndr: OPENRNDR. A Kotlin/JVM library for creative...](https://github.com/openrndr/openrndr#installing-openrndr-as-maven-artifacts)**
>
> OPENRNDR. A Kotlin/JVM library for creative coding, real-time and interactive graphics - GitHub - openrndr/openrndr: OPENRNDR. A Kotlin/JVM library for creative coding, real-time and interactive gr...

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [December 2, 2021, 2:51pm UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/3 "2021-12-02T14:51:41Z")

</div>

Right, it sounds like it’s looking for a locally built ORML instead of the available package, maybe beacuse `ormlUseSnapshot` is true?

If you are using the `openrndr-0.4` branch of `openrndr-template` this is configured at [openrndr-template/settings.gradle.kts at openrndr-0.4 · openrndr/openrndr-template · GitHub](https://github.com/openrndr/openrndr-template/blob/openrndr-0.4/settings.gradle.kts#L6)

You can build orml it by running `./gradlew publishToMavenLocal -Prelease.version=0.5.1-SNAPSHOT` in the orml folder.

Or you could set `ormlUseSnapshot` to false to download the artifact.

Ps. Welcome to the forum! 🙂

---

<div class="post-metadata">

**Author:** ![vanity\_ibex](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@vanity\_ibex](https://openrndr.discourse.group/u/vanity_ibex)\
**Post date:** [December 4, 2021, 10:00pm UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/4 "2021-12-04T22:00:33Z")

</div>

First of, thanks for your feedback!

I re-installed

- openrndr 0.4
- the openrndr template
- orx
- cuda
- orml

The new installation didn’t resolve my previous error, yhat might be due to some misunderstanding on my behalf. Is it correct to clone each repository into their own folder and then link the gradle projects? I dont see how my template would gain access to the orml files otherwise.

building orml by running `./gradlew publishToMavenLocal -Prelease.version=0.5.1-SNAPSHOT`  
resulted in this error:

 ![image](https://global.discourse-cdn.com/free1/uploads/openrndr/original/1X/9443966a582a4eb4fdb968a0466cd69a26c5d596.png)

Even though im using the 0.4 branch of th openrdr-template the settings.gradle.kts does not exist. I created it manually but I didnt notice a difference.  
Again sorry if these are simple errors, its my first time using git and im still unfamiliar with kotlin and its general projrct structure

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [December 5, 2021, 9:06pm UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/5 "2021-12-05T21:06:31Z")

</div>

Hi! Yes, each repository is supposed to be in its own folder.  
I do not link the gradle projects in any way. By using `publishToMavenLocal` the build files are placed in a local repository which are then accessed by the other projects (if `xxxxUseSnapshot` is true).

If you can’t see `settings.gradle.kts` I suspect you are not on the right branch. You can see the file yourself at: [GitHub - openrndr/openrndr-template at openrndr-0.4](https://github.com/openrndr/openrndr-template/tree/openrndr-0.4)

If I follow these steps I can see that file:

```bash
git clone https://github.com/openrndr/openrndr-template.git
cd openrndr-template
git fetch --all
git checkout origin/openrndr-0.4

```

How did you run `./gradlew publishToMavenLocal -Prelease.version=0.5.1-SNAPSHOT` ? I ask because I see your error inside idea, but I normally type that in the command line. Or maybe you use a command line inside idea? I haven’t tried that.

---

<div class="post-metadata">

**Author:** ![vanity\_ibex](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@vanity\_ibex](https://openrndr.discourse.group/u/vanity_ibex)\
**Post date:** [December 9, 2021, 9:47am UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/6 "2021-12-09T09:47:16Z")

</div>

Hi!  
I was using the intelliJ console which is basically powershell. I was also using IntelliJ to clone the repositories before. Im now using git to clone them and reinstalled gradle, and use the normal console to build.

 ![image](https://global.discourse-cdn.com/free1/uploads/openrndr/original/1X/da0b2a841f6091769d94ba0205c9732c6068c634.png)  
after building a freshly cloned version i still cant get it to work

I ran it in the openrndr folder and also tried it in my maven repository (which i dont think is right at all).

Ive located the files in my local maven repository, as far as i understand the command

```auto
./gradlew publishToMavenLocal -Prelease.version=0.5.1-SNAPSHOT

```

is supposed to create a local library using them, is that correct?

thanks for your continued support!

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [December 14, 2021, 9:38am UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/7 "2021-12-14T09:38:32Z")

</div>

Hi! This message looks odd:

```auto
* What went wrong:
Task '.version=0.5.1-SNAPSHOT' not found in root project 'openrndr'.

```

It seems to take `.version=...` as a task. ~~Does the same happen if you write `publishToMavenLocal` first instead of last? Maybe the order matters.~~ _Find the cause in the next post._

What `publishToMavenLocal` should do is to write the produced libraries into

```
/home/<User_Name>/.m2/repository/org/openrndr/

```

(Linux) or

```
C:\Users\<User_Name>\.m2\repository\org\openrndr\

```

(Windows)

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [December 14, 2021, 9:45am UTC](https://openrndr.discourse.group/t/cant-get-orml-to-work/306/8 "2021-12-14T09:45:33Z")

</div>

Oh ignore that message. I found in Slack that someone experienced your same issue. It’s at [Slack](https://openrndr.slack.com/archives/CBJGUKVSQ/p1631353455021700) .

It seems like the issue is that the environment variable `JAVA_HOME` is not set.

Maybe you can do that first and try again?
